|
MediaWiki
REL1_23
|
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 30 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 56 of file LanguageOs.php.
References global.