Go to the documentation of this file.
42 'translatewiki.net' =>
'n',
92 $lord = strtolower( $word );
94 if ( preg_match (
'/wiki$/', $lord ) ) {
97 if ( isset( self::$familygender[$lord] ) ) {
98 $gender = self::$familygender[$lord];
100 $case =
' ' . strtolower( $case );
101 if ( preg_match(
'/ [is]/', $case ) ) {
102 # däm WikiMaatplaz singe, dä Wikipeedija iere, däm Wikiwööterbooch singe
103 # dem/em WikiMaatplaz singe, de Wikipeedija iere, dem/em Wikiwööterbooch singe
104 # däm WikiMaatplaz sing, dä Wikipeedija ier, däm Wikiwööterbooch sing
105 # dem/em WikiMaatplaz sing, de Wikipeedija ier, dem/em Wikiwööterbooch sing
106 $word = ( preg_match(
'/ b/', $case )
107 ? ( $gender ==
'f' ?
'dä' :
'däm' )
108 : ( $gender ==
'f' ?
'de' :
'dem' )
109 ) .
' ' . $word .
' ' .
110 ( $gender ==
'f' ?
'ier' :
'sing' ) .
111 ( preg_match(
'/ m/', $case ) ?
'e' :
''
113 } elseif ( preg_match(
'/ e/', $case ) ) {
114 # en dämm WikiMaatPlaz, en dä Wikipeedija, en dämm Wikiwööterbooch
115 # em WikiMaatplaz, en de Wikipeedija, em Wikiwööterbooch
116 if ( preg_match(
'/ b/', $case ) ) {
117 $word =
'en ' . ( $gender ==
'f' ?
'dä' :
'däm' ) .
' ' . $word;
119 $word = ( $gender ==
'f' ?
'en de' :
'em' ) .
' ' . $word;
121 } elseif ( preg_match(
'/ [fv]/', $case ) || preg_match(
'/ [2jg]/', $case ) ) {
122 # vun däm WikiMaatplaz, vun dä Wikipeedija, vun däm Wikiwööterbooch
123 # vum WikiMaatplaz, vun de Wikipeedija, vum Wikiwööterbooch
124 if ( preg_match(
'/ b/', $case ) ) {
125 $word =
'vun ' . ( $gender ==
'f' ?
'dä' :
'däm' ) .
' ' . $word;
127 $word = ( $gender ==
'f' ?
'vun de' :
'vum' ) .
' ' . $word;
129 } elseif ( preg_match(
'/ [3d]/', $case ) ) {
130 # dämm WikiMaatPlaz, dä Wikipeedija, dämm Wikiwööterbooch
131 # dem/em WikiMaatplaz, de Wikipeedija, dem/em Wikiwööterbooch
132 if ( preg_match(
'/ b/', $case ) ) {
133 $word = ( $gender ==
'f' ?
'dää' :
'dämm' ) .
' ' . $word;
135 $word = ( $gender ==
'f' ?
'de' :
'dem' ) .
' ' . $word;
138 # dä WikiMaatPlaz, di Wikipeedija, dat Wikiwööterbooch
139 # der WikiMaatplaz, de Wikipeedija, et Wikiwööterbooch
140 if ( preg_match(
'/ b/', $case ) ) {
163 $word = $lord .
' ' . $word;
176 if ( !preg_match(
'/^\d{1,4}$/', $_ ) ) {
177 return strrev( (
string)preg_replace(
'/(\d{3})(?=\d)(?!\d*\.)/',
'$1,', strrev( $_ ) ) );
193 if ( is_string( $forms ) ) {
196 if ( !count( $forms ) ) {
203 } elseif (
$count == 0 ) {
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
preConvertPlural($forms, $count)
Checks that convertPlural was given an array and pads it to requested amount of forms by copying the ...
convertPlural( $count, $forms)
Handle cases of (1, other, 0) or (1, other)
convertGrammar( $word, $case)
Convert from the nominative form of a noun to other cases.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
handleExplicitPluralForms( $count, array $forms)
Handles explicit plural forms for Language::convertPlural()
commafy( $_)
Avoid grouping whole numbers between 0 to 9999.
Internationalisation code.