* (bug 18806) Use correct unicode characters in spelling of native Chuvash
(Чӑвашла)
* (bug 18864) Updated autonym for Zhuang language
-* (bug 18957) Updated number formatting for German
-* (bug 18308) Updated date formatting in Occitan
+* (bug 18957) Updated number formatting for German (de)
+* (bug 18308) Updated date formatting in Occitan (oc)
* (bug 19080) Added ăâîşţșțĂÂÎŞŢȘȚ to Romanion (ro) linktrail
+* (bug 19286) Correct commafying function in Polish (pl)
== Compatibility ==
class LanguageDe extends Language {
/*
+ * FIXME: Comment is wrong, decimals prevent space suppression
* German numeric format is "12 345,67" but "1234,56"
* Copied from LanguageUk.php
*/
return $forms[2]; // plural genitive
}
}
+
+ function commafy($_) {
+ if (!preg_match('/^\d{1,4}(.\d+)?$/',$_)) {
+ return strrev((string)preg_replace('/(\d{3})(?=\d)(?!\d*\.)/','$1,',strrev($_)));
+ } else {
+ return $_;
+ }
+ }
}