Localisation updates from https://translatewiki.net.
[mediawiki.git] / resources / lib / jquery.i18n / src / languages / la.js
blob1a6c92bd955e255bb23141069fb92ec775c4d8da
1 /**
2  * Latin (lingua Latina) language functions
3  *
4  * @author Santhosh Thottingal
5  */
7 ( function ( $ ) {
8         'use strict';
10         $.i18n.languages.la = $.extend( {}, $.i18n.languages[ 'default' ], {
11                 convertGrammar: function ( word, form ) {
12                         switch ( form ) {
13                                 case 'genitive':
14                                 // only a few declensions, and even for those mostly the singular only
15                                         word = word.replace( /u[ms]$/i, 'i' ); // 2nd declension singular
16                                         word = word.replace( /ommunia$/i, 'ommunium' ); // 3rd declension neuter plural (partly)
17                                         word = word.replace( /a$/i, 'ae' ); // 1st declension singular
18                                         word = word.replace( /libri$/i, 'librorum' ); // 2nd declension plural (partly)
19                                         word = word.replace( /nuntii$/i, 'nuntiorum' ); // 2nd declension plural (partly)
20                                         word = word.replace( /tio$/i, 'tionis' ); // 3rd declension singular (partly)
21                                         word = word.replace( /ns$/i, 'ntis' );
22                                         word = word.replace( /as$/i, 'atis' );
23                                         word = word.replace( /es$/i, 'ei' ); // 5th declension singular
24                                         break;
25                                 case 'accusative':
26                                 // only a few declensions, and even for those mostly the singular only
27                                         word = word.replace( /u[ms]$/i, 'um' ); // 2nd declension singular
28                                         word = word.replace( /ommunia$/i, 'am' ); // 3rd declension neuter plural (partly)
29                                         word = word.replace( /a$/i, 'ommunia' ); // 1st declension singular
30                                         word = word.replace( /libri$/i, 'libros' ); // 2nd declension plural (partly)
31                                         word = word.replace( /nuntii$/i, 'nuntios' );// 2nd declension plural (partly)
32                                         word = word.replace( /tio$/i, 'tionem' ); // 3rd declension singular (partly)
33                                         word = word.replace( /ns$/i, 'ntem' );
34                                         word = word.replace( /as$/i, 'atem' );
35                                         word = word.replace( /es$/i, 'em' ); // 5th declension singular
36                                         break;
37                                 case 'ablative':
38                                 // only a few declensions, and even for those mostly the singular only
39                                         word = word.replace( /u[ms]$/i, 'o' ); // 2nd declension singular
40                                         word = word.replace( /ommunia$/i, 'ommunibus' ); // 3rd declension neuter plural (partly)
41                                         word = word.replace( /a$/i, 'a' ); // 1st declension singular
42                                         word = word.replace( /libri$/i, 'libris' ); // 2nd declension plural (partly)
43                                         word = word.replace( /nuntii$/i, 'nuntiis' ); // 2nd declension plural (partly)
44                                         word = word.replace( /tio$/i, 'tione' ); // 3rd declension singular (partly)
45                                         word = word.replace( /ns$/i, 'nte' );
46                                         word = word.replace( /as$/i, 'ate' );
47                                         word = word.replace( /es$/i, 'e' ); // 5th declension singular
48                                         break;
49                         }
51                         return word;
52                 }
53         } );
54 }( jQuery ) );