Inherits LanguageConverter.
Public Member Functions | |
loadDefaultTables () | |
Load default conversion tables This method must be implemented in derived class. | |
parserConvert ($text, &$parser) | |
Convert text using a parser object for context. | |
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 179 of file LanguageKu.php.
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 151 of file LanguageKu.php.
References $ns, and 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 169 of file LanguageKu.php.
References $text.
KuConverter::parserConvert | ( | $ | text, | |
&$ | parser | |||
) |
Convert text using a parser object for context.
Reimplemented from LanguageConverter.
Definition at line 136 of file LanguageKu.php.
References $text.
KuConverter::translate | ( | $ | text, | |
$ | toVariant | |||
) |
It translates text into variant, specials:
Reimplemented from LanguageConverter.
Definition at line 192 of file LanguageKu.php.
References $text.
KuConverter::$mArabicToLatin |
Definition at line 11 of file LanguageKu.php.
KuConverter::$mLatinToArabic |
Definition at line 53 of file LanguageKu.php.