<?php
/** Czech (česky)
*
- * @package MediaWiki
- * @subpackage Language
+ * @addtogroup Language
*/
#--------------------------------------------------------------------------
# allowed values for $case:
# 1sg, 2sg, ..., 7sg -- nominative, genitive, ... (in singular)
switch ( $word ) {
+ case 'Wikibooks':
+ case 'Wikiknihy':
+ switch ( $case ) {
+ case '2sg':
+ return 'Wikiknih';
+ case '3sg':
+ return 'Wikiknihám';
+ case '6sg';
+ return 'Wikiknihách';
+ case '7sg':
+ return 'Wikiknihami';
+ default:
+ return 'Wikiknihy';
+ }
case 'Wikipedia':
case 'Wikipedie':
switch ( $case ) {
case 'Wiktionary':
case 'Wikcionář':
+ case 'Wikislovník':
switch ( $case ) {
case '2sg':
- return 'Wikcionáře';
case '3sg':
case '5sg';
case '6sg';
- return 'Wikcionáři';
+ return 'Wikislovníku';
case '7sg':
- return 'Wikcionářem';
+ return 'Wikislovníkem';
default:
- return 'Wikcionář';
+ return 'Wikislovník';
}
case 'Wikiquote':
return $word;
}
- # Plural form transformations, needed for some languages.
- # Invoked by {{plural:count|wordform1|wordform2|wordform3}}
- function convertPlural( $count, $wordform1, $wordform2, $wordform3, $w4, $w5) {
- $count = str_replace( '\xc2\xa0', '', $count );
- switch ( $count ) {
- case 1:
- return $wordform1;
+ function convertPlural( $count, $forms ) {
+ if ( !count($forms) ) { return ''; }
+ $forms = $this->preConvertPlural( $forms, 3 );
- case 2:
- case 3:
- case 4:
- return $wordform2;
+ switch ( $count ) {
+ case 1: return $forms[0];
+ case 2:
+ case 3:
+ case 4: return $forms[1];
+ default: return $forms[2];
+ }
+ }
- default:
- return $wordform3;
- };
- }
}
-
-?>