Index: trunk/phase3/languages/classes/LanguageHsb.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | } |
98 | 98 | break; |
99 | 99 | } |
100 | | - |
| 100 | + |
101 | 101 | return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values |
102 | 102 | } |
103 | 103 | |
Index: trunk/phase3/languages/classes/LanguageSk.php |
— | — | @@ -89,6 +89,4 @@ |
90 | 90 | } |
91 | 91 | return $forms[$index]; |
92 | 92 | } |
93 | | - |
94 | 93 | } |
95 | | - |
Index: trunk/phase3/languages/classes/LanguageSl.php |
— | — | @@ -88,7 +88,4 @@ |
89 | 89 | } |
90 | 90 | return $forms[$index]; |
91 | 91 | } |
92 | | - |
93 | | - |
94 | 92 | } |
95 | | - |
Index: trunk/phase3/languages/classes/LanguageKu_ku.php |
— | — | @@ -1,11 +1,9 @@ |
2 | 2 | <?php |
3 | 3 | /** Kurdish |
4 | | - * |
5 | | - * |
6 | | - * @addtogroup Language |
7 | | - */ |
| 4 | + * |
| 5 | + * @addtogroup Language |
| 6 | + */ |
8 | 7 | |
9 | | - |
10 | 8 | class LanguageKu_ku extends Language { |
11 | 9 | |
12 | 10 | /** # Convert from the nominative form of a noun to some other case |
— | — | @@ -31,5 +29,3 @@ |
32 | 30 | } |
33 | 31 | } |
34 | 32 | } |
35 | | - |
36 | | - |
Index: trunk/phase3/languages/classes/LanguageUk.php |
— | — | @@ -86,4 +86,3 @@ |
87 | 87 | } |
88 | 88 | } |
89 | 89 | } |
90 | | - |
Index: trunk/phase3/languages/classes/LanguageKu.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | 'ب' => 'b', 'ج' => 'c', 'چ' => 'ç', 'د' => 'd', 'ف' => 'f', 'گ' => 'g', 'ھ' => 'h', |
15 | 15 | 'ہ' => 'h', 'ه' => 'h', 'ح' => 'h', 'ژ' => 'j', 'ك' => 'k', 'ک' => 'k', 'ل' => 'l', |
16 | 16 | 'م' => 'm', 'ن' => 'n', 'پ' => 'p', 'ق' => 'q', 'ر' => 'r', 'س' => 's', 'ش' => 'ş', |
17 | | - 'ت' => 't', 'ڤ' => 'v', 'خ' => 'x', 'غ' => 'x', 'ز' => 'z', |
| 17 | + 'ت' => 't', 'ڤ' => 'v', 'خ' => 'x', 'غ' => 'x', 'ز' => 'z', |
18 | 18 | |
19 | 19 | // ک و => ku -- ist richtig |
20 | 20 | // و ك=> ku -- ist auch richtig |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | 'ۆ' => 'o', |
36 | 36 | 'و' => 'w', |
37 | 37 | 'ئ' => '', # initial hemze should not be shown |
38 | | - '،' => ',', |
| 38 | + '،' => ',', |
39 | 39 | 'ع' => '\'', # ayn |
40 | 40 | '؟' => '?', |
41 | 41 | |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | 'u' => 'و', |
84 | 84 | 'û' => 'وو', |
85 | 85 | 'w' => 'و', |
86 | | - ',' => '،', |
| 86 | + ',' => '،', |
87 | 87 | '?' => '؟', |
88 | 88 | |
89 | 89 | # Try to replace the leading vowel |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | ' U' => 'ئو ', |
110 | 110 | ' Û' => 'ئوو ', |
111 | 111 | # eyn erstmal deaktivieren, einfache Anführungsstriche sind einfach zu häufig, um sie als eyn zu interpretieren |
112 | | - # '\'' => 'ع', |
| 112 | + # '\'' => 'ع', |
113 | 113 | |
114 | 114 | /* # deactivated for now, breaks links i.e. in header of Special:Recentchanges :-( |
115 | 115 | # digits |
— | — | @@ -133,12 +133,11 @@ |
134 | 134 | ); |
135 | 135 | } |
136 | 136 | |
137 | | - |
138 | 137 | // Do not convert content on talk pages |
139 | 138 | function parserConvert( $text, &$parser ){ |
140 | 139 | if(is_object($parser->getTitle() ) && $parser->getTitle()->isTalkPage()) |
141 | 140 | $this->mDoContentConvert=false; |
142 | | - else |
| 141 | + else |
143 | 142 | $this->mDoContentConvert=true; |
144 | 143 | |
145 | 144 | return parent::parserConvert($text, $parser ); |
— | — | @@ -146,7 +145,7 @@ |
147 | 146 | |
148 | 147 | /* |
149 | 148 | * A function wrapper: |
150 | | - * - if there is no selected variant, leave the link |
| 149 | + * - if there is no selected variant, leave the link |
151 | 150 | * names as they were |
152 | 151 | * - do not try to find variants for usernames |
153 | 152 | */ |
— | — | @@ -180,7 +179,7 @@ |
181 | 180 | */ |
182 | 181 | function autoConvert($text, $toVariant=false) { |
183 | 182 | global $wgTitle; |
184 | | - if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){ |
| 183 | + if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){ |
185 | 184 | $imagename = $wgTitle->getNsText(); |
186 | 185 | if(preg_match("/^$imagename:/",$text)) return $text; |
187 | 186 | } |
Index: trunk/phase3/languages/classes/LanguageSr.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | foreach($this->mVariants as $v) { |
75 | 75 | $carray[$v] = $rule; |
76 | 76 | } |
77 | | - |
| 77 | + |
78 | 78 | return $carray; |
79 | 79 | } |
80 | 80 | |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | function parserConvert( $text, &$parser ){ |
83 | 83 | if(is_object($parser->getTitle() ) && $parser->getTitle()->isTalkPage()) |
84 | 84 | $this->mDoContentConvert=false; |
85 | | - else |
| 85 | + else |
86 | 86 | $this->mDoContentConvert=true; |
87 | 87 | |
88 | 88 | return parent::parserConvert($text, $parser ); |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | |
91 | 91 | /* |
92 | 92 | * A function wrapper: |
93 | | - * - if there is no selected variant, leave the link |
| 93 | + * - if there is no selected variant, leave the link |
94 | 94 | * names as they were |
95 | 95 | * - do not try to find variants for usernames |
96 | 96 | */ |
— | — | @@ -123,12 +123,12 @@ |
124 | 124 | */ |
125 | 125 | function autoConvert($text, $toVariant=false) { |
126 | 126 | global $wgTitle; |
127 | | - if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){ |
| 127 | + if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){ |
128 | 128 | $imagename = $wgTitle->getNsText(); |
129 | 129 | if(preg_match("/^$imagename:/",$text)) return $text; |
130 | 130 | } |
131 | 131 | return parent::autoConvert($text,$toVariant); |
132 | | - } |
| 132 | + } |
133 | 133 | |
134 | 134 | /** |
135 | 135 | * It translates text into variant, specials: |
— | — | @@ -143,7 +143,7 @@ |
144 | 144 | $reg = '/^'.$roman.'$|^'.$roman.$breaks.'|'.$breaks.$roman.'$|'.$breaks.$roman.$breaks.'/'; |
145 | 145 | |
146 | 146 | $matches = preg_split($reg, $text, -1, PREG_SPLIT_OFFSET_CAPTURE); |
147 | | - |
| 147 | + |
148 | 148 | $m = array_shift($matches); |
149 | 149 | if( !isset( $this->mTables[$toVariant] ) ) { |
150 | 150 | throw new MWException( "Broken variant table: " . implode( ',', array_keys( $this->mTables ) ) ); |
— | — | @@ -158,7 +158,6 @@ |
159 | 159 | |
160 | 160 | return $ret; |
161 | 161 | } |
162 | | - |
163 | 162 | } |
164 | 163 | |
165 | 164 | class LanguageSr extends LanguageSr_ec { |
— | — | @@ -172,9 +171,8 @@ |
173 | 172 | 'sr' => 'sr-ec', |
174 | 173 | 'sr-ec' => 'sr', |
175 | 174 | 'sr-el' => 'sr', |
176 | | - ); |
| 175 | + ); |
177 | 176 | |
178 | | - |
179 | 177 | $marker = array();//don't mess with these, leave them as they are |
180 | 178 | $flags = array( |
181 | 179 | 'S' => 'S', 'писмо' => 'S', 'pismo' => 'S', |
— | — | @@ -184,4 +182,3 @@ |
185 | 183 | $wgHooks['ArticleSaveComplete'][] = $this->mConverter; |
186 | 184 | } |
187 | 185 | } |
188 | | - |
Index: trunk/phase3/languages/classes/LanguageKsh.php |
— | — | @@ -34,4 +34,3 @@ |
35 | 35 | } |
36 | 36 | } |
37 | 37 | } |
38 | | - |
Index: trunk/phase3/languages/classes/LanguageBe.php |
— | — | @@ -88,7 +88,4 @@ |
89 | 89 | |
90 | 90 | return $word; # this will return the original value for 'назоўны' (nominative) and all undefined case values |
91 | 91 | } |
92 | | - |
93 | 92 | } |
94 | | - |
95 | | - |
Index: trunk/phase3/languages/classes/LanguageBg.php |
— | — | @@ -20,4 +20,3 @@ |
21 | 21 | } |
22 | 22 | } |
23 | 23 | } |
24 | | - |
Index: trunk/phase3/languages/classes/LanguageJa.php |
— | — | @@ -37,5 +37,3 @@ |
38 | 38 | return $text; |
39 | 39 | } |
40 | 40 | } |
41 | | - |
42 | | - |
Index: trunk/phase3/languages/classes/LanguageBe_tarask.php |
— | — | @@ -97,7 +97,4 @@ |
98 | 98 | |
99 | 99 | return $word; # this will return the original value for 'назоўны' (nominative) and all undefined case values |
100 | 100 | } |
101 | | - |
102 | 101 | } |
103 | | - |
104 | | - |
Index: trunk/phase3/languages/classes/LanguageSr_ec.php |
— | — | @@ -24,6 +24,4 @@ |
25 | 25 | } |
26 | 26 | } |
27 | 27 | } |
28 | | - |
29 | 28 | } |
30 | | - |
Index: trunk/phase3/languages/classes/LanguageHe.php |
— | — | @@ -70,5 +70,3 @@ |
71 | 71 | } |
72 | 72 | } |
73 | 73 | } |
74 | | - |
75 | | - |
Index: trunk/phase3/languages/classes/LanguageLa.php |
— | — | @@ -75,8 +75,4 @@ |
76 | 76 | return $word; |
77 | 77 | } |
78 | 78 | } |
79 | | - |
80 | 79 | } |
81 | | - |
82 | | - |
83 | | - |
Index: trunk/phase3/languages/classes/LanguageKk_cyrl.php |
— | — | @@ -1,11 +1,9 @@ |
2 | 2 | <?php |
3 | 3 | /** Kazakh (Қазақша) |
4 | | - * |
5 | | - * |
6 | | - * @addtogroup Language |
7 | | - */ |
| 4 | + * |
| 5 | + * @addtogroup Language |
| 6 | + */ |
8 | 7 | |
9 | | - |
10 | 8 | class LanguageKk_cyrl extends Language { |
11 | 9 | |
12 | 10 | # Convert from the nominative form of a noun to some other case |
— | — | @@ -153,7 +151,7 @@ |
154 | 152 | } elseif ( in_array( $wordLastVowel, $backVowels ) ) { |
155 | 153 | $word = $word . "да"; |
156 | 154 | } |
157 | | - } |
| 155 | + } |
158 | 156 | break; |
159 | 157 | case "dc41": |
160 | 158 | case "possessive locative": #täweldık + jatıs |
— | — | @@ -169,7 +167,7 @@ |
170 | 168 | } elseif ( in_array( $wordLastVowel, $backVowels ) ) { |
171 | 169 | $word = $word . "нда"; |
172 | 170 | } |
173 | | - } |
| 171 | + } |
174 | 172 | break; |
175 | 173 | case "dc5": |
176 | 174 | case "ablative": #şığıs |
— | — | @@ -373,7 +371,7 @@ |
374 | 372 | } elseif ( in_array( $wordLastVowel, $backVowels ) ) { |
375 | 373 | $word = $word . "da"; |
376 | 374 | } |
377 | | - } |
| 375 | + } |
378 | 376 | break; |
379 | 377 | case "dc41": |
380 | 378 | case "possessive locative": #täweldık + jatıs |
— | — | @@ -389,7 +387,7 @@ |
390 | 388 | } elseif ( in_array( $wordLastVowel, $backVowels ) ) { |
391 | 389 | $word = $word . "nda"; |
392 | 390 | } |
393 | | - } |
| 391 | + } |
394 | 392 | break; |
395 | 393 | case "dc5": |
396 | 394 | case "ablative": #şığıs |
— | — | @@ -593,7 +591,7 @@ |
594 | 592 | } elseif ( in_array( $wordLastVowel, $backVowels ) ) { |
595 | 593 | $word = $word . "دا"; |
596 | 594 | } |
597 | | - } |
| 595 | + } |
598 | 596 | break; |
599 | 597 | case "dc41": |
600 | 598 | case "possessive locative": #täweldık + jatıs |
— | — | @@ -609,7 +607,7 @@ |
610 | 608 | } elseif ( in_array( $wordLastVowel, $backVowels ) ) { |
611 | 609 | $word = $word . "ندا"; |
612 | 610 | } |
613 | | - } |
| 611 | + } |
614 | 612 | break; |
615 | 613 | case "dc5": |
616 | 614 | case "ablative": #şığıs |
— | — | @@ -681,7 +679,7 @@ |
682 | 680 | // Put the word in a form we can play with since we're using UTF-8 |
683 | 681 | $ar = preg_split('//u', parent::lc($word), -1, PREG_SPLIT_NO_EMPTY); |
684 | 682 | |
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 |
686 | 684 | // so we can find a match quicker *shrug* |
687 | 685 | $wordReversed = array_reverse( $ar ); |
688 | 686 | |
Index: trunk/phase3/languages/classes/LanguageFi.php |
— | — | @@ -131,7 +131,4 @@ |
132 | 132 | |
133 | 133 | return htmlspecialchars( trim( $final ) ); |
134 | 134 | } |
135 | | - |
136 | 135 | } |
137 | | - |
138 | | - |
Index: trunk/phase3/languages/classes/LanguageGsw.php |
— | — | @@ -59,10 +59,7 @@ |
60 | 60 | $word = 'd Wikiquälle'; |
61 | 61 | } |
62 | 62 | break; |
63 | | - } |
| 63 | + } |
64 | 64 | return $word; |
65 | 65 | } |
66 | | - |
67 | 66 | } |
68 | | - |
69 | | - |
Index: trunk/phase3/languages/classes/LanguageSr_el.php |
— | — | @@ -24,6 +24,4 @@ |
25 | 25 | } |
26 | 26 | } |
27 | 27 | } |
28 | | - |
29 | 28 | } |
30 | | - |
Index: trunk/phase3/languages/classes/LanguageBs.php |
— | — | @@ -132,7 +132,4 @@ |
133 | 133 | |
134 | 134 | return $word; # this will return the original value for 'nominativ' (nominative) and all undefined case values |
135 | 135 | } |
136 | | - |
137 | 136 | } |
138 | | - |
139 | | - |
Index: trunk/phase3/languages/classes/LanguageRmy.php |
— | — | @@ -68,5 +68,3 @@ |
69 | 69 | return $word; # this will return the original value for 'nominative' and all undefined case values |
70 | 70 | } |
71 | 71 | } |
72 | | - |
73 | | - |
Index: trunk/phase3/languages/classes/LanguageFr.php |
— | — | @@ -15,6 +15,4 @@ |
16 | 16 | |
17 | 17 | return ($count <= 1) ? $forms[0] : $forms[1]; |
18 | 18 | } |
19 | | - |
20 | 19 | } |
21 | | - |
Index: trunk/phase3/languages/classes/LanguageHr.php |
— | — | @@ -22,7 +22,4 @@ |
23 | 23 | } |
24 | 24 | } |
25 | 25 | } |
26 | | - |
27 | 26 | } |
28 | | - |
29 | | - |
Index: trunk/phase3/languages/classes/LanguageTg.php |
— | — | @@ -5,7 +5,6 @@ |
6 | 6 | |
7 | 7 | require_once( dirname(__FILE__).'/../LanguageConverter.php' ); |
8 | 8 | |
9 | | - |
10 | 9 | /** |
11 | 10 | * Converts Tajiki to latin orthography |
12 | 11 | */ |
— | — | @@ -102,4 +101,3 @@ |
103 | 102 | $this->mConverter = new TgConverter( $this, 'tg', $variants ); |
104 | 103 | } |
105 | 104 | } |
106 | | - |
Index: trunk/phase3/languages/classes/LanguagePl.php |
— | — | @@ -21,4 +21,4 @@ |
22 | 22 | return $forms[2]; // plural genitive |
23 | 23 | } |
24 | 24 | } |
25 | | -} |
\ No newline at end of file |
| 25 | +} |
Index: trunk/phase3/languages/classes/LanguageBat_smg.php |
— | — | @@ -22,5 +22,4 @@ |
23 | 23 | return $forms[3]; |
24 | 24 | } |
25 | 25 | } |
26 | | - |
27 | | -} |
\ No newline at end of file |
| 26 | +} |
Index: trunk/phase3/languages/classes/LanguageSr.deps.php |
— | — | @@ -7,4 +7,3 @@ |
8 | 8 | |
9 | 9 | require_once( dirname(__FILE__).'/LanguageSr_ec.php' ); |
10 | 10 | require_once( dirname(__FILE__).'/../LanguageConverter.php' ); |
11 | | - |
Index: trunk/phase3/languages/classes/LanguageLt.php |
— | — | @@ -24,4 +24,3 @@ |
25 | 25 | return $forms[2]; |
26 | 26 | } |
27 | 27 | } |
28 | | - |
Index: trunk/phase3/languages/classes/LanguageHy.php |
— | — | @@ -68,4 +68,3 @@ |
69 | 69 | } |
70 | 70 | } |
71 | 71 | } |
72 | | - |
Index: trunk/phase3/languages/classes/LanguageLv.php |
— | — | @@ -45,15 +45,13 @@ |
46 | 46 | $wgGrammarForms['lv']['akuzatīvs']['Vikivārdnīca'] = 'Vikivārdnīcu'; |
47 | 47 | $wgGrammarForms['lv']['lokatīvs' ]['Vikipēdija'] = 'Vikipēdijā'; |
48 | 48 | $wgGrammarForms['lv']['lokatīvs' ]['Vikivārdnīca'] = 'Vikivārdnīcā'; |
49 | | - |
| 49 | + |
50 | 50 | if ( isset($wgGrammarForms['lv'][$case][$word]) ) { |
51 | 51 | return $wgGrammarForms['lv'][$case][$word]; |
52 | 52 | } |
53 | 53 | |
54 | 54 | return $word; |
55 | | - |
56 | 55 | } |
57 | | - |
58 | 56 | } |
59 | 57 | |
60 | 58 | |
Index: trunk/phase3/languages/classes/LanguageZh.php |
— | — | @@ -39,7 +39,6 @@ |
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
43 | | - |
44 | 43 | /* class that handles both Traditional and Simplified Chinese |
45 | 44 | right now it only distinguish zh_hans, zh_hant, zh_cn, zh_tw, zh_sg and zh_hk. |
46 | 45 | */ |
— | — | @@ -65,7 +64,6 @@ |
66 | 65 | $wgHooks['ArticleSaveComplete'][] = $this->mConverter; |
67 | 66 | } |
68 | 67 | |
69 | | - |
70 | 68 | # this should give much better diff info |
71 | 69 | function segmentForDiff( $text ) { |
72 | 70 | return preg_replace( |
— | — | @@ -108,5 +106,4 @@ |
109 | 107 | $ret = array_unique( explode('|', $terms) ); |
110 | 108 | return $ret; |
111 | 109 | } |
112 | | - |
113 | 110 | } |
Index: trunk/phase3/languages/classes/LanguageTyv.php |
— | — | @@ -24,7 +24,6 @@ |
25 | 25 | return $wgGrammarForms['tyv'][$case][$word]; |
26 | 26 | } |
27 | 27 | |
28 | | - |
29 | 28 | // Set up some constants... |
30 | 29 | $allVowels = array("е", "и", "э", "ө", "ү", "а", "ё", "о", "у", "ы", "ю", "я", "a", "e", "i", "o", "ö", "u", "ü", "y"); |
31 | 30 | $frontVowels = array("е", "и", "э", "ө", "ү", "e", "i", "ö", "ü"); |
— | — | @@ -229,4 +228,3 @@ |
230 | 229 | return $word; |
231 | 230 | } |
232 | 231 | } |
233 | | - |
Index: trunk/phase3/languages/classes/LanguageTr.php |
— | — | @@ -12,6 +12,4 @@ |
13 | 13 | return parent::ucfirst( $string ); |
14 | 14 | } |
15 | 15 | } |
16 | | - |
17 | 16 | } |
18 | | - |
Index: trunk/phase3/languages/classes/LanguageRu.php |
— | — | @@ -104,5 +104,3 @@ |
105 | 105 | } |
106 | 106 | } |
107 | 107 | } |
108 | | - |
109 | | - |
Index: trunk/phase3/languages/classes/LanguageGa.php |
— | — | @@ -45,7 +45,4 @@ |
46 | 46 | } |
47 | 47 | return $word; |
48 | 48 | } |
49 | | - |
50 | 49 | } |
51 | | - |
52 | | - |
Index: trunk/phase3/languages/classes/LanguageSr_el.deps.php |
— | — | @@ -6,4 +6,3 @@ |
7 | 7 | // see http://mail.wikipedia.org/pipermail/wikitech-l/2006-January/033660.html |
8 | 8 | |
9 | 9 | require_once( dirname(__FILE__).'/LanguageSr_ec.php' ); |
10 | | - |
Index: trunk/phase3/languages/classes/LanguageKk.deps.php |
— | — | @@ -5,7 +5,5 @@ |
6 | 6 | // changed on a subsequent page view. |
7 | 7 | // see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html |
8 | 8 | |
9 | | - |
10 | 9 | require_once( dirname(__FILE__).'/../LanguageConverter.php' ); |
11 | 10 | require_once( dirname(__FILE__).'/LanguageKk_cyrl.php' ); |
12 | | - |
Index: trunk/phase3/languages/classes/LanguageAr.php |
— | — | @@ -24,6 +24,4 @@ |
25 | 25 | } |
26 | 26 | return $forms[$index]; |
27 | 27 | } |
28 | | - |
29 | 28 | } |
30 | | - |
Index: trunk/phase3/languages/classes/LanguageEo.php |
— | — | @@ -69,5 +69,3 @@ |
70 | 70 | $wgEditEncoding = 'x'; |
71 | 71 | } |
72 | 72 | } |
73 | | - |
74 | | - |
Index: trunk/phase3/languages/classes/LanguageKk.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | //define( 'ZWNJ', '' ); # U+200C ZERO WIDTH NON-JOINER |
19 | 19 | |
20 | 20 | class KkConverter extends LanguageConverter { |
21 | | - |
| 21 | + |
22 | 22 | function __construct($langobj, $maincode, |
23 | 23 | $variants=array(), |
24 | 24 | $variantfallbacks=array(), |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | $flags = array()) { |
27 | 27 | parent::__construct( $langobj, $maincode, |
28 | 28 | $variants, $variantfallbacks, $markup, $flags ); |
29 | | - |
| 29 | + |
30 | 30 | // No point delaying this since they're in code. |
31 | 31 | // Waiting until loadDefaultTables() means they never get loaded |
32 | 32 | // when the tables themselves are loaded from cache. |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | $this->mTables['kk-cn']->merge( $this->mTables['kk-arab'] ); |
62 | 62 | } |
63 | 63 | |
64 | | - function loadRegs() { |
| 64 | + function loadRegs() { |
65 | 65 | |
66 | 66 | $this->mCyrl2Latn = array( |
67 | 67 | ## Punctuation |
— | — | @@ -73,8 +73,8 @@ |
74 | 74 | '/^Ю(['.KK_C_UC.']|$)/u' => 'YU$1', '/^Ю(['.KK_C_LC.']|$)/u' => 'Yu$1', |
75 | 75 | '/^Я(['.KK_C_UC.']|$)/u' => 'YA$1', '/^Я(['.KK_C_LC.']|$)/u' => 'Ya$1', |
76 | 76 | '/^Щ(['.KK_C_UC.']|$)/u' => 'ŞÇ$1', '/^Щ(['.KK_C_LC.']|$)/u' => 'Şç$1', |
77 | | - ## other ЁЮЯ |
78 | | - '/Ё/u' => 'YO', '/ё/u' => 'yo', |
| 77 | + ## other ЁЮЯ |
| 78 | + '/Ё/u' => 'YO', '/ё/u' => 'yo', |
79 | 79 | '/Ю/u' => 'YU', '/ю/u' => 'yu', |
80 | 80 | '/Я/u' => 'YA', '/я/u' => 'ya', |
81 | 81 | '/Щ/u' => 'ŞÇ', '/щ/u' => 'şç', |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | '/Аллаһ/ui' => 'ﷲ', |
165 | 165 | '/([АӘЕЁИОӨҰҮЭЮЯЪЬ])е/ui' => '$1يە', |
166 | 166 | '/[еэ]/ui' => 'ە', '/[ъь]/ui' => '', |
167 | | - '/[аә]/ui' => 'ا', '/[оө]/ui' => 'و', '/[ұү]/ui' => 'ۇ', '/[ыі]/ui' => 'ى', |
| 167 | + '/[аә]/ui' => 'ا', '/[оө]/ui' => 'و', '/[ұү]/ui' => 'ۇ', '/[ыі]/ui' => 'ى', |
168 | 168 | '/[и]/ui' => 'ىي', '/ё/ui' => 'يو', '/ю/ui' => 'يۋ', '/я/ui' => 'يا', '/[й]/ui' => 'ي', |
169 | 169 | '/ц/ui' => 'تس', '/щ/ui' => 'شش', |
170 | 170 | '/һ/ui' => 'ح', '/ч/ui' => 'تش', |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | '/[eé]/ui' => 'ە', '/[yý]/ui' => 'ي', '/[ʺʹ]/ui' => '', |
181 | 181 | '/[aä]/ui' => 'ا', '/[oö]/ui' => 'و', '/[uü]/ui' => 'ۇ', |
182 | 182 | '/[ï]/ui' => 'ىي', '/[ıIiİ]/u' => 'ى', |
183 | | - '/c/ui' => 'تس', |
| 183 | + '/c/ui' => 'تس', |
184 | 184 | '/ç/ui' => 'تش', '/h/ui' => 'ح', |
185 | 185 | #'/ç/ui' => 'چ', '/h/ui' => 'ھ', |
186 | 186 | '/b/ui' => 'ب','/d/ui' => 'د', |
— | — | @@ -189,7 +189,6 @@ |
190 | 190 | '/r/ui' => 'ر', '/s/ui' => 'س', '/ş/ui' => 'ش', '/t/ui' => 'ت', |
191 | 191 | '/v/ui' => 'ۆ', '/w/ui' => 'ۋ', '/x/ui' => 'ح', '/z/ui' => 'ز',*/ |
192 | 192 | ); |
193 | | - |
194 | 193 | } |
195 | 194 | |
196 | 195 | /* rules should be defined as -{ekavian | iyekavian-} -or- |
— | — | @@ -206,7 +205,7 @@ |
207 | 206 | foreach($this->mVariants as $v) { |
208 | 207 | $carray[$v] = $rule; |
209 | 208 | } |
210 | | - |
| 209 | + |
211 | 210 | return $carray; |
212 | 211 | } |
213 | 212 | |
— | — | @@ -214,7 +213,7 @@ |
215 | 214 | function parserConvert( $text, &$parser ){ |
216 | 215 | if(is_object($parser->getTitle() ) && $parser->getTitle()->isTalkPage()) |
217 | 216 | $this->mDoContentConvert=false; |
218 | | - else |
| 217 | + else |
219 | 218 | $this->mDoContentConvert=true; |
220 | 219 | |
221 | 220 | return parent::parserConvert($text, $parser ); |
— | — | @@ -222,7 +221,7 @@ |
223 | 222 | |
224 | 223 | /* |
225 | 224 | * A function wrapper: |
226 | | - * - if there is no selected variant, leave the link |
| 225 | + * - if there is no selected variant, leave the link |
227 | 226 | * names as they were |
228 | 227 | * - do not try to find variants for usernames |
229 | 228 | */ |
— | — | @@ -246,7 +245,7 @@ |
247 | 246 | */ |
248 | 247 | function autoConvert($text, $toVariant=false) { |
249 | 248 | global $wgTitle; |
250 | | - if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){ |
| 249 | + if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){ |
251 | 250 | $imagename = $wgTitle->getNsText(); |
252 | 251 | if(preg_match("/^$imagename:/",$text)) return $text; |
253 | 252 | } |
— | — | @@ -393,7 +392,7 @@ |
394 | 393 | * |
395 | 394 | * @return bool |
396 | 395 | */ |
397 | | - function isRTL() { |
| 396 | + function isRTL() { |
398 | 397 | $variant = $this->getPreferredVariant(); |
399 | 398 | if ( $variant == 'kk-arab' || $variant == 'kk-cn' ) { |
400 | 399 | return true; |
— | — | @@ -404,7 +403,7 @@ |
405 | 404 | |
406 | 405 | /* |
407 | 406 | * It fixes issue with ucfirst for transforming 'i' to 'İ' |
408 | | - * |
| 407 | + * |
409 | 408 | */ |
410 | 409 | function ucfirst ( $string ) { |
411 | 410 | $variant = $this->getPreferredVariant(); |
— | — | @@ -418,7 +417,7 @@ |
419 | 418 | |
420 | 419 | /* |
421 | 420 | * It fixes issue with lcfirst for transforming 'I' to 'ı' |
422 | | - * |
| 421 | + * |
423 | 422 | */ |
424 | 423 | function lcfirst ( $string ) { |
425 | 424 | $variant = $this->getPreferredVariant(); |
— | — | @@ -453,5 +452,4 @@ |
454 | 453 | wfProfileOut( __METHOD__ ); |
455 | 454 | return $word; |
456 | 455 | } |
457 | | - |
458 | 456 | } |
Index: trunk/phase3/languages/classes/LanguageCs.php |
— | — | @@ -90,5 +90,4 @@ |
91 | 91 | default: return $forms[2]; |
92 | 92 | } |
93 | 93 | } |
94 | | - |
95 | 94 | } |
Index: trunk/phase3/languages/classes/LanguagePt_br.php |
— | — | @@ -16,4 +16,3 @@ |
17 | 17 | return ($count <= 1) ? $forms[0] : $forms[1]; |
18 | 18 | } |
19 | 19 | } |
20 | | - |
Index: trunk/phase3/languages/classes/LanguageWa.php |
— | — | @@ -27,13 +27,13 @@ |
28 | 28 | $d = substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2); |
29 | 29 | return $d; |
30 | 30 | } |
31 | | - |
| 31 | + |
32 | 32 | # dd/mm/YYYY format |
33 | 33 | if ( $datePreference == 'walloon short' ) { |
34 | 34 | $d = substr($ts, 6, 2). '/' . substr($ts, 4, 2). '/' .substr($ts, 0, 4); |
35 | 35 | return $d; |
36 | 36 | } |
37 | | - |
| 37 | + |
38 | 38 | # Walloon format |
39 | 39 | # |
40 | 40 | # we output this in all other cases |
— | — | @@ -61,10 +61,8 @@ |
62 | 62 | if ( $datePreference == 'ISO 8601' ) { |
63 | 63 | return parent::timeanddate( $ts, $adj, $format, $tc ); |
64 | 64 | } else { |
65 | | - return $this->date( $ts, $adj, $format, $tc ) . ' a ' . |
| 65 | + return $this->date( $ts, $adj, $format, $tc ) . ' a ' . |
66 | 66 | $this->time( $ts, $adj, $format, $tc ); |
67 | 67 | } |
68 | 68 | } |
69 | 69 | } |
70 | | - |
71 | | - |
Index: trunk/phase3/languages/classes/LanguageCu.php |
— | — | @@ -47,6 +47,4 @@ |
48 | 48 | default: return $forms[3]; |
49 | 49 | } |
50 | 50 | } |
51 | | - |
52 | 51 | } |
53 | | - |
Index: trunk/phase3/languages/classes/LanguageEt.php |
— | — | @@ -17,4 +17,3 @@ |
18 | 18 | } |
19 | 19 | } |
20 | 20 | } |
21 | | - |
Index: trunk/phase3/languages/classes/LanguageDsb.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | } |
98 | 98 | break; |
99 | 99 | } |
100 | | - |
| 100 | + |
101 | 101 | return $word; # this will return the original value for 'nominatiw' (nominativ) and all undefined case values |
102 | 102 | } |
103 | 103 | |
Index: trunk/phase3/languages/classes/LanguageKo.php |
— | — | @@ -53,5 +53,3 @@ |
54 | 54 | } |
55 | 55 | } |
56 | 56 | } |
57 | | - |
58 | | - |
Index: trunk/phase3/languages/classes/LanguageKu.deps.php |
— | — | @@ -5,8 +5,5 @@ |
6 | 6 | // changed on a subsequent page view. |
7 | 7 | // see http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html |
8 | 8 | |
9 | | - |
10 | 9 | require_once( dirname(__FILE__).'/../LanguageConverter.php' ); |
11 | 10 | require_once( dirname(__FILE__).'/LanguageKu_ku.php' ); |
12 | | - |
13 | | - |
Index: trunk/phase3/languages/classes/LanguageAz.php |
— | — | @@ -11,6 +11,4 @@ |
12 | 12 | return parent::ucfirst( $string ); |
13 | 13 | } |
14 | 14 | } |
15 | | - |
16 | 15 | } |
17 | | - |