Index: trunk/extensions/ParserFunctions/ParserFunctions.php |
— | — | @@ -271,38 +271,39 @@ |
272 | 272 | function wfParserFunctionsLanguageGetMagic( &$magicWords, $langCode ) { |
273 | 273 | switch ( $langCode ) { |
274 | 274 | case 'fa': |
275 | | - $magicWords['expr'] = array( 0, 'حساب', 'expr' ); |
276 | | - $magicWords['if'] = array( 0, 'اگر', 'if' ); |
277 | | - $magicWords['ifeq'] = array( 0, 'اگرمساوی', 'ifeq' ); |
278 | | - $magicWords['ifexpr'] = array( 0, 'اگرحساب', 'ifexpr' ); |
279 | | - $magicWords['switch'] = array( 0, 'گزینه', 'switch' ); |
280 | | - $magicWords['default'] = array( 0, '#پیشفرض', '#default' ); |
281 | | - $magicWords['ifexist'] = array( 0, 'اگرموجود', 'ifexist' ); |
282 | | - $magicWords['time'] = array( 0, 'زمان', 'time' ); |
283 | | - $magicWords['rel2abs'] = array( 0, 'نسبیبهمطلق', 'rel2abs' ); |
| 275 | + $magicWords['expr'] = array( 0, 'حساب', 'expr' ); |
| 276 | + $magicWords['if'] = array( 0, 'اگر', 'if' ); |
| 277 | + $magicWords['ifeq'] = array( 0, 'اگرمساوی', 'ifeq' ); |
| 278 | + $magicWords['ifexpr'] = array( 0, 'اگرحساب', 'ifexpr' ); |
| 279 | + $magicWords['switch'] = array( 0, 'گزینه', 'switch' ); |
| 280 | + $magicWords['default'] = array( 0, '#پیشفرض', '#default' ); |
| 281 | + $magicWords['ifexist'] = array( 0, 'اگرموجود', 'ifexist' ); |
| 282 | + $magicWords['time'] = array( 0, 'زمان', 'time' ); |
| 283 | + $magicWords['rel2abs'] = array( 0, 'نسبیبهمطلق', 'rel2abs' ); |
| 284 | + $magicWords['titleparts'] = array( 0, 'titleparts' ); # TODO: translate |
284 | 285 | break; |
285 | 286 | case 'he': |
286 | | - $magicWords['expr'] = array( 0, 'חשב', 'expr' ); |
287 | | - $magicWords['if'] = array( 0, 'תנאי', 'if' ); |
288 | | - $magicWords['ifeq'] = array( 0, 'שווה', 'ifeq' ); |
289 | | - $magicWords['ifexpr'] = array( 0, 'חשב תנאי', 'ifexpr' ); |
290 | | - $magicWords['switch'] = array( 0, 'בחר', 'switch' ); |
291 | | - $magicWords['default'] = array( 0, '#ברירת מחדל', '#default' ); |
292 | | - $magicWords['ifexist'] = array( 0, 'קיים', 'ifexist' ); |
293 | | - $magicWords['time'] = array( 0, 'זמן', 'time' ); |
294 | | - $magicWords['rel2abs'] = array( 0, 'יחסי למוחלט', 'rel2abs' ); |
| 287 | + $magicWords['expr'] = array( 0, 'חשב', 'expr' ); |
| 288 | + $magicWords['if'] = array( 0, 'תנאי', 'if' ); |
| 289 | + $magicWords['ifeq'] = array( 0, 'שווה', 'ifeq' ); |
| 290 | + $magicWords['ifexpr'] = array( 0, 'חשב תנאי', 'ifexpr' ); |
| 291 | + $magicWords['switch'] = array( 0, 'בחר', 'switch' ); |
| 292 | + $magicWords['default'] = array( 0, '#ברירת מחדל', '#default' ); |
| 293 | + $magicWords['ifexist'] = array( 0, 'קיים', 'ifexist' ); |
| 294 | + $magicWords['time'] = array( 0, 'זמן', 'time' ); |
| 295 | + $magicWords['rel2abs'] = array( 0, 'יחסי למוחלט', 'rel2abs' ); |
295 | 296 | $magicWords['titleparts'] = array( 0, 'חלק בכותרת', 'titleparts' ); |
296 | 297 | break; |
297 | 298 | default: |
298 | | - $magicWords['expr'] = array( 0, 'expr' ); |
299 | | - $magicWords['if'] = array( 0, 'if' ); |
300 | | - $magicWords['ifeq'] = array( 0, 'ifeq' ); |
301 | | - $magicWords['ifexpr'] = array( 0, 'ifexpr' ); |
302 | | - $magicWords['switch'] = array( 0, 'switch' ); |
303 | | - $magicWords['default'] = array( 0, '#default' ); |
304 | | - $magicWords['ifexist'] = array( 0, 'ifexist' ); |
305 | | - $magicWords['time'] = array( 0, 'time' ); |
306 | | - $magicWords['rel2abs'] = array( 0, 'rel2abs' ); |
| 299 | + $magicWords['expr'] = array( 0, 'expr' ); |
| 300 | + $magicWords['if'] = array( 0, 'if' ); |
| 301 | + $magicWords['ifeq'] = array( 0, 'ifeq' ); |
| 302 | + $magicWords['ifexpr'] = array( 0, 'ifexpr' ); |
| 303 | + $magicWords['switch'] = array( 0, 'switch' ); |
| 304 | + $magicWords['default'] = array( 0, '#default' ); |
| 305 | + $magicWords['ifexist'] = array( 0, 'ifexist' ); |
| 306 | + $magicWords['time'] = array( 0, 'time' ); |
| 307 | + $magicWords['rel2abs'] = array( 0, 'rel2abs' ); |
307 | 308 | $magicWords['titleparts'] = array( 0, 'titleparts' ); |
308 | 309 | } |
309 | 310 | return true; |