MediaWiki  1.30.2
KkConverter Class Reference

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

Inheritance diagram for KkConverter:
Collaboration diagram for KkConverter:

Public Member Functions

 __construct ( $langobj, $maincode, $variants=[], $variantfallbacks=[], $flags=[])
 
 convertCategoryKey ( $key)
 
 findVariantLink (&$link, &$nt, $ignoreOtherCond=false)
 A function wrapper: More...
 
 loadDefaultTables ()
 
 loadRegs ()
 
 postLoadTables ()
 
 regsConverter ( $text, $toVariant)
 
 translate ( $text, $toVariant)
 It translates text into variant. More...
 

Public Attributes

 $mCyLa2Arab
 
 $mLatn2Cyrl
 

Protected Attributes

 $mCyrl2Latn
 

Detailed Description

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

Definition at line 37 of file LanguageKk.php.

Constructor & Destructor Documentation

◆ __construct()

KkConverter::__construct (   $langobj,
  $maincode,
  $variants = [],
  $variantfallbacks = [],
  $flags = [] 
)
Parameters
Language$langobj
string$maincode
array$variants
array$variantfallbacks
array$flags

Definition at line 47 of file LanguageKk.php.

References $flags, and loadRegs().

Member Function Documentation

◆ convertCategoryKey()

KkConverter::convertCategoryKey (   $key)
Parameters
string$key
Returns
string

Definition at line 356 of file LanguageKk.php.

◆ findVariantLink()

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
string&$link
Title&$nt
bool$ignoreOtherCond

Definition at line 228 of file LanguageKk.php.

References $link, NS_USER, and NS_USER_TALK.

◆ loadDefaultTables()

KkConverter::loadDefaultTables ( )

Definition at line 60 of file LanguageKk.php.

◆ loadRegs()

KkConverter::loadRegs ( )

Definition at line 88 of file LanguageKk.php.

References KK_C_LC, KK_C_UC, KK_L_LC, and KK_L_UC.

Referenced by __construct().

◆ postLoadTables()

KkConverter::postLoadTables ( )

Definition at line 82 of file LanguageKk.php.

◆ regsConverter()

KkConverter::regsConverter (   $text,
  $toVariant 
)
Parameters
string$text
string$toVariant
Returns
mixed|string

Definition at line 298 of file LanguageKk.php.

References $matches, $ret, as, H_HAMZA, KK_C_LC, and KK_C_UC.

Referenced by translate().

◆ translate()

KkConverter::translate (   $text,
  $toVariant 
)

It translates text into variant.

Parameters
string$text
string$toVariant
Returns
string

Definition at line 252 of file LanguageKk.php.

References $matches, $ret, as, KK_C_LC, KK_C_UC, KK_L_LC, KK_L_UC, regsConverter(), and Makefile\translate().

Member Data Documentation

◆ $mCyLa2Arab

KkConverter::$mCyLa2Arab

Definition at line 38 of file LanguageKk.php.

◆ $mCyrl2Latn

KkConverter::$mCyrl2Latn
protected

Definition at line 38 of file LanguageKk.php.

◆ $mLatn2Cyrl

KkConverter::$mLatn2Cyrl

Definition at line 38 of file LanguageKk.php.


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