diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /resources/mediawiki.language/languages | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'resources/mediawiki.language/languages')
-rw-r--r-- | resources/mediawiki.language/languages/bs.js | 19 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/dsb.js | 19 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/fi.js | 47 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/ga.js | 38 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/he.js | 29 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/hsb.js | 19 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/hu.js | 23 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/hy.js | 29 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/la.js | 50 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/os.js | 70 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/ru.js | 53 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/sl.js | 19 | ||||
-rw-r--r-- | resources/mediawiki.language/languages/uk.js | 37 |
13 files changed, 0 insertions, 452 deletions
diff --git a/resources/mediawiki.language/languages/bs.js b/resources/mediawiki.language/languages/bs.js deleted file mode 100644 index 65eb5a6d..00000000 --- a/resources/mediawiki.language/languages/bs.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Bosnian (bosanski) language functions - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - var grammarForms = mediaWiki.language.getData( 'bs', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'instrumental': // instrumental - word = 's ' + word; - break; - case 'lokativ': // locative - word = 'o ' + word; - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/dsb.js b/resources/mediawiki.language/languages/dsb.js deleted file mode 100644 index b2c9c081..00000000 --- a/resources/mediawiki.language/languages/dsb.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Lower Sorbian (Dolnoserbski) language functions - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - var grammarForms = mediaWiki.language.getData( 'dsb', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'instrumental': // instrumental - word = 'z ' + word; - break; - case 'lokatiw': // lokatiw - word = 'wo ' + word; - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/fi.js b/resources/mediawiki.language/languages/fi.js deleted file mode 100644 index 61c6c104..00000000 --- a/resources/mediawiki.language/languages/fi.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Finnish (Suomi) language functions - * @author Santhosh Thottingal - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - var grammarForms, aou, origWord; - - grammarForms = mediaWiki.language.getData( 'fi', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - - // vowel harmony flag - aou = word.match( /[aou][^äöy]*$/i ); - origWord = word; - if ( word.match( /wiki$/i ) ) { - aou = false; - } - //append i after final consonant - if ( word.match( /[bcdfghjklmnpqrstvwxz]$/i ) ) { - word += 'i'; - } - - switch ( form ) { - case 'genitive': - word += 'n'; - break; - case 'elative': - word += ( aou ? 'sta' : 'stä' ); - break; - case 'partitive': - word += ( aou ? 'a' : 'ä' ); - break; - case 'illative': - // Double the last letter and add 'n' - word += word.substr( word.length-1 ) + 'n'; - break; - case 'inessive': - word += ( aou ? 'ssa' : 'ssä' ); - break; - default: - word = origWord; - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/ga.js b/resources/mediawiki.language/languages/ga.js deleted file mode 100644 index c13e8321..00000000 --- a/resources/mediawiki.language/languages/ga.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Irish (Gaeilge) language functions - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - /*jshint onecase:true */ - var grammarForms = mediaWiki.language.getData( 'ga', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'ainmlae': - switch ( word ) { - case 'an Domhnach': - word = 'Dé Domhnaigh'; - break; - case 'an Luan': - word = 'Dé Luain'; - break; - case 'an Mháirt': - word = 'Dé Mháirt'; - break; - case 'an Chéadaoin': - word = 'Dé Chéadaoin'; - break; - case 'an Déardaoin': - word = 'Déardaoin'; - break; - case 'an Aoine': - word = 'Dé hAoine'; - break; - case 'an Satharn': - word = 'Dé Sathairn'; - break; - } - } - return word; -}; diff --git a/resources/mediawiki.language/languages/he.js b/resources/mediawiki.language/languages/he.js deleted file mode 100644 index 13d457b2..00000000 --- a/resources/mediawiki.language/languages/he.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Hebrew (עברית) language functions - */ - -mediaWiki.language.convertGrammar = function( word, form ) { - var grammarForms = mediaWiki.language.getData( 'he', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'prefixed': - case 'תחילית': // the same word in Hebrew - // Duplicate prefixed "Waw", but only if it's not already double - if ( word.substr( 0, 1 ) === 'ו' && word.substr( 0, 2 ) !== 'וו' ) { - word = 'ו' + word; - } - - // Remove the "He" if prefixed - if ( word.substr( 0, 1 ) === 'ה' ) { - word = word.substr( 1, word.length ); - } - - // Add a hyphen (maqaf) before numbers and non-Hebrew letters - if ( word.substr( 0, 1 ) < 'א' || word.substr( 0, 1 ) > 'ת' ) { - word = '־' + word; - } - } - return word; -}; diff --git a/resources/mediawiki.language/languages/hsb.js b/resources/mediawiki.language/languages/hsb.js deleted file mode 100644 index 77dca75e..00000000 --- a/resources/mediawiki.language/languages/hsb.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Upper Sorbian (Hornjoserbsce) language functions - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - var grammarForms = mediaWiki.language.getData( 'hsb', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'instrumental': // instrumental - word = 'z ' + word; - break; - case 'lokatiw': // lokatiw - word = 'wo ' + word; - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/hu.js b/resources/mediawiki.language/languages/hu.js deleted file mode 100644 index 23b0c125..00000000 --- a/resources/mediawiki.language/languages/hu.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Hungarian language functions - * @author Santhosh Thottingal - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - var grammarForms = mediaWiki.language.getData( 'hu', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'rol': - word += 'ról'; - break; - case 'ba': - word += 'ba'; - break; - case 'k': - word += 'k'; - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/hy.js b/resources/mediawiki.language/languages/hy.js deleted file mode 100644 index 65081bdd..00000000 --- a/resources/mediawiki.language/languages/hy.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Armenian (Հայերեն) language functions - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - /*jshint onecase:true */ - var grammarForms = mediaWiki.language.getData( 'hy', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - - // These rules are not perfect, but they are currently only used for site names so it doesn't - // matter if they are wrong sometimes. Just add a special case for your site name if necessary. - - switch ( form ) { - case 'genitive': // սեռական հոլով - if ( word.substr( -1 ) === 'ա' ) { - word = word.substr( 0, word.length -1 ) + 'այի'; - } else if ( word.substr( -1 ) === 'ո' ) { - word = word.substr( 0, word.length - 1 ) + 'ոյի'; - } else if ( word.substr( -4 ) === 'գիրք' ) { - word = word.substr( 0, word.length - 4 ) + 'գրքի'; - } else { - word = word + 'ի'; - } - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/la.js b/resources/mediawiki.language/languages/la.js deleted file mode 100644 index 27110241..00000000 --- a/resources/mediawiki.language/languages/la.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Latin (lingua Latina) language functions - * @author Santhosh Thottingal - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - var grammarForms = mediaWiki.language.getData( 'la', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'genitive': - // only a few declensions, and even for those mostly the singular only - word = word.replace( /u[ms]$/i, 'i' ); // 2nd declension singular - word = word.replace( /ommunia$/i, 'ommunium' ); // 3rd declension neuter plural (partly) - word = word.replace( /a$/i, 'ae' ); // 1st declension singular - word = word.replace( /libri$/i,'librorum' ); // 2nd declension plural (partly) - word = word.replace( /nuntii$/i, 'nuntiorum' ); // 2nd declension plural (partly) - word = word.replace( /tio$/i,'tionis' ); // 3rd declension singular (partly) - word = word.replace( /ns$/i, 'ntis' ); - word = word.replace( /as$/i, 'atis' ); - word = word.replace( /es$/i ,'ei' ); // 5th declension singular - break; - case 'accusative': - // only a few declensions, and even for those mostly the singular only - word = word.replace( /u[ms]$/i, 'um' ); // 2nd declension singular - word = word.replace( /ommunia$/i, 'am' ); // 3rd declension neuter plural (partly) - word = word.replace( /a$/i, 'ommunia' ); // 1st declension singular - word = word.replace( /libri$/i,'libros' ); // 2nd declension plural (partly) - word = word.replace( /nuntii$/i, 'nuntios' );// 2nd declension plural (partly) - word = word.replace( /tio$/i,'tionem' ); // 3rd declension singular (partly) - word = word.replace( /ns$/i, 'ntem' ); - word = word.replace( /as$/i, 'atem'); - word = word.replace( /es$/i ,'em' ); // 5th declension singular - break; - case 'ablative': - // only a few declensions, and even for those mostly the singular only - word = word.replace( /u[ms]$/i, 'o' ); // 2nd declension singular - word = word.replace( /ommunia$/i, 'ommunibus' ); // 3rd declension neuter plural (partly) - word = word.replace( /a$/i, 'a' ); // 1st declension singular - word = word.replace( /libri$/i,'libris' ); // 2nd declension plural (partly) - word = word.replace( /nuntii$/i, 'nuntiis' ); // 2nd declension plural (partly) - word = word.replace( /tio$/i,'tione' ); // 3rd declension singular (partly) - word = word.replace( /ns$/i, 'nte' ); - word = word.replace( /as$/i, 'ate'); - word = word.replace( /es$/i ,'e' ); // 5th declension singular - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/os.js b/resources/mediawiki.language/languages/os.js deleted file mode 100644 index 682b3903..00000000 --- a/resources/mediawiki.language/languages/os.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Ossetian (Ирон) language functions - * @author Santhosh Thottingal - */ - - -mediaWiki.language.convertGrammar = function ( word, form ) { - var grammarForms = mediaWiki.language.getData( 'os', 'grammarForms' ), - // Ending for allative case - endAllative = 'мæ', - // Variable for 'j' beetwen vowels - jot = '', - // Variable for "-" for not Ossetic words - hyphen = '', - // Variable for ending - ending = ''; - - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - // Checking if the $word is in plural form - if ( word.match( /тæ$/i ) ) { - word = word.substring( 0, word.length - 1 ); - endAllative = 'æм'; - } - // Works if word is in singular form. - // Checking if word ends on one of the vowels: е, ё, и, о, ы, э, ю, я. - else if ( word.match( /[аæеёиоыэюя]$/i ) ) { - jot = 'й'; - } - // Checking if word ends on 'у'. 'У' can be either consonant 'W' or vowel 'U' in cyrillic Ossetic. - // Examples: {{grammar:genitive|аунеу}} = аунеуы, {{grammar:genitive|лæппу}} = лæппуйы. - else if ( word.match( /у$/i ) ) { - if ( ! word.substring( word.length-2, word.length-1 ).match( /[аæеёиоыэюя]$/i ) ) { - jot = 'й'; - } - } else if ( !word.match( /[бвгджзйклмнопрстфхцчшщьъ]$/i ) ) { - hyphen = '-'; - } - - switch ( form ) { - case 'genitive': - ending = hyphen + jot + 'ы'; - break; - case 'dative': - ending = hyphen + jot + 'æн'; - break; - case 'allative': - ending = hyphen + endAllative; - break; - case 'ablative': - if ( jot === 'й' ) { - ending = hyphen + jot + 'æ'; - } - else { - ending = hyphen + jot + 'æй'; - } - break; - case 'superessive': - ending = hyphen + jot + 'ыл'; - break; - case 'equative': - ending = hyphen + jot + 'ау'; - break; - case 'comitative': - ending = hyphen + 'имæ'; - break; - } - return word + ending; -}; diff --git a/resources/mediawiki.language/languages/ru.js b/resources/mediawiki.language/languages/ru.js deleted file mode 100644 index 1bc06326..00000000 --- a/resources/mediawiki.language/languages/ru.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Russian (Русский) language functions - */ - -// These tests were originally made for names of Wikimedia -// websites, so they don't currently cover all the possible -// cases. - -mediaWiki.language.convertGrammar = function ( word, form ) { - 'use strict'; - - var grammarForms = mediaWiki.language.getData( 'ru', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'genitive': // родительный падеж - if ( word.substr( word.length - 1 ) === 'ь' ) { - word = word.substr(0, word.length - 1 ) + 'я'; - } else if ( word.substr( word.length - 2 ) === 'ия' ) { - word = word.substr(0, word.length - 2 ) + 'ии'; - } else if ( word.substr( word.length - 2 ) === 'ка' ) { - word = word.substr(0, word.length - 2 ) + 'ки'; - } else if ( word.substr( word.length - 2 ) === 'ти' ) { - word = word.substr(0, word.length - 2 ) + 'тей'; - } else if ( word.substr( word.length - 2 ) === 'ды' ) { - word = word.substr(0, word.length - 2 ) + 'дов'; - } else if ( word.substr( word.length - 3 ) === 'ные' ) { - word = word.substr(0, word.length - 3 ) + 'ных'; - } else if ( word.substr( word.length - 3 ) === 'ник' ) { - word = word.substr(0, word.length - 3 ) + 'ника'; - } - break; - case 'prepositional': // предложный падеж - if ( word.substr( word.length - 1 ) === 'ь' ) { - word = word.substr(0, word.length - 1 ) + 'е'; - } else if ( word.substr( word.length - 2 ) === 'ия' ) { - word = word.substr(0, word.length - 2 ) + 'ии'; - } else if ( word.substr( word.length - 2 ) === 'ка' ) { - word = word.substr(0, word.length - 2 ) + 'ке'; - } else if ( word.substr( word.length - 2 ) === 'ти' ) { - word = word.substr(0, word.length - 2 ) + 'тях'; - } else if ( word.substr( word.length - 2 ) === 'ды' ) { - word = word.substr(0, word.length - 2 ) + 'дах'; - } else if ( word.substr( word.length - 3 ) === 'ные' ) { - word = word.substr(0, word.length - 3 ) + 'ных'; - } else if ( word.substr( word.length - 3 ) === 'ник' ) { - word = word.substr(0, word.length - 3 ) + 'нике'; - } - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/sl.js b/resources/mediawiki.language/languages/sl.js deleted file mode 100644 index fb335b6a..00000000 --- a/resources/mediawiki.language/languages/sl.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Slovenian (Slovenščina) language functions - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - var grammarForms = mediaWiki.language.getData( 'sl', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'mestnik': // locative - word = 'o ' + word; - break; - case 'orodnik': // instrumental - word = 'z ' + word; - break; - } - return word; -}; diff --git a/resources/mediawiki.language/languages/uk.js b/resources/mediawiki.language/languages/uk.js deleted file mode 100644 index 5e56b66f..00000000 --- a/resources/mediawiki.language/languages/uk.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Ukrainian (Українська) language functions - */ - -mediaWiki.language.convertGrammar = function ( word, form ) { - /*jshint noempty:false */ - var grammarForms = mediaWiki.language.getData( 'uk', 'grammarForms' ); - if ( grammarForms && grammarForms[form] ) { - return grammarForms[form][word]; - } - switch ( form ) { - case 'genitive': // родовий відмінок - if ( ( word.substr( word.length - 4 ) === 'вікі' ) || ( word.substr( word.length - 4 ) === 'Вікі' ) ) { - } else if ( word.substr( word.length - 1 ) === 'ь' ) { - word = word.substr(0, word.length - 1 ) + 'я'; - } else if ( word.substr( word.length - 2 ) === 'ія' ) { - word = word.substr(0, word.length - 2 ) + 'ії'; - } else if ( word.substr( word.length - 2 ) === 'ка' ) { - word = word.substr(0, word.length - 2 ) + 'ки'; - } else if ( word.substr( word.length - 2 ) === 'ти' ) { - word = word.substr(0, word.length - 2 ) + 'тей'; - } else if ( word.substr( word.length - 2 ) === 'ды' ) { - word = word.substr(0, word.length - 2 ) + 'дов'; - } else if ( word.substr( word.length - 3 ) === 'ник' ) { - word = word.substr(0, word.length - 3 ) + 'ника'; - } - break; - case 'accusative': // знахідний відмінок - if ( ( word.substr( word.length - 4 ) === 'вікі' ) || ( word.substr( word.length - 4 ) === 'Вікі' ) ) { - } - else if ( word.substr( word.length - 2 ) === 'ія' ) { - word = word.substr(0, word.length - 2 ) + 'ію'; - } - break; - } - return word; -}; |