r72562 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72561‎ | r72562 | r72563 >
Date:22:39, 7 September 2010
Author:platonides
Status:ok
Tags:
Comment:
Follow-up r72561. Missed language folder.
Modified paths:
  • /trunk/phase3/languages/classes/LanguageKk.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageKk.php
@@ -245,7 +245,7 @@
246246 * It translates text into variant
247247 */
248248 function translate( $text, $toVariant ) {
249 - global $wgContLanguageCode;
 249+ global $wgLanguageCode;
250250 $text = parent::translate( $text, $toVariant );
251251
252252 $letters = '';
@@ -253,20 +253,20 @@
254254 case 'kk-cyrl':
255255 case 'kk-kz':
256256 $letters = KK_L_UC . KK_L_LC . 'ʺʹ#0123456789';
257 - $wgContLanguageCode = 'kk';
 257+ $wgLanguageCode = 'kk';
258258 break;
259259 case 'kk-latn':
260260 case 'kk-tr':
261261 $letters = KK_C_UC . KK_C_LC . '№0123456789';
262 - $wgContLanguageCode = 'kk-Latn';
 262+ $wgLanguageCode = 'kk-Latn';
263263 break;
264264 case 'kk-arab':
265265 case 'kk-cn':
266266 $letters = KK_C_UC . KK_C_LC . /*KK_L_UC.KK_L_LC.'ʺʹ'.*/',;\?%\*№0123456789';
267 - $wgContLanguageCode = 'kk-Arab';
 267+ $wgLanguageCode = 'kk-Arab';
268268 break;
269269 default:
270 - $wgContLanguageCode = 'kk';
 270+ $wgLanguageCode = 'kk';
271271 return $text;
272272 }
273273 // disable conversion variables like $1, $2...

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72561Remove $wgContLanguageCode usage in core....platonides22:37, 7 September 2010

Status & tagging log