Index: trunk/extensions/LiquidThreads/classes/Threads.php |
— | — | @@ -271,6 +271,7 @@ |
272 | 272 | |
273 | 273 | /** Keep trying titles starting with $basename until one is unoccupied. */ |
274 | 274 | public static function incrementedTitle( $basename, $namespace ) { |
| 275 | + global $wgContLang; |
275 | 276 | $i = 2; |
276 | 277 | |
277 | 278 | // Try to make the title valid. |
— | — | @@ -284,7 +285,8 @@ |
285 | 286 | throw new MWException( "Error in creating title for basename $basename" ); |
286 | 287 | } |
287 | 288 | |
288 | | - $t = Title::makeTitleSafe( $namespace, $basename . ' (' . $i . ')' ); |
| 289 | + $n = $wgContLang->formatNum( $i ); |
| 290 | + $t = Title::makeTitleSafe( $namespace, $basename . ' (' . $n . ')' ); |
289 | 291 | $i++; |
290 | 292 | } |
291 | 293 | return $t; |