ApiSandbox: Visual separation of fields
[mediawiki.git] / resources / src / mediawiki.language / languages / hu.js
blob4f8f74df72b585ed79c3c02b83581ccc221bc958
1 /*!
2 * Hungarian language functions
3 * @author Santhosh Thottingal
4 */
6 mediaWiki.language.convertGrammar = function ( word, form ) {
7 var grammarForms = mediaWiki.language.getData( 'hu', 'grammarForms' );
8 if ( grammarForms && grammarForms[ form ] ) {
9 return grammarForms[ form ][ word ];
11 switch ( form ) {
12 case 'rol':
13 word += 'ról';
14 break;
15 case 'ba':
16 word += 'ba';
17 break;
18 case 'k':
19 word += 'k';
20 break;
22 return word;