diff options
Diffstat (limited to 'languages/classes/LanguageKu.php')
-rw-r--r-- | languages/classes/LanguageKu.php | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/languages/classes/LanguageKu.php b/languages/classes/LanguageKu.php index d37d4287..55eb0d56 100644 --- a/languages/classes/LanguageKu.php +++ b/languages/classes/LanguageKu.php @@ -1,19 +1,18 @@ <?php -/** Kurdish - * converter routines - * - * @addtogroup Language - */ - require_once( dirname(__FILE__).'/../LanguageConverter.php' ); require_once( dirname(__FILE__).'/LanguageKu_ku.php' ); +/** Kurdish + * converter routines + * + * @ingroup Language + */ class KuConverter extends LanguageConverter { var $mArabicToLatin = array( 'ب' => 'b', 'ج' => 'c', 'چ' => 'ç', 'د' => 'd', 'ف' => 'f', 'گ' => 'g', 'ھ' => 'h', 'ہ' => 'h', 'ه' => 'h', 'ح' => 'h', 'ژ' => 'j', 'ك' => 'k', 'ک' => 'k', 'ل' => 'l', 'م' => 'm', 'ن' => 'n', 'پ' => 'p', 'ق' => 'q', 'ر' => 'r', 'س' => 's', 'ش' => 'ş', - 'ت' => 't', 'ڤ' => 'v', 'خ' => 'x', 'غ' => 'x', 'ز' => 'z', + 'ت' => 't', 'ڤ' => 'v', 'خ' => 'x', 'غ' => 'x', 'ز' => 'z', // ک و => ku -- ist richtig // و ك=> ku -- ist auch richtig @@ -34,7 +33,7 @@ class KuConverter extends LanguageConverter { 'ۆ' => 'o', 'و' => 'w', 'ئ' => '', # initial hemze should not be shown - '،' => ',', + '،' => ',', 'ع' => '\'', # ayn '؟' => '?', @@ -82,7 +81,7 @@ class KuConverter extends LanguageConverter { 'u' => 'و', 'û' => 'وو', 'w' => 'و', - ',' => '،', + ',' => '،', '?' => '؟', # Try to replace the leading vowel @@ -108,7 +107,7 @@ class KuConverter extends LanguageConverter { ' U' => 'ئو ', ' Û' => 'ئوو ', # eyn erstmal deaktivieren, einfache Anführungsstriche sind einfach zu häufig, um sie als eyn zu interpretieren - # '\'' => 'ع', + # '\'' => 'ع', /* # deactivated for now, breaks links i.e. in header of Special:Recentchanges :-( # digits @@ -133,12 +132,11 @@ class KuConverter extends LanguageConverter { ); } - // Do not convert content on talk pages function parserConvert( $text, &$parser ){ if(is_object($parser->getTitle() ) && $parser->getTitle()->isTalkPage()) $this->mDoContentConvert=false; - else + else $this->mDoContentConvert=true; return parent::parserConvert($text, $parser ); @@ -146,7 +144,7 @@ class KuConverter extends LanguageConverter { /* * A function wrapper: - * - if there is no selected variant, leave the link + * - if there is no selected variant, leave the link * names as they were * - do not try to find variants for usernames */ @@ -180,7 +178,7 @@ class KuConverter extends LanguageConverter { */ function autoConvert($text, $toVariant=false) { global $wgTitle; - if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){ + if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){ $imagename = $wgTitle->getNsText(); if(preg_match("/^$imagename:/",$text)) return $text; } @@ -227,6 +225,9 @@ class KuConverter extends LanguageConverter { } } +/** + * @ingroup Language + */ class LanguageKu extends LanguageKu_ku { function __construct() { |