| 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 |
| 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 |
/** |
/** |