r47968 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47967‎ | r47968 | r47969 >
Date:06:26, 3 March 2009
Author:philip
Status:ok
Tags:
Comment:
Allow ":" exists in manual conversion syntaxes like "-{zh-hans:Wikipedia:XXX; zh-hant:Wikipedia:YYY}-".
Modified paths:
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageConverter.php
@@ -990,9 +990,9 @@
991991 $unidtable = array();
992992 $markup = $this->mConverter->mMarkup;
993993
994 - $choice = explode($markup['varsep'], $rules );
 994+ $choice = explode($markup['varsep'], $rules);
995995 foreach($choice as $c) {
996 - $v = explode($markup['codesep'], $c);
 996+ $v = explode($markup['codesep'], $c, 2);
997997 if(count($v) != 2)
998998 continue;// syntax error, skip
999999 $to=trim($v[1]);

Status & tagging log