Index: trunk/extensions/TemplateAdventures/TemplateAdventures.i18n.magic.php |
— | — | @@ -14,9 +14,9 @@ |
15 | 15 | 'ta_cc_editorsurname' => array( 0, 'editorsurname' ), |
16 | 16 | 'ta_cc_editorgiven' => array( 0, 'editorgiven' ), |
17 | 17 | 'ta_cc_editorlink' => array( 0, 'editorlink' ), |
18 | | - 'ta_cc_url' => array( 0, 'url', 'URL' ), |
19 | | - 'ta_cc_title' => array( 0, 'title', 'Title' ), |
20 | | - 'ta_cc_pmc' => array( 0, 'pmc', 'PMC' ), |
| 18 | + 'ta_cc_url' => array( 0, 'url' ), |
| 19 | + 'ta_cc_title' => array( 0, 'title' ), |
| 20 | + 'ta_cc_pmc' => array( 0, 'pmc' ), |
21 | 21 | 'ta_cc_includedworktitle' => array( 0, 'includedworktitle' ), |
22 | 22 | 'ta_cc_periodical' => array( 0, 'periodical' ), |
23 | 23 | 'ta_cc_transitalic' => array( 0, 'transitalic' ), |
Index: trunk/extensions/TemplateAdventures/Templates/Citation.php |
— | — | @@ -400,6 +400,7 @@ |
401 | 401 | * well as its numeral found with it or false if not. |
402 | 402 | */ |
403 | 403 | protected function parseOptionName( $value ) { |
| 404 | + global $wgContLang; |
404 | 405 | |
405 | 406 | static $magicWords = null; |
406 | 407 | if ( $magicWords === null ) { |
— | — | @@ -423,6 +424,8 @@ |
424 | 425 | $num = null; |
425 | 426 | } |
426 | 427 | |
| 428 | + $name = $wgContLang->lc( $name ); |
| 429 | + |
427 | 430 | if ( $name = $magicWords->matchStartToEnd( trim($name) ) ) { |
428 | 431 | return array( |
429 | 432 | str_replace( 'ta_cc_', '', $name ), |