MediaWiki  master
KkConverter Class Reference

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

Inheritance diagram for KkConverter:
Collaboration diagram for KkConverter:

Public Member Functions

 __construct ( $langobj)
 
 convertCategoryKey ( $key)
 
 findVariantLink (&$link, &$nt, $ignoreOtherCond=false)
 A function wrapper: More...
 
 translate ( $text, $toVariant)
 It translates text into variant. More...
 

Public Attributes

 $mCyLa2Arab
 
 $mLatn2Cyrl
 

Protected Member Functions

 loadDefaultTables ()
 
 postLoadTables ()
 

Protected Attributes

 $mCyrl2Latn
 

Private Member Functions

 loadRegs ()
 
 regsConverter ( $text, $toVariant)
 

Detailed Description

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

Definition at line 37 of file KkConverter.php.

Constructor & Destructor Documentation

◆ __construct()

KkConverter::__construct (   $langobj)
Parameters
Language$langobj

Definition at line 44 of file KkConverter.php.

References loadRegs().

Member Function Documentation

◆ convertCategoryKey()

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

Definition at line 358 of file KkConverter.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 233 of file KkConverter.php.

References NS_USER, and NS_USER_TALK.

◆ loadDefaultTables()

KkConverter::loadDefaultTables ( )
protected

Definition at line 65 of file KkConverter.php.

◆ loadRegs()

KkConverter::loadRegs ( )
private

Definition at line 93 of file KkConverter.php.

References KK_C_LC, KK_C_UC, KK_L_LC, and KK_L_UC.

Referenced by __construct().

◆ postLoadTables()

KkConverter::postLoadTables ( )
protected

Definition at line 87 of file KkConverter.php.

◆ regsConverter()

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

Definition at line 303 of file KkConverter.php.

References $matches, 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 257 of file KkConverter.php.

References $matches, KK_C_LC, KK_C_UC, KK_L_LC, KK_L_UC, and regsConverter().

Member Data Documentation

◆ $mCyLa2Arab

KkConverter::$mCyLa2Arab

Definition at line 39 of file KkConverter.php.

◆ $mCyrl2Latn

KkConverter::$mCyrl2Latn
protected

Definition at line 39 of file KkConverter.php.

◆ $mLatn2Cyrl

KkConverter::$mLatn2Cyrl

Definition at line 39 of file KkConverter.php.


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