* @param string $wordform3 (optional)
* @return string
*/
- function convertPlural( $count, $wordform1, $wordform2, $wordform3) {
- return $count == '1' ? $wordform1 : $wordform2;
+ function convertPlural( $count, $w1, $w2, $w3) {
+ return $count == '1' ? $w1 : $w2;
}
/**
return 'windows-1256';
}
- function getMagicWords() {
+ function &getMagicWords() {
global $wgMagicWordsAr;
return $wgMagicWordsAr;
}
* Exports $wgMagicWordsBg
* @return array
*/
- function getMagicWords() {
+ function &getMagicWords() {
global $wgMagicWordsBg;
return $wgMagicWordsBg;
}
return $wgSkinNamesBr;
}
-
- function date( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$d = (0 + substr( $ts, 6, 2 )) . " " .
return $d;
}
- function timeanddate( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) {
return $this->date( $ts, $adj ) . " da " . $this->time( $ts, $adj );
}
return $wgAllMessagesCy;
}
- function getMagicWords() {
+ function &getMagicWords() {
global $wgMagicWordsCy, $wgMagicWordsEn;
return $wgMagicWordsCy + $wgMagicWordsEn;
}
return $wgDateFormatsDa;
}
- function date( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$d = (0 + substr( $ts, 6, 2 )) . ". " .
return $d;
}
- function timeanddate( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) {
return $this->date( $ts, $adj ) . " kl. " . $this->time( $ts, $adj );
}
return "iso8859-2";
}
- # localised date and time
- function date( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$d = substr( $ts, 0, 4 ) . ". " .
return $d;
}
- function timeanddate( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) {
return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
}
return $this->mMessagesIs;
}
- function date( $ts, $adj = false, $format = true) {
+ /**
+ * $timecorrection is for compatibility with Language::date
+ */
+ function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
$format = $this->dateFormat($format);
}
- function time($ts, $adj = false, $format = true) {
+ /**
+ * $timecorrection is for compatibility with language::time
+ */
+ function time($ts, $adj = false, $format = true, $timecorrection = false) {
global $wgUser;
if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
}
- function timeanddate( $ts, $adj = false, $format = true) {
+ /**
+ * $timecorrection is for compatibility with Language::date
+ */
+ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) {
global $wgUser;
$format = $this->dateFormat($format);
return $this->mMessagesKo;
}
- function date( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$year = (int)substr( $ts, 0, 4 );
}
- function time($ts, $adj = false, $format = true) {
+ /**
+ * $timecorrection is for compatibility with language::time
+ */
+ function time($ts, $adj = false, $format = true, $timecorrection = false) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
$format = $this->dateFormat($format);
}
- function date( $ts, $adj = false, $format = true) {
+ /**
+ * $timecorrection is for compatibility with Language::date
+ */
+ function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
global $wgUser;
if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
$format = $this->dateFormat($format);
}
- function timeanddate( $ts, $adj = false, $format = true) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) {
global $wgUser;
$format = $this->dateFormat($format);
* Exports $wgMagicWordsPt
* @return array
*/
- function getMagicWords() {
+ function &getMagicWords() {
global $wgMagicWordsPt;
return $wgMagicWordsPt;
}
//only for quotation mark
function linkPrefixExtension() { return true; }
- function getMagicWords() {
+ function &getMagicWords() {
global $wgMagicWordsRu;
return $wgMagicWordsRu;
}
/* rules should be defined as -{ekavian | iyekavian-} -or-
-{code:text | code:text | ...}-
*/
- function parseManualRule($rule, $flags) {
+ function parseManualRule($rule, $flags=array()) {
$echoices = preg_split("/(<[^>]+>)/",$rule,-1,PREG_SPLIT_DELIM_CAPTURE);
$choices = array();
* Exports $wgMagicWordsSr_ec
* @return array
*/
- function getMagicWords() {
+ function &getMagicWords() {
global $wgMagicWordsSr_ec;
return $wgMagicWordsSr_ec;
}
* Exports $wgMagicWordsSr_el
* @return array
*/
- function getMagicWords() {
+ function &getMagicWords() {
global $wgMagicWordsSr_el;
return $wgMagicWordsSr_el;
}
return $wgDateFormatsTt;
}
-
- function date( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$d = (0 + substr( $ts, 6, 2 )) . ". " .
return $d;
}
- function time( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with language::time
+ */
+ function time($ts, $adj = false, $format = true, $timecorrection = false) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
return $t;
}
- function timeanddate( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) {
return $this->date( $ts, $adj ) . ", " . $this->time( $ts, $adj );
}
return false;
}
- function date( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
$d = substr( $ts, 0, 4 ) . "年" .
return $d;
}
- function timeanddate( $ts, $adj = false ) {
+ /**
+ * $format and $timecorrection are for compatibility with Language::date
+ */
+ function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false ) {
return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
}