r9102 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9101‎ | r9102 | r9103 >
Date:17:34, 19 May 2005
Author:avar
Status:old
Tags:
Comment:
* Added a new $mUcfirst var which can be set to true by a child class to
automatically make upper case versions of the conversion tables, useful for
germanic languages and others that have upper/lower case characters.
Modified paths:
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageConverter.php
@@ -19,6 +19,7 @@
2020 var $mLangObj;
2121 var $mMarkup;
2222 var $mFlags;
 23+ var $mUcfirst = false;
2324 /**
2425 * Constructor
2526 *
@@ -566,6 +567,12 @@
567568 $ret = array_merge($ret, $s);
568569 }
569570 }
 571+
 572+ if ($this->mUcfirst) {
 573+ foreach ($ret as $k => $v) {
 574+ $ret[LanguageUtf8::ucfirst($k)] = LanguageUtf8::ucfirst($v);
 575+ }
 576+ }
570577 return $ret;
571578 }
572579

Status & tagging log