2 * Hebrew (עברית) language functions
5 mediaWiki.language.convertPlural = function( count, forms ) {
6 forms = mediaWiki.language.preConvertPlural( forms, 3 );
10 if ( count == 2 && forms[2] ) {
16 mediaWiki.language.convertGrammar = function( word, form ) {
17 var grammarForms = mw.language.getData( 'he', 'grammarForms' );
18 if ( grammarForms && grammarForms[form] ) {
19 return grammarForms[form][word] ;
23 case 'תחילית': // the same word in Hebrew
24 // Duplicate prefixed "Waw", but only if it's not already double
25 if ( word.substr( 0, 1 ) === "ו" && word.substr( 0, 2 ) !== "וו" ) {
29 // Remove the "He" if prefixed
30 if ( word.substr( 0, 1 ) === "ה" ) {
31 word = word.substr( 1, word.length );
34 // Add a hyphen (maqaf) before numbers and non-Hebrew letters
35 if ( word.substr( 0, 1 ) < "א" || word.substr( 0, 1 ) > "ת" ) {