MediaWiki
REL1_19
|
Kazakh (Қазақша) converter routines. More...
Public Member Functions | |
__construct ($langobj, $maincode, $variants=array(), $variantfallbacks=array(), $flags=array()) | |
autoConvert ($text, $toVariant=false) | |
An ugly function wrapper for parsing Image titles (to prevent image name conversion) | |
convertCategoryKey ($key) | |
findVariantLink (&$link, &$nt, $ignoreOtherCond=false) | |
A function wrapper: | |
loadDefaultTables () | |
Load default conversion tables. | |
loadRegs () | |
markNoConversion ($text, $noParse=false) | |
We want our external link captions to be converted in variants, so we return the original text instead -{$text}-, except for URLs. | |
parseManualRule ($rule, $flags=array()) | |
rules should be defined as -{ekavian | iyekavian-} -or- | |
postLoadTables () | |
Hook for post processing after conversion tables are loaded. | |
regsConverter ($text, $toVariant) | |
translate ($text, $toVariant) | |
It translates text into variant. | |
Public Attributes | |
$mCyLa2Arab | |
$mLatn2Cyrl | |
Protected Attributes | |
$mCyrl2Latn |
Kazakh (Қазақша) converter routines.
Definition at line 19 of file LanguageKk.php.
KkConverter::__construct | ( | $ | langobj, |
$ | maincode, | ||
$ | variants = array() , |
||
$ | variantfallbacks = array() , |
||
$ | flags = array() |
||
) |
$langobj | Language |
$maincode | string |
$variants | array |
$variantfallbacks | array |
$flags | array |
Definition at line 30 of file LanguageKk.php.
References loadRegs().
KkConverter::autoConvert | ( | $ | text, |
$ | toVariant = false |
||
) |
An ugly function wrapper for parsing Image titles (to prevent image name conversion)
$text | string |
$toVariant | bool |
Reimplemented from LanguageConverter.
Definition at line 260 of file LanguageKk.php.
References $wgTitle.
Referenced by convertCategoryKey().
KkConverter::convertCategoryKey | ( | $ | key | ) |
$key | string |
Reimplemented from LanguageConverter.
Definition at line 391 of file LanguageKk.php.
References autoConvert().
KkConverter::findVariantLink | ( | &$ | link, |
&$ | nt, | ||
$ | ignoreOtherCond = false |
||
) |
A function wrapper:
$link | string | |
$nt | Title | |
bool | $ignoreOtherCond |
Reimplemented from LanguageConverter.
Definition at line 237 of file LanguageKk.php.
References LanguageConverter\getPreferredVariant().
Load default conversion tables.
This method must be implemented in derived class.
Reimplemented from LanguageConverter.
Definition at line 43 of file LanguageKk.php.
Definition at line 71 of file LanguageKk.php.
Referenced by __construct().
KkConverter::markNoConversion | ( | $ | text, |
$ | noParse = false |
||
) |
We want our external link captions to be converted in variants, so we return the original text instead -{$text}-, except for URLs.
$text | string |
$noParse | string|bool |
Reimplemented from LanguageConverter.
Definition at line 381 of file LanguageKk.php.
KkConverter::parseManualRule | ( | $ | rule, |
$ | flags = array() |
||
) |
rules should be defined as -{ekavian | iyekavian-} -or-
-{code:text | code:text | ...}-
update: delete all rule parsing because it's not used currently, and just produces a couple of bugs
$rule | string |
$flags | array |
Definition at line 213 of file LanguageKk.php.
Hook for post processing after conversion tables are loaded.
Reimplemented from LanguageConverter.
Definition at line 65 of file LanguageKk.php.
KkConverter::regsConverter | ( | $ | text, |
$ | toVariant | ||
) |
$text | string |
$toVariant | string |
Definition at line 320 of file LanguageKk.php.
References $matches.
Referenced by translate().
KkConverter::translate | ( | $ | text, |
$ | toVariant | ||
) |
It translates text into variant.
$text | string |
$toVariant | string |
Reimplemented from LanguageConverter.
Definition at line 277 of file LanguageKk.php.
References $matches, $wgLanguageCode, and regsConverter().
KkConverter::$mCyLa2Arab |
Definition at line 21 of file LanguageKk.php.
KkConverter::$mCyrl2Latn [protected] |
Definition at line 21 of file LanguageKk.php.
KkConverter::$mLatn2Cyrl |
Definition at line 21 of file LanguageKk.php.