Index: branches/jsgrammar/tests/qunit/suites/resources/mediawiki/mediawiki.language.test.js |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | mw.language.grammartest = function( options ) { |
10 | 10 | var opt = $.extend({ |
11 | 11 | language: '', |
12 | | - test: [], |
| 12 | + test: [] |
13 | 13 | }, options); |
14 | 14 | // The test works only if the content language is opt.language |
15 | 15 | // because it requires [lang].js to be loaded. |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | { word: 'գիրք', grammarForm: 'genitive', expected: 'գրքի', description: 'Grammar test for Armenian, genitive case' }, |
67 | 67 | { word: 'ժամանակի', grammarForm: 'genitive', expected: 'ժամանակիի', description: 'Grammar test for Armenian, genitive case' } |
68 | 68 | ] |
69 | | -}); |
| 69 | +}); |
70 | 70 | |
71 | 71 | mw.language.grammartest({ |
72 | 72 | language: 'fi', |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | { word: 'talo', grammarForm: 'genitive', expected: 'talon', description: 'Grammar test for Finnish, genitive case' }, |
75 | 75 | { word: 'linux', grammarForm: 'genitive', expected: 'linuxin', description: 'Grammar test for Finnish, genitive case' }, |
76 | 76 | { word: 'talo', grammarForm: 'elative', expected: 'talosta', description: 'Grammar test for Finnish, elative case' }, |
77 | | - { word: 'pastöroitu', grammarForm: 'elative', expected: 'pastöroitusta', description: 'Grammar test for Finnish, elative case' }, |
| 77 | + { word: 'pastöroitu', grammarForm: 'accusative', expected: 'pastöroitua', description: 'Grammar test for Finnish, accusative case' }, |
78 | 78 | { word: 'talo', grammarForm: 'partitive', expected: 'taloa', description: 'Grammar test for Finnish, partitive case' }, |
79 | 79 | { word: 'talo', grammarForm: 'illative', expected: 'taloon', description: 'Grammar test for Finnish, illative case' }, |
80 | 80 | { word: 'linux', grammarForm: 'inessive', expected: 'linuxissa', description: 'Grammar test for Finnish, inessive case' } |
Index: branches/jsgrammar/includes/resourceloader/ResourceLoaderLanguageModule.php |
— | — | @@ -30,9 +30,9 @@ |
31 | 31 | * |
32 | 32 | * @return Array |
33 | 33 | */ |
34 | | - protected function getSiteLangGrammarForms( ) { |
| 34 | + protected function getSiteLangGrammarForms() { |
35 | 35 | global $wgContLang; |
36 | | - return $wgContLang->getGrammarForms(); |
| 36 | + return $wgContLang->getGrammarForms(); |
37 | 37 | } |
38 | 38 | /** |
39 | 39 | * @param $context ResourceLoaderContext |