Index: trunk/phase3/languages/classes/LanguagePl.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | } |
25 | 25 | |
26 | 26 | function commafy( $_ ) { |
27 | | - if ( !preg_match( '/^\d{1,4}(.\d+)?$/', $_ ) ) { |
| 27 | + if ( !preg_match( '/^\-?\d{1,4}(\.\d+)?$/', $_ ) ) { |
28 | 28 | return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) ); |
29 | 29 | } else { |
30 | 30 | return $_; |
Index: trunk/phase3/languages/classes/LanguageUk.php |
— | — | @@ -82,9 +82,8 @@ |
83 | 83 | /* |
84 | 84 | * Ukrainian numeric format is "12 345,67" but "1234,56" |
85 | 85 | */ |
86 | | - |
87 | 86 | function commafy( $_ ) { |
88 | | - if ( !preg_match( '/^\d{1,4}$/', $_ ) ) { |
| 87 | + if ( !preg_match( '/^\-?\d{1,4}(\.\d+)?$/', $_ ) ) { |
89 | 88 | return strrev( (string)preg_replace( '/(\d{3})(?=\d)(?!\d*\.)/', '$1,', strrev( $_ ) ) ); |
90 | 89 | } else { |
91 | 90 | return $_; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -296,6 +296,7 @@ |
297 | 297 | * (bug 17031) Correct which characters the parser allows in tag attributes. |
298 | 298 | * Save 200 useless queries on each category page view |
299 | 299 | * Shell commands will now work on Linux in filesystems mounted noexec |
| 300 | +* (bug 24804) Corrected commafying in Polish and Ukrainian |
300 | 301 | |
301 | 302 | === API changes in 1.17 === |
302 | 303 | * (bug 22738) Allow filtering by action type on query=logevent. |