MediaWiki
REL1_22
|
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 () | |
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 40 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 51 of file LanguageKk.php.
References $flags, and 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 283 of file LanguageKk.php.
References $wgTitle, and global.
Referenced by convertCategoryKey().
KkConverter::convertCategoryKey | ( | $ | key | ) |
$key | string |
Reimplemented from LanguageConverter.
Definition at line 401 of file LanguageKk.php.
References $key, and autoConvert().
KkConverter::findVariantLink | ( | &$ | link, |
&$ | nt, | ||
$ | ignoreOtherCond = false |
||
) |
A function wrapper:
$link | string | |
$nt | Title | |
bool | $ignoreOtherCond |
Reimplemented from LanguageConverter.
Definition at line 258 of file LanguageKk.php.
References $link, and LanguageConverter\getPreferredVariant().
Load default conversion tables.
This method must be implemented in derived class.
MWException |
Reimplemented from LanguageConverter.
Definition at line 64 of file LanguageKk.php.
References array().
Definition at line 92 of file LanguageKk.php.
References array(), characters, and Punctuation.
Referenced by __construct().
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 234 of file LanguageKk.php.
Hook for post processing after conversion tables are loaded.
Reimplemented from LanguageConverter.
Definition at line 86 of file LanguageKk.php.
KkConverter::regsConverter | ( | $ | text, |
$ | toVariant | ||
) |
$text | string |
$toVariant | string |
Definition at line 345 of file LanguageKk.php.
References $matches, $ret, and as.
Referenced by translate().
KkConverter::translate | ( | $ | text, |
$ | toVariant | ||
) |
It translates text into variant.
$text | string |
$toVariant | string |
Reimplemented from LanguageConverter.
Definition at line 302 of file LanguageKk.php.
References $matches, $ret, as, global, and regsConverter().
KkConverter::$mCyLa2Arab |
Definition at line 42 of file LanguageKk.php.
KkConverter::$mCyrl2Latn [protected] |
Definition at line 42 of file LanguageKk.php.
KkConverter::$mLatn2Cyrl |
Definition at line 42 of file LanguageKk.php.