Index: trunk/phase3/languages/classes/LanguageDe.php |
— | — | @@ -6,6 +6,7 @@ |
7 | 7 | class LanguageDe extends Language { |
8 | 8 | |
9 | 9 | /* |
| 10 | + * FIXME: Comment is wrong, decimals prevent space suppression |
10 | 11 | * German numeric format is "12 345,67" but "1234,56" |
11 | 12 | * Copied from LanguageUk.php |
12 | 13 | */ |
Index: trunk/phase3/languages/classes/LanguagePl.php |
— | — | @@ -21,4 +21,12 @@ |
22 | 22 | return $forms[2]; // plural genitive |
23 | 23 | } |
24 | 24 | } |
| 25 | + |
| 26 | + function commafy($_) { |
| 27 | + if (!preg_match('/^\d{1,4}(.\d+)?$/',$_)) { |
| 28 | + return strrev((string)preg_replace('/(\d{3})(?=\d)(?!\d*\.)/','$1,',strrev($_))); |
| 29 | + } else { |
| 30 | + return $_; |
| 31 | + } |
| 32 | + } |
25 | 33 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -242,9 +242,10 @@ |
243 | 243 | * (bug 18806) Use correct unicode characters in spelling of native Chuvash |
244 | 244 | (Чӑвашла) |
245 | 245 | * (bug 18864) Updated autonym for Zhuang language |
246 | | -* (bug 18957) Updated number formatting for German |
247 | | -* (bug 18308) Updated date formatting in Occitan |
| 246 | +* (bug 18957) Updated number formatting for German (de) |
| 247 | +* (bug 18308) Updated date formatting in Occitan (oc) |
248 | 248 | * (bug 19080) Added ăâîşţșțĂÂÎŞŢȘȚ to Romanion (ro) linktrail |
| 249 | +* (bug 19286) Correct commafying function in Polish (pl) |
249 | 250 | |
250 | 251 | == Compatibility == |
251 | 252 | |