Merge "Special:Upload should not crash on failing previews"
[mediawiki.git] / resources / lib / jquery.i18n / src / languages / he.js
blobcbbe90b9d7e62d94ee062cd1868795fc23f87722
1 /**
2 * Hebrew (עברית) language functions
3 */
4 ( function ( $ ) {
5 'use strict';
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;
17 // Remove the "He" if prefixed
18 if ( word.substr( 0, 1 ) === 'ה' ) {
19 word = word.substr( 1, word.length );
22 // Add a hyphen (maqaf) before numbers and non-Hebrew letters
23 if ( word.substr( 0, 1 ) < 'א' || word.substr( 0, 1 ) > 'ת' ) {
24 word = '־' + word;
28 return word;
30 } );
31 }( jQuery ) );