MediaWiki  1.34.0
LanguageBs.php
Go to the documentation of this file.
1 <?php
29 class LanguageBs extends Language {
41  function convertGrammar( $word, $case ) {
42  global $wgGrammarForms;
43  if ( isset( $wgGrammarForms['bs'][$case][$word] ) ) {
44  return $wgGrammarForms['bs'][$case][$word];
45  }
46  switch ( $case ) {
47  case 'instrumental': # instrumental
48  $word = 's ' . $word;
49  break;
50  case 'lokativ': # locative
51  $word = 'o ' . $word;
52  break;
53  }
54 
55  # this will return the original value for 'nominativ' (nominative)
56  # and all undefined case values.
57  return $word;
58  }
59 }
LanguageBs
Bosnian (bosanski)
Definition: LanguageBs.php:29
LanguageBs\convertGrammar
convertGrammar( $word, $case)
Convert from the nominative form of a noun to some other case Invoked with {{GRAMMAR:case|word}}.
Definition: LanguageBs.php:41
$wgGrammarForms
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Definition: DefaultSettings.php:2965
Language
Internationalisation code.
Definition: Language.php:37