24 if ( isset( $grammarForms[
'сu'][$case][$word] ) ) {
25 return $grammarForms[
'сu'][$case][$word];
28 # These rules are not perfect, but they are currently only used for
29 # site names, so it doesn't matter if they are wrong sometimes.
30 # Just add a special case for your site name if necessary.
32 # join and array_slice instead mb_substr
34 preg_match_all(
'/./us', $word, $ar );
35 if ( !preg_match(
"/[a-zA-Z_]/u", $word ) ) {
37 case 'genitive': # родительный падеж
43 if ( implode(
'', array_slice( $ar[0], -2 ) ) ==
'ї' ) {
44 return implode(
'', array_slice( $ar[0], 0, -2 ) ) .
'їѩ';
47 case 'accusative': # винительный падеж
58class_alias( LanguageCu::class,
'LanguageCu' );
A class containing constants representing the names of configuration variables.
const GrammarForms
Name constant for the GrammarForms setting, for use with Config::get()