MediaWiki  1.23.2
KuConverter Class Reference

Kurdish converter routines. More...

Inheritance diagram for KuConverter:
Collaboration diagram for KuConverter:

Public Member Functions

 autoConvert ( $text, $toVariant=false)
 An ugly function wrapper for parsing Image titles (to prevent image name conversion) More...
 
 findVariantLink (&$link, &$nt, $ignoreOtherCond=false)
 A function wrapper: More...
 
 loadDefaultTables ()
 
 translate ( $text, $toVariant)
 It translates text into variant, specials: More...
 

Public Attributes

 $mArabicToLatin
 
 $mLatinToArabic
 

Detailed Description

Kurdish converter routines.

Definition at line 32 of file LanguageKu.php.

Member Function Documentation

◆ autoConvert()

KuConverter::autoConvert (   $text,
  $toVariant = false 
)

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

Parameters
$textstring
$toVariantbool
Returns
string

Definition at line 191 of file LanguageKu.php.

References $wgTitle, global, and NS_FILE.

◆ 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
$linkstring
$ntTitle
$ignoreOtherCondbool

Definition at line 166 of file LanguageKu.php.

References $link, NS_USER, and NS_USER_TALK.

◆ loadDefaultTables()

KuConverter::loadDefaultTables ( )

Definition at line 148 of file LanguageKu.php.

References array().

◆ translate()

KuConverter::translate (   $text,
  $toVariant 
)

It translates text into variant, specials:

  • ommiting roman numbers
Parameters
$textstring
$toVariantbool
Exceptions
MWException
Returns
string

Definition at line 212 of file LanguageKu.php.

References Makefile\translate().

Member Data Documentation

◆ $mArabicToLatin

KuConverter::$mArabicToLatin

Definition at line 33 of file LanguageKu.php.

◆ $mLatinToArabic

KuConverter::$mLatinToArabic

Definition at line 75 of file LanguageKu.php.


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