Merge "Don't check namespace in SpecialWantedtemplates"
[lhc/web/wiklou.git] / resources / lib / jquery.i18n / src / languages / he.js
1 /**
2 * Hebrew (עברית) language functions
3 */
4 ( function ( $ ) {
5 'use strict';
6
7 $.i18n.languages.he = $.extend( {}, $.i18n.languages['default'], {
8 convertGrammar: function ( word, form ) {
9 switch ( form ) {
10 case 'prefixed':
11 case 'תחילית': // the same word in Hebrew
12 // Duplicate prefixed "Waw", but only if it's not already double
13 if ( word.substr( 0, 1 ) === 'ו' && word.substr( 0, 2 ) !== 'וו' ) {
14 word = 'ו' + word;
15 }
16
17 // Remove the "He" if prefixed
18 if ( word.substr( 0, 1 ) === 'ה' ) {
19 word = word.substr( 1, word.length );
20 }
21
22 // Add a hyphen (maqaf) before numbers and non-Hebrew letters
23 if ( word.substr( 0, 1 ) < 'א' || word.substr( 0, 1 ) > 'ת' ) {
24 word = '־' + word;
25 }
26 }
27
28 return word;
29 }
30 } );
31 }( jQuery ) );