MediaWiki  master
KuConverter Class Reference

Kurdish converter routines. More...

Inheritance diagram for KuConverter:
Collaboration diagram for KuConverter:

Public Member Functions

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

Public Attributes

 $mArabicToLatin
 
 $mLatinToArabic
 

Protected Member Functions

 loadDefaultTables ()
 

Detailed Description

Kurdish converter routines.

Definition at line 29 of file KuConverter.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 149 of file KuConverter.php.

Member Function Documentation

◆ findVariantLink()

KuConverter::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 178 of file KuConverter.php.

References NS_USER, and NS_USER_TALK.

◆ loadDefaultTables()

KuConverter::loadDefaultTables ( )
protected

Definition at line 160 of file KuConverter.php.

◆ translate()

KuConverter::translate (   $text,
  $toVariant 
)

It translates text into variant, specials:

  • ommiting roman numbers
Parameters
string$text
bool$toVariant
Exceptions
MWException
Returns
string

Definition at line 204 of file KuConverter.php.

Member Data Documentation

◆ $mArabicToLatin

KuConverter::$mArabicToLatin

Definition at line 30 of file KuConverter.php.

◆ $mLatinToArabic

KuConverter::$mLatinToArabic

Definition at line 72 of file KuConverter.php.


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