MediaWiki  REL1_19
KkConverter Class Reference

Kazakh (Қазақша) converter routines. More...

Inheritance diagram for KkConverter:
Collaboration diagram for KkConverter:

List of all members.

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

Detailed Description

Kazakh (Қазақша) converter routines.

Definition at line 19 of file LanguageKk.php.


Constructor & Destructor Documentation

KkConverter::__construct ( langobj,
maincode,
variants = array(),
variantfallbacks = array(),
flags = array() 
)
Parameters:
$langobjLanguage
$maincodestring
$variantsarray
$variantfallbacksarray
$flagsarray

Definition at line 30 of file LanguageKk.php.

References loadRegs().

Here is the call graph for this function:


Member Function Documentation

KkConverter::autoConvert ( text,
toVariant = false 
)

An ugly function wrapper for parsing Image titles (to prevent image name conversion)

Parameters:
$textstring
$toVariantbool
Returns:
string

Reimplemented from LanguageConverter.

Definition at line 260 of file LanguageKk.php.

References $wgTitle.

Referenced by convertCategoryKey().

Here is the caller graph for this function:

Parameters:
$keystring
Returns:
String

Reimplemented from LanguageConverter.

Definition at line 391 of file LanguageKk.php.

References autoConvert().

Here is the call graph for this function:

KkConverter::findVariantLink ( &$  link,
&$  nt,
ignoreOtherCond = false 
)

A function wrapper:

  • if there is no selected variant, leave the link names as they were
  • do not try to find variants for usernames
Parameters:
$linkstring
$ntTitle
bool$ignoreOtherCond

Reimplemented from LanguageConverter.

Definition at line 237 of file LanguageKk.php.

References LanguageConverter\getPreferredVariant().

Here is the call graph for this function:

Load default conversion tables.

This method must be implemented in derived class.

Access:
private

Reimplemented from LanguageConverter.

Definition at line 43 of file LanguageKk.php.

Definition at line 71 of file LanguageKk.php.

Referenced by __construct().

Here is the caller graph for this function:

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.

Parameters:
$textstring
$noParsestring|bool
Returns:
string

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

Parameters:
$rulestring
$flagsarray
Returns:
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 
)
Parameters:
$textstring
$toVariantstring
Returns:
mixed|string

Definition at line 320 of file LanguageKk.php.

References $matches.

Referenced by translate().

Here is the caller graph for this function:

KkConverter::translate ( text,
toVariant 
)

It translates text into variant.

Parameters:
$textstring
$toVariantstring
Returns:
string

Reimplemented from LanguageConverter.

Definition at line 277 of file LanguageKk.php.

References $matches, $wgLanguageCode, and regsConverter().

Here is the call graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file: