Inherits LanguageConverter.
Public Member Functions | |
loadDefaultTables () | |
Load default conversion tables. | |
findVariantLink (&$link, &$nt, $ignoreOtherCond=false) | |
If a language supports multiple variants, it is possible that non-existing link in one variant actually exists in another variant. | |
markNoConversion ($text, $noParse=false) | |
Enclose a string with the "no conversion" tag. | |
autoConvert ($text, $toVariant=false) | |
Dictionary-based conversion. | |
translate ($text, $toVariant) | |
It translates text into variant, specials:
| |
Public Attributes | |
$mArabicToLatin | |
$mLatinToArabic |
Definition at line 10 of file LanguageKu.php.
KuConverter::autoConvert | ( | $ | text, | |
$ | toVariant = false | |||
) |
Dictionary-based conversion.
string | $text the text to be converted | |
string | $toVariant the target language code |
Reimplemented from LanguageConverter.
Definition at line 169 of file LanguageKu.php.
References $wgTitle.
KuConverter::findVariantLink | ( | &$ | link, | |
&$ | nt, | |||
$ | ignoreOtherCond = false | |||
) |
If a language supports multiple variants, it is possible that non-existing link in one variant actually exists in another variant.
This function tries to find it. See e.g. LanguageZh.php
string | $link the name of the link | |
mixed | $nt the title object of the link | |
boolean | $ignoreOtherCond: to disable other conditions when we need to transclude a template or update a category's link |
Reimplemented from LanguageConverter.
Definition at line 141 of file LanguageKu.php.
References LanguageConverter::getPreferredVariant().
KuConverter::loadDefaultTables | ( | ) |
Load default conversion tables.
This method must be implemented in derived class.
Reimplemented from LanguageConverter.
Definition at line 127 of file LanguageKu.php.
KuConverter::markNoConversion | ( | $ | text, | |
$ | noParse = false | |||
) |
Enclose a string with the "no conversion" tag.
This is used by various functions in the Parser.
string | $text text to be tagged for no conversion |
Reimplemented from LanguageConverter.
Definition at line 159 of file LanguageKu.php.
KuConverter::translate | ( | $ | text, | |
$ | toVariant | |||
) |
It translates text into variant, specials:
Reimplemented from LanguageConverter.
Definition at line 182 of file LanguageKu.php.
KuConverter::$mArabicToLatin |
Definition at line 11 of file LanguageKu.php.
KuConverter::$mLatinToArabic |
Definition at line 53 of file LanguageKu.php.