MediaWiki master
|
A class that extends LanguageConverterSpecific for converts that use ICU rule-based transliterators. More...
Inherits LanguageConverterSpecific.
Inherited by BanConverter.
Public Member Functions | |
icuTranslate ( $text, $variant) | |
Translate a string to a variant using ICU transliterator. | |
translate ( $text, $variant) | |
Public Member Functions inherited from LanguageConverterSpecific | |
findVariantLink (&$link, &$nt, $ignoreOtherCond=false) | |
A function wrapper: | |
Protected Member Functions | |
getIcuRules () | |
Get the array mapping variants to ICU transliteration rules. | |
getTransliteratorAliases () | |
Get the array mapping variant aliases to the main variant. | |
getTransliterators () | |
Get the array mapping variants to ICU transliterators. | |
loadDefaultTables () | |
Creates empty tables. | |
Protected Attributes | |
Transliterator[] | $mTransliterators |
A class that extends LanguageConverterSpecific for converts that use ICU rule-based transliterators.
Definition at line 27 of file LanguageConverterIcu.php.
|
abstractprotected |
Get the array mapping variants to ICU transliteration rules.
Subclasses must implement this.
Reimplemented in BanConverter.
|
protected |
Get the array mapping variant aliases to the main variant.
Reimplemented in BanConverter.
Definition at line 97 of file LanguageConverterIcu.php.
|
protected |
Get the array mapping variants to ICU transliterators.
Definition at line 79 of file LanguageConverterIcu.php.
LanguageConverterIcu::icuTranslate | ( | $text, | |
$variant ) |
Translate a string to a variant using ICU transliterator.
string | $text | Text to convert |
string | $variant | Variant language code |
Definition at line 62 of file LanguageConverterIcu.php.
|
protected |
Creates empty tables.
mTransliterators will be used instead.
Definition at line 39 of file LanguageConverterIcu.php.
LanguageConverterIcu::translate | ( | $text, | |
$variant ) |
Definition at line 47 of file LanguageConverterIcu.php.
|
protected |
Definition at line 32 of file LanguageConverterIcu.php.