* Used in Language::convertGrammar().
*/
$wgGrammarForms = array();
-#$wgGrammarForms['genitive']['car'] = 'car\'s';
+#$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
/** Treat language links as magic connectors, not inline links */
$wgInterwikiMagic = true;
*/
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['en'][$case][$word]) ) {
+ return $wgGrammarForms['en'][$case][$word];
}
return $word;
}
# Invoked with {{GRAMMAR:case|word}}
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['bs'][$case][$word]) ) {
+ return $wgGrammarForms['bs'][$case][$word];
}
switch ( $case ) {
case 'genitiv': # genitive
# Invoked by putting {{grammar:case|word}} in a message
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['cs'][$case][$word]) ) {
+ return $wgGrammarForms['cs'][$case][$word];
}
# allowed values for $case:
# 1sg, 2sg, ..., 7sg -- nominative, genitive, ... (in singular)
# Invoked with {{GRAMMAR:case|word}}
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['fi'][$case][$word]) ) {
+ return $wgGrammarForms['fi'][$case][$word];
}
# These rules are not perfect, but they are currently only used for site names so it doesn't
# Invoked with {{GRAMMAR:transformation|word}}
function convertGrammar( $word, $what ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['ga'][$case][$word]) ) {
+ return $wgGrammarForms['ga'][$case][$word];
}
switch ( $what ) {
*/
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['la'][$case][$word]) ) {
+ return $wgGrammarForms['la'][$case][$word];
}
switch ( $case ) {
# Invoked with {{grammar:case|word}}
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['ru'][$case][$word]) ) {
+ return $wgGrammarForms['ru'][$case][$word];
}
# These rules are not perfect, but they are currently only used for site names so it doesn't
# Invoked with {{GRAMMAR:case|word}}
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['sk'][$case][$word]) ) {
+ return $wgGrammarForms['sk'][$case][$word];
}
switch ( $case ) {
# Invoked with {{GRAMMAR:case|word}}
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['sl'][$case][$word]) ) {
+ return $wgGrammarForms['sl'][$case][$word];
}
switch ( $case ) {
*/
function convertGrammar( $word, $case ) {
global $wgGrammarForms;
- if ( isset($wgGrammarForms[$case][$word]) ) {
- return $wgGrammarForms[$case][$word];
+ if ( isset($wgGrammarForms['tyv'][$case][$word]) ) {
+ return $wgGrammarForms['tyv'][$case][$word];
}