MediaWiki
REL1_19
|
Ossetian (Ирон) More...
Public Member Functions | |
convertGrammar ($word, $case) | |
Convert from the nominative form of a noun to other cases Invoked with {{grammar:case|word}}. |
Ossetian (Ирон)
Definition at line 9 of file LanguageOs.php.
LanguageOs::convertGrammar | ( | $ | word, |
$ | case | ||
) |
Convert from the nominative form of a noun to other cases Invoked with {{grammar:case|word}}.
Depending on word there are four different ways of converting to other cases. 1) Word consist of not cyrillic letters or is an abbreviation. Then result word is: word + hyphen + case ending.
2) Word consist of cyrillic letters. 2.1) Word is in plural. Then result word is: word - last letter + case ending. Ending of allative case here is 'æм'.
2.2) Word is in singular. 2.2.1) Word ends on consonant. Then result word is: word + case ending.
2.2.2) Word ends on vowel. Then result word is: word + 'й' + case ending for cases != allative or comitative and word + case ending for allative or comitative. Ending of allative case here is 'æ'.
$word | string |
$case | string |
Reimplemented from Language.
Definition at line 35 of file LanguageOs.php.
References $wgGrammarForms.