r36752 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36751‎ | r36752 | r36753 >
Date:15:08, 27 June 2008
Author:shinjiman
Status:old
Tags:
Comment:
fixing encoding problems on r36664
patch by fdcn
Modified paths:
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)
  • /trunk/phase3/languages/classes/LanguageZh.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageConverter.php
@@ -411,7 +411,7 @@
412412 $text .= $this->mVariantNames[$k].':'.$v.';';
413413 foreach($unidtable as $k => $a)
414414 foreach($a as $from=>$to)
415 - $text.=$from.'��'.$this->mVariantNames[$k].':'.$to.';';
 415+ $text.=$from.'⇒'.$this->mVariantNames[$k].':'.$to.';';
416416 return $text;
417417 }
418418
Index: trunk/phase3/languages/classes/LanguageZh.php
@@ -29,7 +29,7 @@
3030 'zh-hk' => '香港',
3131 'zh-mo' => '澳門',
3232 'zh-sg' => '新加坡',
33 - 'zh-my' => '马来西亚',
 33+ 'zh-my' => '大马',
3434 );
3535 $this->mVariantNames = array_merge($this->mVariantNames,$names);
3636 }
@@ -69,8 +69,8 @@
7070 /* description of convert code in chinese language*/
7171 function getRulesDesc($bidtable,$unidtable){
7272 $text=parent::getRulesDesc($bidtable,$unidtable);
73 - $text=str_replace(':','F',$text);
74 - $text=str_replace(';','G',$text);
 73+ $text=str_replace(':',':',$text);
 74+ $text=str_replace(';',';',$text);
7575 return $text;
7676 }
7777

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r36664* (bug 14604) Introduced the following features for the LanguageConverter: Mu...shinjiman03:00, 26 June 2008

Status & tagging log