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 @@
20
20
var $mLangObj;
21
21
var $mMarkup;
22
22
var $mFlags;
23
+ var $mUcfirst = false;
23
24
/**
24
25
* Constructor
25
26
*
—
—
@@ -566,6 +567,12 @@
567
568
$ret = array_merge($ret, $s);
568
569
}
569
570
}
571
+
572
+ if ($this->mUcfirst) {
573
+ foreach ($ret as $k => $v) {
574
+ $ret[LanguageUtf8::ucfirst($k)] = LanguageUtf8::ucfirst($v);
575
+ }
576
+ }
570
577
return $ret;
571
578
}
572
579
Status & tagging log
01:56, 13 October 2010
😂
(
talk
|
contribs
)
changed the
status
of r9102
[
removed:
new
added:
old]