/[drupal]/contributions/modules/transliteration/transliteration.module
ViewVC logotype

Diff of /contributions/modules/transliteration/transliteration.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5.2.1, Thu Sep 24 19:19:41 2009 UTC revision 1.5.2.2, Fri Oct 9 12:03:29 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: transliteration.module,v 1.5 2009/08/25 14:44:25 smk Exp $  // $Id: transliteration.module,v 1.5.2.1 2009/09/24 19:19:41 smk Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 21  Line 21 
21   * @param $unknown   * @param $unknown
22   *   Replacement string for characters that do not have a suitable ASCII   *   Replacement string for characters that do not have a suitable ASCII
23   *   equivalent.   *   equivalent.
24   * @param $langcode   * @param $source_langcode
25   *   Optional ISO 639 language code that denotes the language of the input.   *   Optional ISO 639 language code that denotes the language of the input.
26   *   Used to apply language-specific optimizations.  Defaults to the current   *   Used to apply language-specific variations and defaults to the current
27   *   display language.   *   display language. If transliteration takes place during output (instead
28     *   of creation) and the source language is not known at that time, it is
29     *   recommended to set this argument to 'en' to produce consistent results
30     *   for all enabled languages.
31   * @return   * @return
32   *   Transliterated text.   *   Transliterated text.
33   */   */
34  function transliteration_get($input, $unknown = '?', $langcode = NULL) {  function transliteration_get($input, $unknown = '?', $source_langcode = NULL) {
35    module_load_include('inc', 'transliteration');    module_load_include('inc', 'transliteration');
36    return transliteration_process($input, $unknown, $langcode);    return transliteration_process($input, $unknown, $source_langcode);
37  }  }
38    
39  /**  /**

Legend:
Removed from v.1.5.2.1  
changed lines
  Added in v.1.5.2.2

  ViewVC Help
Powered by ViewVC 1.1.2