30 # Convert from the nominative form of a noun to some other case
31 # Invoked with {{GRAMMAR:case|word}}
43 MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::GrammarForms );
44 if ( isset( $grammarForms[
'sl'][$case][$word] ) ) {
45 return $grammarForms[
'sl'][$case][$word];
49 case 'mestnik': # locative
52 case 'orodnik': # instrumental
57 # this will return the original value for 'imenovalnik' (nominativ) and
58 # all undefined case values.
convertGrammar( $word, $case)
Cases: rodilnik, dajalnik, tožilnik, mestnik, orodnik.
Base class for language-specific code.
A class containing constants representing the names of configuration variables.