}
function checkTitleEncoding( $s ) {
- global $wgInputEncoding;
# Check for non-UTF-8 URLs; assume they are WinLatin2
$ishigh = preg_match( '/[\x80-\xff]/', $s);
}
function getMessage( $key ) {
- global $wgAllMessagesCsb, $wgAllMessagesEn;
+ global $wgAllMessagesCsb;
if( isset( $wgAllMessagesCsb[$key] ) ) {
return $wgAllMessagesCsb[$key];
} else {
function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
- global $wgUser;
-
if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
$datePreference = $this->dateFormat( $format );
}
function checkTitleEncoding( $s ) {
- global $wgInputEncoding;
-
# Check for X-system backwards-compatibility URLs
$ishigh = preg_match( '/[\x80-\xff]/', $s);
$isutf = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
* @return string
*/
function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
- global $wgAmericanDates, $wgUser;
+ global $wgAmericanDates;
if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
}
function getMessage( $key ) {
- global $wgAllMessagesFr, $wgAllMessagesEn;
+ global $wgAllMessagesFr;
if( isset( $wgAllMessagesFr[$key] ) ) {
return $wgAllMessagesFr[$key];
} else {
* @return string
*/
function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
- global $wgUser;
if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
}
function date( $ts, $adj = false, $format = true) {
- global $wgUser;
if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
$format = $this->dateFormat($format);
function stripForSearch( $string ) {
# MySQL fulltext index doesn't grok utf-8, so we
# need to fold cases and convert to hex
- global $wikiLowerChars;
$s = $string;
# Strip known punctuation ?
}
function getMessage( $key ) {
- global $wgAllMessagesKu, $wgAllMessagesEn;
+ global $wgAllMessagesKu;
if( isset( $wgAllMessagesKu[$key] ) ) {
return $wgAllMessagesKu[$key];
} else {
}
function time($ts, $adj = false, $format = true) {
- global $wgUser;
if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
$format = $this->dateFormat($format);
class LanguageOs extends LanguageRu {
function LanguageOs() {
+ #Â FIXME: Are the globals really used ?
global $wgNamespaceNamesOs, $wgMetaNamespace;
LanguageUtf8::LanguageUtf8();
}
# matter if they are wrong sometimes. Just add a special case for your site name if necessary.
#join and array_slice instead mb_substr
-
+ $ar = array();
preg_match_all( '/./us', $word, $ar );
if (!preg_match("/[a-zA-Z_]/us", $word))
switch ( $case ) {
}
function getMessage( $key ) {
- global $wgAllMessagesSu, $wgAllMessagesEn;
+ global $wgAllMessagesSu;
if( isset( $wgAllMessagesSu[$key] ) ) {
return $wgAllMessagesSu[$key];
} else {
class LanguageUdm extends LanguageRu {
function LanguageUdm() {
+ # FIXME are the globals really used?
global $wgNamespaceNamesUdm, $wgMetaNamespace;
LanguageUtf8::LanguageUtf8();
}
}
function date( $ts, $adj = false, $format = true, $timecorrection = false ) {
- global $wgAmericanDates, $wgUser;
+ global $wgAmericanDates;
if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
}
function getMessage( $key ) {
- global $wgAllMessagesVi, $wgAllMessagesEn;
+ global $wgAllMessagesVi;
if( isset( $wgAllMessagesVi[$key] ) ) {
return $wgAllMessagesVi[$key];
} else {
### "<day> d' <monthname>" for months starting with a vowel
###
function date( $ts, $adj = false ) {
- global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
if ( $adj ) { $ts = $this->userAdjust( $ts ); }
class LanguageXal extends LanguageUtf8 {
function LanguageXal() {
+ # FIXME are the globas really used?
global $wgNamespaceNamesXal, $wgMetaNamespace;
LanguageUtf8::LanguageUtf8();
}