MediaWiki  REL1_19
LanguageOs Class Reference

Ossetian (Ирон) More...

Inheritance diagram for LanguageOs:
Collaboration diagram for LanguageOs:

List of all members.

Public Member Functions

 convertGrammar ($word, $case)
 Convert from the nominative form of a noun to other cases Invoked with {{grammar:case|word}}.

Detailed Description

Ossetian (Ирон)

Author:
Soslan Khubulov

Definition at line 9 of file LanguageOs.php.


Member Function Documentation

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 'æ'.

Parameters:
$wordstring
$casestring
Returns:
string

Reimplemented from Language.

Definition at line 35 of file LanguageOs.php.

References $wgGrammarForms.


The documentation for this class was generated from the following file: