Allow Message::newFromSpecifier to handle ApiMessages
[mediawiki.git] / resources / src / mediawiki.language / languages / sl.js
blob3d8bdfde4bd7ed67bd5fe1be9ff2298e24f789aa
1 /*!
2 * Slovenian (Slovenščina) language functions
3 */
5 mediaWiki.language.convertGrammar = function ( word, form ) {
6 var grammarForms = mediaWiki.language.getData( 'sl', 'grammarForms' );
7 if ( grammarForms && grammarForms[ form ] ) {
8 return grammarForms[ form ][ word ];
10 switch ( form ) {
11 case 'mestnik': // locative
12 word = 'o ' + word;
13 break;
14 case 'orodnik': // instrumental
15 word = 'z ' + word;
16 break;
18 return word;