[JobQueue] Added missing delete query.
[mediawiki.git] / resources / mediawiki.language / languages / uk.js
blobee110b064076ed3b2bbd7257225abb0bed9c09fa
1 /**
2 * Ukrainian (Українська) language functions
3 */
5 mediaWiki.language.convertGrammar = function( word, form ) {
6 var grammarForms = mw.language.getData( 'uk', 'grammarForms' );
7 if ( grammarForms && grammarForms[form] ) {
8 return grammarForms[form][word] ;
10 switch ( form ) {
11 case 'genitive': // родовий відмінок
12 if ( ( word.substr( word.length - 4 ) == 'вікі' ) || ( word.substr( word.length - 4 ) == 'Вікі' ) ) {
14 else if ( word.substr( word.length - 1 ) == 'ь' )
15 word = word.substr(0, word.length - 1 ) + 'я';
16 else if ( word.substr( word.length - 2 ) == 'ія' )
17 word = word.substr(0, word.length - 2 ) + 'ії';
18 else if ( word.substr( word.length - 2 ) == 'ка' )
19 word = word.substr(0, word.length - 2 ) + 'ки';
20 else if ( word.substr( word.length - 2 ) == 'ти' )
21 word = word.substr(0, word.length - 2 ) + 'тей';
22 else if ( word.substr( word.length - 2 ) == 'ды' )
23 word = word.substr(0, word.length - 2 ) + 'дов';
24 else if ( word.substr( word.length - 3 ) == 'ник' )
25 word = word.substr(0, word.length - 3 ) + 'ника';
26 break;
27 case 'accusative': // знахідний відмінок
28 if ( ( word.substr( word.length - 4 ) == 'вікі' ) || ( word.substr( word.length - 4 ) == 'Вікі' ) ) {
30 else if ( word.substr( word.length - 2 ) == 'ія' )
31 word = word.substr(0, word.length - 2 ) + 'ію';
32 break;
34 return word;