MediaWiki master
LanguageDsb.php
Go to the documentation of this file.
1<?php
8namespace MediaWiki\Languages;
9
13
19class LanguageDsb extends Language {
21 public function convertGrammar( $word, $case ) {
22 $grammarForms =
24 if ( isset( $grammarForms['dsb'][$case][$word] ) ) {
25 return $grammarForms['dsb'][$case][$word];
26 }
27
28 switch ( $case ) {
29 case 'instrumental': # instrumental
30 $word = 'z ' . $word;
31 // fall-through
32 case 'lokatiw': # lokatiw
33 $word = 'wo ' . $word;
34 break;
35 }
36
37 # this will return the original value for 'nominatiw' (nominativ) and
38 # all undefined case values.
39 return $word;
40 }
41}
42
44class_alias( LanguageDsb::class, 'LanguageDsb' );
Base class for language-specific code.
Definition Language.php:68
Lower Sorbian (Dolnoserbski) specific code.
convertGrammar( $word, $case)
Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} ...
A class containing constants representing the names of configuration variables.
const GrammarForms
Name constant for the GrammarForms setting, for use with Config::get()
Service locator for MediaWiki core services.
static getInstance()
Returns the global default instance of the top level service locator.