r34985 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34984‎ | r34985 | r34986 >
Date:17:10, 17 May 2008
Author:siebrand
Status:old
Tags:
Comment:
remove EOL whitespace, and excess empty lines
Modified paths:
  • /trunk/phase3/languages/classes/LanguageAr.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageAz.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageBat_smg.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageBe.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageBe_tarask.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageBg.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageBs.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageCs.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageCu.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageDsb.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageEo.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageEt.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageFi.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageFr.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageGa.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageGsw.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageHe.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageHr.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageHsb.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageHy.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageJa.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKk.deps.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKk.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKk_cyrl.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKo.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKsh.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKu.deps.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKu.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageKu_ku.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageLa.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageLt.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageLv.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguagePl.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguagePt_br.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageRmy.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageRu.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageSk.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageSl.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageSr.deps.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageSr.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageSr_ec.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageSr_el.deps.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageSr_el.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageTg.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageTr.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageTyv.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageUk.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageWa.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageZh.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageHsb.php
@@ -96,7 +96,7 @@
9797 }
9898 break;
9999 }
100 -
 100+
101101 return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values
102102 }
103103
Index: trunk/phase3/languages/classes/LanguageSk.php
@@ -89,6 +89,4 @@
9090 }
9191 return $forms[$index];
9292 }
93 -
9493 }
95 -
Index: trunk/phase3/languages/classes/LanguageSl.php
@@ -88,7 +88,4 @@
8989 }
9090 return $forms[$index];
9191 }
92 -
93 -
9492 }
95 -
Index: trunk/phase3/languages/classes/LanguageKu_ku.php
@@ -1,11 +1,9 @@
22 <?php
33 /** Kurdish
4 - *
5 - *
6 - * @addtogroup Language
7 - */
 4+ *
 5+ * @addtogroup Language
 6+ */
87
9 -
108 class LanguageKu_ku extends Language {
119
1210 /** # Convert from the nominative form of a noun to some other case
@@ -31,5 +29,3 @@
3230 }
3331 }
3432 }
35 -
36 -
Index: trunk/phase3/languages/classes/LanguageUk.php
@@ -86,4 +86,3 @@
8787 }
8888 }
8989 }
90 -
Index: trunk/phase3/languages/classes/LanguageKu.php
@@ -13,7 +13,7 @@
1414 'ب' => 'b', 'ج' => 'c', 'چ' => 'ç', 'د' => 'd', 'ف' => 'f', 'گ' => 'g', 'ھ' => 'h',
1515 'ہ' => 'h', 'ه' => 'h', 'ح' => 'h', 'ژ' => 'j', 'ك' => 'k', 'ک' => 'k', 'ل' => 'l',
1616 'م' => 'm', 'ن' => 'n', 'پ' => 'p', 'ق' => 'q', 'ر' => 'r', 'س' => 's', 'ش' => 'ş',
17 - 'ت' => 't', 'ڤ' => 'v', 'خ' => 'x', 'غ' => 'x', 'ز' => 'z',
 17+ 'ت' => 't', 'ڤ' => 'v', 'خ' => 'x', 'غ' => 'x', 'ز' => 'z',
1818
1919 // ک و => ku -- ist richtig
2020 // و ك=> ku -- ist auch richtig
@@ -34,7 +34,7 @@
3535 'ۆ' => 'o',
3636 'و' => 'w',
3737 'ئ' => '', # initial hemze should not be shown
38 - '،' => ',',
 38+ '،' => ',',
3939 'ع' => '\'', # ayn
4040 '؟' => '?',
4141
@@ -82,7 +82,7 @@
8383 'u' => 'و',
8484 'û' => 'وو',
8585 'w' => 'و',
86 - ',' => '،',
 86+ ',' => '،',
8787 '?' => '؟',
8888
8989 # Try to replace the leading vowel
@@ -108,7 +108,7 @@
109109 ' U' => 'ئو ',
110110 ' Û' => 'ئوو ',
111111 # eyn erstmal deaktivieren, einfache Anführungsstriche sind einfach zu häufig, um sie als eyn zu interpretieren
112 - # '\'' => 'ع',
 112+ # '\'' => 'ع',
113113
114114 /* # deactivated for now, breaks links i.e. in header of Special:Recentchanges :-(
115115 # digits
@@ -133,12 +133,11 @@
134134 );
135135 }
136136
137 -
138137 // Do not convert content on talk pages
139138 function parserConvert( $text, &$parser ){
140139 if(is_object($parser->getTitle() ) && $parser->getTitle()->isTalkPage())
141140 $this->mDoContentConvert=false;
142 - else
 141+ else
143142 $this->mDoContentConvert=true;
144143
145144 return parent::parserConvert($text, $parser );
@@ -146,7 +145,7 @@
147146
148147 /*
149148 * A function wrapper:
150 - * - if there is no selected variant, leave the link
 149+ * - if there is no selected variant, leave the link
151150 * names as they were
152151 * - do not try to find variants for usernames
153152 */
@@ -180,7 +179,7 @@
181180 */
182181 function autoConvert($text, $toVariant=false) {
183182 global $wgTitle;
184 - if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){
 183+ if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){
185184 $imagename = $wgTitle->getNsText();
186185 if(preg_match("/^$imagename:/",$text)) return $text;
187186 }
Index: trunk/phase3/languages/classes/LanguageSr.php
@@ -73,7 +73,7 @@
7474 foreach($this->mVariants as $v) {
7575 $carray[$v] = $rule;
7676 }
77 -
 77+
7878 return $carray;
7979 }
8080
@@ -81,7 +81,7 @@
8282 function parserConvert( $text, &$parser ){
8383 if(is_object($parser->getTitle() ) && $parser->getTitle()->isTalkPage())
8484 $this->mDoContentConvert=false;
85 - else
 85+ else
8686 $this->mDoContentConvert=true;
8787
8888 return parent::parserConvert($text, $parser );
@@ -89,7 +89,7 @@
9090
9191 /*
9292 * A function wrapper:
93 - * - if there is no selected variant, leave the link
 93+ * - if there is no selected variant, leave the link
9494 * names as they were
9595 * - do not try to find variants for usernames
9696 */
@@ -123,12 +123,12 @@
124124 */
125125 function autoConvert($text, $toVariant=false) {
126126 global $wgTitle;
127 - if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){
 127+ if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){
128128 $imagename = $wgTitle->getNsText();
129129 if(preg_match("/^$imagename:/",$text)) return $text;
130130 }
131131 return parent::autoConvert($text,$toVariant);
132 - }
 132+ }
133133
134134 /**
135135 * It translates text into variant, specials:
@@ -143,7 +143,7 @@
144144 $reg = '/^'.$roman.'$|^'.$roman.$breaks.'|'.$breaks.$roman.'$|'.$breaks.$roman.$breaks.'/';
145145
146146 $matches = preg_split($reg, $text, -1, PREG_SPLIT_OFFSET_CAPTURE);
147 -
 147+
148148 $m = array_shift($matches);
149149 if( !isset( $this->mTables[$toVariant] ) ) {
150150 throw new MWException( "Broken variant table: " . implode( ',', array_keys( $this->mTables ) ) );
@@ -158,7 +158,6 @@
159159
160160 return $ret;
161161 }
162 -
163162 }
164163
165164 class LanguageSr extends LanguageSr_ec {
@@ -172,9 +171,8 @@
173172 'sr' => 'sr-ec',
174173 'sr-ec' => 'sr',
175174 'sr-el' => 'sr',
176 - );
 175+ );
177176
178 -
179177 $marker = array();//don't mess with these, leave them as they are
180178 $flags = array(
181179 'S' => 'S', 'писмо' => 'S', 'pismo' => 'S',
@@ -184,4 +182,3 @@
185183 $wgHooks['ArticleSaveComplete'][] = $this->mConverter;
186184 }
187185 }
188 -
Index: trunk/phase3/languages/classes/LanguageKsh.php
@@ -34,4 +34,3 @@
3535 }
3636 }
3737 }
38 -
Index: trunk/phase3/languages/classes/LanguageBe.php
@@ -88,7 +88,4 @@
8989
9090 return $word; # this will return the original value for 'назоўны' (nominative) and all undefined case values
9191 }
92 -
9392 }
94 -
95 -
Index: trunk/phase3/languages/classes/LanguageBg.php
@@ -20,4 +20,3 @@
2121 }
2222 }
2323 }
24 -
Index: trunk/phase3/languages/classes/LanguageJa.php
@@ -37,5 +37,3 @@
3838 return $text;
3939 }
4040 }
41 -
42 -
Index: trunk/phase3/languages/classes/LanguageBe_tarask.php
@@ -97,7 +97,4 @@
9898
9999 return $word; # this will return the original value for 'назоўны' (nominative) and all undefined case values
100100 }
101 -
102101 }
103 -
104 -
Index: trunk/phase3/languages/classes/LanguageSr_ec.php
@@ -24,6 +24,4 @@
2525 }
2626 }
2727 }
28 -
2928 }
30 -
Index: trunk/phase3/languages/classes/LanguageHe.php
@@ -70,5 +70,3 @@
7171 }
7272 }
7373 }
74 -
75 -
Index: trunk/phase3/languages/classes/LanguageLa.php
@@ -75,8 +75,4 @@
7676 return $word;
7777 }
7878 }
79 -
8079 }
81 -
82 -
83 -
Index: trunk/phase3/languages/classes/LanguageKk_cyrl.php
@@ -1,11 +1,9 @@
22 <?php
33 /** Kazakh (Қазақша)
4 - *
5 - *
6 - * @addtogroup Language
7 - */
 4+ *
 5+ * @addtogroup Language
 6+ */
87
9 -
108 class LanguageKk_cyrl extends Language {
119
1210 # Convert from the nominative form of a noun to some other case
@@ -153,7 +151,7 @@
154152 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
155153 $word = $word . "да";
156154 }
157 - }
 155+ }
158156 break;
159157 case "dc41":
160158 case "possessive locative": #täweldık + jatıs
@@ -169,7 +167,7 @@
170168 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
171169 $word = $word . "нда";
172170 }
173 - }
 171+ }
174172 break;
175173 case "dc5":
176174 case "ablative": #şığıs
@@ -373,7 +371,7 @@
374372 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
375373 $word = $word . "da";
376374 }
377 - }
 375+ }
378376 break;
379377 case "dc41":
380378 case "possessive locative": #täweldık + jatıs
@@ -389,7 +387,7 @@
390388 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
391389 $word = $word . "nda";
392390 }
393 - }
 391+ }
394392 break;
395393 case "dc5":
396394 case "ablative": #şığıs
@@ -593,7 +591,7 @@
594592 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
595593 $word = $word . "دا";
596594 }
597 - }
 595+ }
598596 break;
599597 case "dc41":
600598 case "possessive locative": #täweldık + jatıs
@@ -609,7 +607,7 @@
610608 } elseif ( in_array( $wordLastVowel, $backVowels ) ) {
611609 $word = $word . "ندا";
612610 }
613 - }
 611+ }
614612 break;
615613 case "dc5":
616614 case "ablative": #şığıs
@@ -681,7 +679,7 @@
682680 // Put the word in a form we can play with since we're using UTF-8
683681 $ar = preg_split('//u', parent::lc($word), -1, PREG_SPLIT_NO_EMPTY);
684682
685 - // Here's an array with the order of the letters in the word reversed
 683+ // Here's an array with the order of the letters in the word reversed
686684 // so we can find a match quicker *shrug*
687685 $wordReversed = array_reverse( $ar );
688686
Index: trunk/phase3/languages/classes/LanguageFi.php
@@ -131,7 +131,4 @@
132132
133133 return htmlspecialchars( trim( $final ) );
134134 }
135 -
136135 }
137 -
138 -
Index: trunk/phase3/languages/classes/LanguageGsw.php
@@ -59,10 +59,7 @@
6060 $word = 'd Wikiquälle';
6161 }
6262 break;
63 - }
 63+ }
6464 return $word;
6565 }
66 -
6766 }
68 -
69 -
Index: trunk/phase3/languages/classes/LanguageSr_el.php
@@ -24,6 +24,4 @@
2525 }
2626 }
2727 }
28 -
2928 }
30 -
Index: trunk/phase3/languages/classes/LanguageBs.php
@@ -132,7 +132,4 @@
133133
134134 return $word; # this will return the original value for 'nominativ' (nominative) and all undefined case values
135135 }
136 -
137136 }
138 -
139 -
Index: trunk/phase3/languages/classes/LanguageRmy.php
@@ -68,5 +68,3 @@
6969 return $word; # this will return the original value for 'nominative' and all undefined case values
7070 }
7171 }
72 -
73 -
Index: trunk/phase3/languages/classes/LanguageFr.php
@@ -15,6 +15,4 @@
1616
1717 return ($count <= 1) ? $forms[0] : $forms[1];
1818 }
19 -
2019 }
21 -
Index: trunk/phase3/languages/classes/LanguageHr.php
@@ -22,7 +22,4 @@
2323 }
2424 }
2525 }
26 -
2726 }
28 -
29 -
Index: trunk/phase3/languages/classes/LanguageTg.php
@@ -5,7 +5,6 @@
66
77 require_once( dirname(__FILE__).'/../LanguageConverter.php' );
88
9 -
109 /**
1110 * Converts Tajiki to latin orthography
1211 */
@@ -102,4 +101,3 @@
103102 $this->mConverter = new TgConverter( $this, 'tg', $variants );
104103 }
105104 }
106 -
Index: trunk/phase3/languages/classes/LanguagePl.php
@@ -21,4 +21,4 @@
2222 return $forms[2]; // plural genitive
2323 }
2424 }
25 -}
\ No newline at end of file
 25+}
Index: trunk/phase3/languages/classes/LanguageBat_smg.php
@@ -22,5 +22,4 @@
2323 return $forms[3];
2424 }
2525 }
26 -
27 -}
\ No newline at end of file
 26+}
Index: trunk/phase3/languages/classes/LanguageSr.deps.php
@@ -7,4 +7,3 @@
88
99 require_once( dirname(__FILE__).'/LanguageSr_ec.php' );
1010 require_once( dirname(__FILE__).'/../LanguageConverter.php' );
11 -
Index: trunk/phase3/languages/classes/LanguageLt.php
@@ -24,4 +24,3 @@
2525 return $forms[2];
2626 }
2727 }
28 -
Index: trunk/phase3/languages/classes/LanguageHy.php
@@ -68,4 +68,3 @@
6969 }
7070 }
7171 }
72 -
Index: trunk/phase3/languages/classes/LanguageLv.php
@@ -45,15 +45,13 @@
4646 $wgGrammarForms['lv']['akuzatīvs']['Vikivārdnīca'] = 'Vikivārdnīcu';
4747 $wgGrammarForms['lv']['lokatīvs' ]['Vikipēdija'] = 'Vikipēdijā';
4848 $wgGrammarForms['lv']['lokatīvs' ]['Vikivārdnīca'] = 'Vikivārdnīcā';
49 -
 49+
5050 if ( isset($wgGrammarForms['lv'][$case][$word]) ) {
5151 return $wgGrammarForms['lv'][$case][$word];
5252 }
5353
5454 return $word;
55 -
5655 }
57 -
5856 }
5957
6058
Index: trunk/phase3/languages/classes/LanguageZh.php
@@ -39,7 +39,6 @@
4040 }
4141 }
4242
43 -
4443 /* class that handles both Traditional and Simplified Chinese
4544 right now it only distinguish zh_hans, zh_hant, zh_cn, zh_tw, zh_sg and zh_hk.
4645 */
@@ -65,7 +64,6 @@
6665 $wgHooks['ArticleSaveComplete'][] = $this->mConverter;
6766 }
6867
69 -
7068 # this should give much better diff info
7169 function segmentForDiff( $text ) {
7270 return preg_replace(
@@ -108,5 +106,4 @@
109107 $ret = array_unique( explode('|', $terms) );
110108 return $ret;
111109 }
112 -
113110 }
Index: trunk/phase3/languages/classes/LanguageTyv.php
@@ -24,7 +24,6 @@
2525 return $wgGrammarForms['tyv'][$case][$word];
2626 }
2727
28 -
2928 // Set up some constants...
3029 $allVowels = array("е", "и", "э", "ө", "ү", "а", "ё", "о", "у", "ы", "ю", "я", "a", "e", "i", "o", "ö", "u", "ü", "y");
3130 $frontVowels = array("е", "и", "э", "ө", "ү", "e", "i", "ö", "ü");
@@ -229,4 +228,3 @@
230229 return $word;
231230 }
232231 }
233 -
Index: trunk/phase3/languages/classes/LanguageTr.php
@@ -12,6 +12,4 @@
1313 return parent::ucfirst( $string );
1414 }
1515 }
16 -
1716 }
18 -
Index: trunk/phase3/languages/classes/LanguageRu.php
@@ -104,5 +104,3 @@
105105 }
106106 }
107107 }
108 -
109 -
Index: trunk/phase3/languages/classes/LanguageGa.php
@@ -45,7 +45,4 @@
4646 }
4747 return $word;
4848 }
49 -
5049 }
51 -
52 -
Index: trunk/phase3/languages/classes/LanguageSr_el.deps.php
@@ -6,4 +6,3 @@
77 // see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html
88
99 require_once( dirname(__FILE__).'/LanguageSr_ec.php' );
10 -
Index: trunk/phase3/languages/classes/LanguageKk.deps.php
@@ -5,7 +5,5 @@
66 // changed on a subsequent page view.
77 // see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
88
9 -
109 require_once( dirname(__FILE__).'/../LanguageConverter.php' );
1110 require_once( dirname(__FILE__).'/LanguageKk_cyrl.php' );
12 -
Index: trunk/phase3/languages/classes/LanguageAr.php
@@ -24,6 +24,4 @@
2525 }
2626 return $forms[$index];
2727 }
28 -
2928 }
30 -
Index: trunk/phase3/languages/classes/LanguageEo.php
@@ -69,5 +69,3 @@
7070 $wgEditEncoding = 'x';
7171 }
7272 }
73 -
74 -
Index: trunk/phase3/languages/classes/LanguageKk.php
@@ -17,7 +17,7 @@
1818 //define( 'ZWNJ', '‌' ); # U+200C ZERO WIDTH NON-JOINER
1919
2020 class KkConverter extends LanguageConverter {
21 -
 21+
2222 function __construct($langobj, $maincode,
2323 $variants=array(),
2424 $variantfallbacks=array(),
@@ -25,7 +25,7 @@
2626 $flags = array()) {
2727 parent::__construct( $langobj, $maincode,
2828 $variants, $variantfallbacks, $markup, $flags );
29 -
 29+
3030 // No point delaying this since they're in code.
3131 // Waiting until loadDefaultTables() means they never get loaded
3232 // when the tables themselves are loaded from cache.
@@ -60,7 +60,7 @@
6161 $this->mTables['kk-cn']->merge( $this->mTables['kk-arab'] );
6262 }
6363
64 - function loadRegs() {
 64+ function loadRegs() {
6565
6666 $this->mCyrl2Latn = array(
6767 ## Punctuation
@@ -73,8 +73,8 @@
7474 '/^Ю(['.KK_C_UC.']|$)/u' => 'YU$1', '/^Ю(['.KK_C_LC.']|$)/u' => 'Yu$1',
7575 '/^Я(['.KK_C_UC.']|$)/u' => 'YA$1', '/^Я(['.KK_C_LC.']|$)/u' => 'Ya$1',
7676 '/^Щ(['.KK_C_UC.']|$)/u' => 'ŞÇ$1', '/^Щ(['.KK_C_LC.']|$)/u' => 'Şç$1',
77 - ## other ЁЮЯ
78 - '/Ё/u' => 'YO', '/ё/u' => 'yo',
 77+ ## other ЁЮЯ
 78+ '/Ё/u' => 'YO', '/ё/u' => 'yo',
7979 '/Ю/u' => 'YU', '/ю/u' => 'yu',
8080 '/Я/u' => 'YA', '/я/u' => 'ya',
8181 '/Щ/u' => 'ŞÇ', '/щ/u' => 'şç',
@@ -163,7 +163,7 @@
164164 '/Аллаһ/ui' => 'ﷲ',
165165 '/([АӘЕЁИОӨҰҮЭЮЯЪЬ])е/ui' => '$1يە',
166166 '/[еэ]/ui' => 'ە', '/[ъь]/ui' => '',
167 - '/[аә]/ui' => 'ا', '/[оө]/ui' => 'و', '/[ұү]/ui' => 'ۇ', '/[ыі]/ui' => 'ى',
 167+ '/[аә]/ui' => 'ا', '/[оө]/ui' => 'و', '/[ұү]/ui' => 'ۇ', '/[ыі]/ui' => 'ى',
168168 '/[и]/ui' => 'ىي', '/ё/ui' => 'يو', '/ю/ui' => 'يۋ', '/я/ui' => 'يا', '/[й]/ui' => 'ي',
169169 '/ц/ui' => 'تس', '/щ/ui' => 'شش',
170170 '/һ/ui' => 'ح', '/ч/ui' => 'تش',
@@ -179,7 +179,7 @@
180180 '/[eé]/ui' => 'ە', '/[yý]/ui' => 'ي', '/[ʺʹ]/ui' => '',
181181 '/[aä]/ui' => 'ا', '/[oö]/ui' => 'و', '/[uü]/ui' => 'ۇ',
182182 '/[ï]/ui' => 'ىي', '/[ıIiİ]/u' => 'ى',
183 - '/c/ui' => 'تس',
 183+ '/c/ui' => 'تس',
184184 '/ç/ui' => 'تش', '/h/ui' => 'ح',
185185 #'/ç/ui' => 'چ', '/h/ui' => 'ھ',
186186 '/b/ui' => 'ب','/d/ui' => 'د',
@@ -189,7 +189,6 @@
190190 '/r/ui' => 'ر', '/s/ui' => 'س', '/ş/ui' => 'ش', '/t/ui' => 'ت',
191191 '/v/ui' => 'ۆ', '/w/ui' => 'ۋ', '/x/ui' => 'ح', '/z/ui' => 'ز',*/
192192 );
193 -
194193 }
195194
196195 /* rules should be defined as -{ekavian | iyekavian-} -or-
@@ -206,7 +205,7 @@
207206 foreach($this->mVariants as $v) {
208207 $carray[$v] = $rule;
209208 }
210 -
 209+
211210 return $carray;
212211 }
213212
@@ -214,7 +213,7 @@
215214 function parserConvert( $text, &$parser ){
216215 if(is_object($parser->getTitle() ) && $parser->getTitle()->isTalkPage())
217216 $this->mDoContentConvert=false;
218 - else
 217+ else
219218 $this->mDoContentConvert=true;
220219
221220 return parent::parserConvert($text, $parser );
@@ -222,7 +221,7 @@
223222
224223 /*
225224 * A function wrapper:
226 - * - if there is no selected variant, leave the link
 225+ * - if there is no selected variant, leave the link
227226 * names as they were
228227 * - do not try to find variants for usernames
229228 */
@@ -246,7 +245,7 @@
247246 */
248247 function autoConvert($text, $toVariant=false) {
249248 global $wgTitle;
250 - if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){
 249+ if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){
251250 $imagename = $wgTitle->getNsText();
252251 if(preg_match("/^$imagename:/",$text)) return $text;
253252 }
@@ -393,7 +392,7 @@
394393 *
395394 * @return bool
396395 */
397 - function isRTL() {
 396+ function isRTL() {
398397 $variant = $this->getPreferredVariant();
399398 if ( $variant == 'kk-arab' || $variant == 'kk-cn' ) {
400399 return true;
@@ -404,7 +403,7 @@
405404
406405 /*
407406 * It fixes issue with ucfirst for transforming 'i' to 'İ'
408 - *
 407+ *
409408 */
410409 function ucfirst ( $string ) {
411410 $variant = $this->getPreferredVariant();
@@ -418,7 +417,7 @@
419418
420419 /*
421420 * It fixes issue with lcfirst for transforming 'I' to 'ı'
422 - *
 421+ *
423422 */
424423 function lcfirst ( $string ) {
425424 $variant = $this->getPreferredVariant();
@@ -453,5 +452,4 @@
454453 wfProfileOut( __METHOD__ );
455454 return $word;
456455 }
457 -
458456 }
Index: trunk/phase3/languages/classes/LanguageCs.php
@@ -90,5 +90,4 @@
9191 default: return $forms[2];
9292 }
9393 }
94 -
9594 }
Index: trunk/phase3/languages/classes/LanguagePt_br.php
@@ -16,4 +16,3 @@
1717 return ($count <= 1) ? $forms[0] : $forms[1];
1818 }
1919 }
20 -
Index: trunk/phase3/languages/classes/LanguageWa.php
@@ -27,13 +27,13 @@
2828 $d = substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2);
2929 return $d;
3030 }
31 -
 31+
3232 # dd/mm/YYYY format
3333 if ( $datePreference == 'walloon short' ) {
3434 $d = substr($ts, 6, 2). '/' . substr($ts, 4, 2). '/' .substr($ts, 0, 4);
3535 return $d;
3636 }
37 -
 37+
3838 # Walloon format
3939 #
4040 # we output this in all other cases
@@ -61,10 +61,8 @@
6262 if ( $datePreference == 'ISO 8601' ) {
6363 return parent::timeanddate( $ts, $adj, $format, $tc );
6464 } else {
65 - return $this->date( $ts, $adj, $format, $tc ) . ' a ' .
 65+ return $this->date( $ts, $adj, $format, $tc ) . ' a ' .
6666 $this->time( $ts, $adj, $format, $tc );
6767 }
6868 }
6969 }
70 -
71 -
Index: trunk/phase3/languages/classes/LanguageCu.php
@@ -47,6 +47,4 @@
4848 default: return $forms[3];
4949 }
5050 }
51 -
5251 }
53 -
Index: trunk/phase3/languages/classes/LanguageEt.php
@@ -17,4 +17,3 @@
1818 }
1919 }
2020 }
21 -
Index: trunk/phase3/languages/classes/LanguageDsb.php
@@ -96,7 +96,7 @@
9797 }
9898 break;
9999 }
100 -
 100+
101101 return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values
102102 }
103103
Index: trunk/phase3/languages/classes/LanguageKo.php
@@ -53,5 +53,3 @@
5454 }
5555 }
5656 }
57 -
58 -
Index: trunk/phase3/languages/classes/LanguageKu.deps.php
@@ -5,8 +5,5 @@
66 // changed on a subsequent page view.
77 // see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html
88
9 -
109 require_once( dirname(__FILE__).'/../LanguageConverter.php' );
1110 require_once( dirname(__FILE__).'/LanguageKu_ku.php' );
12 -
13 -
Index: trunk/phase3/languages/classes/LanguageAz.php
@@ -11,6 +11,4 @@
1212 return parent::ucfirst( $string );
1313 }
1414 }
15 -
1615 }
17 -

Status & tagging log