Language Class Reference
[Language]

Internationalisation code. More...

Inherited by LanguageAr, LanguageAz, LanguageBat_smg, LanguageBe, LanguageBe_tarask, LanguageBg, LanguageBs, LanguageCs, LanguageCu, LanguageCy, LanguageDsb, LanguageEo, LanguageEt, LanguageFi, LanguageFr, LanguageGa, LanguageGv, LanguageHe, LanguageHr, LanguageHsb, LanguageHu, LanguageHy, LanguageJa, LanguageKaa, LanguageKk_cyrl, LanguageKm, LanguageKsh, LanguageKu_ku, LanguageLa, LanguageLt, LanguageLv, LanguageMt, LanguageMy, LanguagePl, LanguagePt_br, LanguageRu, LanguageSk, LanguageSl, LanguageSr_ec, LanguageSr_el, LanguageTg, LanguageTr, LanguageTyv, LanguageUk, LanguageWa, LanguageYue, and LanguageZh_hans.

List of all members.

Public Member Functions

 __construct ()
 __destruct ()
 Reduce memory usage.
 initContLang ()
 Hook which will be called if this is the content language.
 getDefaultUserOptions ()
 getFallbackLanguageCode ()
 getBookstoreList ()
 Exports $wgBookstoreListEn.
 getNamespaces ()
 getFormattedNamespaces ()
 A convenience function that returns the same thing as getNamespaces() except with the array values changed to ' ' where it found '_', useful for producing output to be displayed e.g.
 getNsText ($index)
 Get a namespace value by key $mw_ns = $wgContLang->getNsText( NS_MEDIAWIKI ); echo $mw_ns; // prints 'MediaWiki' .
 getFormattedNsText ($index)
 A convenience function that returns the same thing as getNsText() except with '_' changed to ' ', useful for producing output.
 getLocalNsIndex ($text)
 Get a namespace key by value, case insensitive.
 getNsIndex ($text)
 Get a namespace key by value, case insensitive.
 getVariantname ($code)
 short names for language variants used for language conversion links.
 specialPage ($name)
 getQuickbarSettings ()
 getMathNames ()
 getDatePreferences ()
 getDateFormats ()
 getDefaultDateFormat ()
 getDatePreferenceMigrationMap ()
 getImageFile ($image)
 getDefaultUserOptionOverrides ()
 getExtraUserToggles ()
 getUserToggle ($tog)
 getMessageFromDB ($msg)
 Get a message from the MediaWiki namespace.
 getLanguageName ($code)
 getMonthName ($key)
 getMonthNameGen ($key)
 getMonthAbbreviation ($key)
 getWeekdayName ($key)
 getWeekdayAbbreviation ($key)
 getIranianCalendarMonthName ($key)
 getHebrewCalendarMonthName ($key)
 getHebrewCalendarMonthNameGen ($key)
 getHijriCalendarMonthName ($key)
 userAdjust ($ts, $tz=false)
 Used by date() and time() to adjust the time output.
 sprintfDate ($format, $ts)
 This is a workalike of PHP's date() function, but with better internationalisation, a reduced set of format characters, and a better escaping format.
 dateFormat ($usePrefs=true)
 This is meant to be used by time(), date(), and timeanddate() to get the date preference they're supposed to use, it should be used in all children.
 date ($ts, $adj=false, $format=true, $timecorrection=false)
 time ($ts, $adj=false, $format=true, $timecorrection=false)
 timeanddate ($ts, $adj=false, $format=true, $timecorrection=false)
 getMessage ($key)
 getAllMessages ()
 iconv ($in, $out, $string)
 ucwordbreaksCallbackAscii ($matches)
 ucwordbreaksCallbackMB ($matches)
 ucCallback ($matches)
 lcCallback ($matches)
 ucwordsCallbackMB ($matches)
 ucwordsCallbackWiki ($matches)
 ucfirst ($str)
 uc ($str, $first=false)
 lcfirst ($str)
 lc ($str, $first=false)
 isMultibyte ($str)
 ucwords ($str)
 ucwordbreaks ($str)
 caseFold ($s)
 Return a case-folded representation of $s.
 checkTitleEncoding ($s)
 fallback8bitEncoding ()
 stripForSearch ($string)
 Some languages have special punctuation to strip out or characters which need to be converted for MySQL's indexing to grok it correctly.
 convertForSearchResult ($termsArray)
 firstChar ($s)
 Get the first character of a string.
 initEncoding ()
 recodeForEdit ($s)
 recodeInput ($s)
 isRTL ()
 For right-to-left language support.
 getDirMark ()
 A hidden direction mark (LRM or RLM), depending on the language direction.
 getArrow ()
 An arrow, depending on the language direction.
 linkPrefixExtension ()
 To allow "foo[[bar]]" to extend the link over the whole word "foobar".
getMagicWords ()
 getMagic (&$mw)
 addMagicWordsByLang ($newWords)
 Add magic words to the extension array.
 getSpecialPageAliases ()
 Get special page names, as an associative array case folded alias => real name.
 fixSpecialPageAliases ($mixed)
 Function to fix special page aliases.
 emphasize ($text)
 Italic is unsuitable for some languages.
 formatNum ($number, $nocommafy=false)
 Normally we output all numbers in plain en_US style, that is 293,291.235 for twohundredninetythreethousand-twohundredninetyone point twohundredthirtyfive.
 parseFormattedNumber ($number)
 commafy ($_)
 Adds commas to a given number.
 digitTransformTable ()
 separatorTransformTable ()
 listToText ($l)
 Take a list of strings and build a locale-friendly comma-separated list, using the local comma-separator message.
 commaList ($list)
 Take a list of strings and build a locale-friendly comma-separated list, using the local comma-separator message.
 semicolonList ($list)
 Take a list of strings and build a locale-friendly semicolon-separated list, using the local semicolon-separator message.
 pipeList ($list)
 Same as commaList, but separate it with the pipe instead.
 truncate ($string, $length, $ellipsis= '...')
 Truncate a string to a specified length in bytes, appending an optional string (e.g.
 convertGrammar ($word, $case)
 Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} in a message.
 gender ($gender, $forms)
 Provides an alternative text depending on specified gender.
 convertPlural ($count, $forms)
 Plural form transformations, needed for some languages.
 translateBlockExpiry ($str)
 For translaing of expiry times.
 segmentForDiff ($text)
 languages like Chinese need to be segmented in order for the diff to be of any use
 unsegmentForDiff ($text)
 and unsegment to show the result
 convert ($text, $isTitle=false)
 parserConvert ($text, &$parser)
 hasVariants ()
 armourMath ($text)
 convertHtml ($text, $isTitle=false)
 Perform output conversion on a string, and encode for safe HTML output.
 convertCategoryKey ($key)
 getVariants ()
 get the list of variants supported by this langauge see sample implementation in LanguageZh.php
 getPreferredVariant ($fromUser=true)
 findVariantLink (&$link, &$nt, $ignoreOtherCond=false)
 if a language supports multiple variants, it is possible that non-existing link in one variant actually exists in another variant.
 convertLinkToAllVariants ($text)
 If a language supports multiple variants, converts text into an array of all possible variants of the text: 'variant' => text in that variant.
 getExtraHashOptions ()
 returns language specific options used by User::getPageRenderHash() for example, the preferred language variant
 getParsedTitle ()
 for languages that support multiple variants, the title of an article may be displayed differently in different variants.
 markNoConversion ($text, $noParse=false)
 Enclose a string with the "no conversion" tag.
 linkTrail ()
 A regular expression to match legal word-trailing characters which should be merged onto a link of the form [[foo]]bar.
 getLangObj ()
 getCode ()
 Get the RFC 3066 code for this language object.
 setCode ($code)
 load ()
 Load localisation data for this object.
 fixUpSettings ()
 Do any necessary post-cache-load settings adjustment.
 fixVariableInNamespace ($talk)
 replaceGrammarInNamespace ($m)
 formatTimePeriod ($seconds)
 formatBitrate ($bps)
 formatSize ($size)
 Format a size in bytes for output, using an appropriate unit (B, KB, MB or GB) according to the magnitude in question.

Static Public Member Functions

static factory ($code)
 Get a cached language object for a given language code.
static getLanguageNames ($customisedOnly=false)
 Get language names, indexed by code.
static romanNumeral ($num)
 Roman number formatting up to 3000.
static hebrewNumeral ($num)
 Hebrew Gematria number formatting up to 9999.
static getFileName ($prefix= 'Language', $code, $suffix= '.php')
static getMessagesFileName ($code)
static getClassFileName ($code)
static getLocalisationArray ($code, $disableCache=false)
static loadLocalisation ($code, $disableCache=false)
 Load localisation data for a given code into the static cache.
static isLocalisationOutOfDate ($cache)
 Test if a given localisation cache is out of date with respect to the source Messages files.
static getFallbackFor ($code)
 Get the fallback for a given language.
static getMessagesFor ($code)
 Get all messages for a given language.
static getMessageFor ($key, $code)
 Get a message for a given language.
static getCaseMaps ()

Public Attributes

 $mConverter
 $mVariants
 $mCode
 $mLoaded = false
 $mMagicExtensions = array()
 $mMagicHookDone = false

Static Public Attributes

static $mLocalisationKeys
static $mMergeableMapKeys
static $mMergeableListKeys = array( 'extraUserToggles' )
static $mMergeableAliasListKeys = array( 'specialPageAliases' )
static $mLocalisationCache = array()
static $mLangObjCache = array()
static $mWeekdayMsgs
static $mWeekdayAbbrevMsgs
static $mMonthMsgs
static $mMonthGenMsgs
static $mMonthAbbrevMsgs
static $mIranianCalendarMonthMsgs
static $mHebrewCalendarMonthMsgs
static $mHebrewCalendarMonthGenMsgs
static $mHijriCalendarMonthMsgs

Protected Member Functions

 stripForSearchCallback ($matches)
 Armor a case-folded UTF-8 string to get through MySQL's fulltext search without being mucked up by funny charset settings or anything else of the sort.
 minSearchLength ()
 Check MySQL server's ft_min_word_len setting so we know if we need to pad short words.
 preConvertPlural ($forms, $count)
 Checks that convertPlural was given an array and pads it to requested amound of forms by copying the last one.

Static Protected Member Functions

static newFromCode ($code)
 Create a language object for a given language code.

Static Private Member Functions

static tsToIranian ($ts)
 Algorithm by Roozbeh Pournader and Mohammad Toossi to convert Gregorian dates to Iranian dates.
static tsToHijri ($ts)
 Converting Gregorian dates to Hijri dates.
static tsToHebrew ($ts)
 Converting Gregorian dates to Hebrew dates.
static hebrewYearStart ($year)
 This calculates the Hebrew year start, as days since 1 September.
static tsToThai ($ts)
 Algorithm to convert Gregorian dates to Thai solar dates.

Static Private Attributes

static $GREG_DAYS = array( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 )
static $IRANIAN_DAYS = array( 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29 )


Detailed Description

Internationalisation code.

Definition at line 55 of file Language.php.


Constructor & Destructor Documentation

Language::__construct (  ) 

Reimplemented in LanguageGan, LanguageKk, LanguageKu, LanguageSr, LanguageTg, and LanguageZh.

Definition at line 182 of file Language.php.

Language::__destruct (  ) 

Reduce memory usage.

Definition at line 195 of file Language.php.

References $name.


Member Function Documentation

Language::addMagicWordsByLang ( newWords  ) 

Add magic words to the extension array.

Definition at line 1790 of file Language.php.

References $code, getCode(), and getFallbackFor().

Language::armourMath ( text  ) 

Definition at line 2200 of file Language.php.

References $text.

Language::caseFold ( s  ) 

Return a case-folded representation of $s.

This is a representation such that caseFold($s1)==caseFold($s2) if $s1 and $s2 are the same except for the case of their characters. It is not necessary for the value returned to make sense when displayed.

Do *not* perform any other normalisation in this function. If a caller uses this function when it should be using a more general normalisation function, then fix the caller.

Definition at line 1511 of file Language.php.

References $s, and uc().

Language::checkTitleEncoding ( s  ) 

Reimplemented in LanguageEo.

Definition at line 1515 of file Language.php.

References $s, fallback8bitEncoding(), iconv(), and wfDebugDieBacktrace().

Language::commafy ( _  ) 

Adds commas to a given number.

Parameters:
$_ mixed
Returns:
string

Reimplemented in LanguageBg, LanguageEt, LanguageHy, LanguageKaa, LanguageKk_cyrl, LanguageKm, LanguageKsh, LanguageKu_ku, LanguageMy, LanguageRu, and LanguageUk.

Definition at line 1938 of file Language.php.

Referenced by formatNum().

Language::commaList ( list  ) 

Take a list of strings and build a locale-friendly comma-separated list, using the local comma-separator message.

Parameters:
$list array of strings to put in a comma list
Returns:
string

Definition at line 1987 of file Language.php.

References wfMsgExt().

Language::convert ( text,
isTitle = false 
)

Definition at line 2185 of file Language.php.

References $text.

Referenced by convertHtml().

Language::convertCategoryKey ( key  ) 

Definition at line 2216 of file Language.php.

References $key.

Language::convertForSearchResult ( termsArray  ) 

Reimplemented in LanguageGan, and LanguageZh.

Definition at line 1616 of file Language.php.

Language::convertGrammar ( word,
case 
)

Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} in a message.

Parameters:
$word string
$case string
Returns:
string

Reimplemented in LanguageBs, LanguageCu, LanguageDsb, LanguageFi, LanguageGa, LanguageHe, LanguageHsb, LanguageHu, LanguageHy, LanguageKaa, LanguageKk, LanguageLa, LanguageRu, LanguageSl, LanguageTyv, and LanguageUk.

Definition at line 2076 of file Language.php.

References $wgGrammarForms, and getCode().

Referenced by replaceGrammarInNamespace().

Language::convertHtml ( text,
isTitle = false 
)

Perform output conversion on a string, and encode for safe HTML output.

Parameters:
$text String
$isTitle Bool -- wtf?
Returns:
string
Todo:
this should get integrated somewhere sane

Definition at line 2212 of file Language.php.

References $text, and convert().

Language::convertLinkToAllVariants ( text  ) 

If a language supports multiple variants, converts text into an array of all possible variants of the text: 'variant' => text in that variant.

Definition at line 2256 of file Language.php.

References $text.

Language::convertPlural ( count,
forms 
)

Plural form transformations, needed for some languages.

For example, there are 3 form of plural in Russian and Polish, depending on "count mod 10". See [[w:Plural]] For English it is pretty simple.

Invoked by putting {{plural:count|wordform1|wordform2}} or {{plural:count|wordform1|wordform2|wordform3}}

Example: {{plural:{{NUMBEROFARTICLES}}|article|articles}}

Parameters:
$count Integer: non-localized number
$forms Array: different plural forms
Returns:
string Correct form of plural for $count in this language

Reimplemented in LanguageAr, LanguageBat_smg, LanguageBe, LanguageBe_tarask, LanguageBs, LanguageCs, LanguageCu, LanguageCy, LanguageDsb, LanguageFr, LanguageGv, LanguageHe, LanguageHr, LanguageHsb, LanguageHy, LanguageKsh, LanguageLt, LanguageLv, LanguageMt, LanguagePl, LanguagePt_br, LanguageRu, LanguageSk, LanguageSl, LanguageSr_ec, LanguageSr_el, and LanguageUk.

Definition at line 2115 of file Language.php.

References $count, and preConvertPlural().

Language::date ( ts,
adj = false,
format = true,
timecorrection = false 
)

Parameters:
$ts Mixed: the time format which needs to be turned into a date('YmdHis') format with wfTimestamp(TS_MW,$ts)
$adj Bool: whether to adjust the time output according to the user configured offset ($timecorrection)
$format Mixed: true to use user's date format preference
$timecorrection String: the time offset as returned by validateTimeZone() in Special:Preferences
Returns:
string

Reimplemented in LanguageWa.

Definition at line 1269 of file Language.php.

References $ts, dateFormat(), load(), sprintfDate(), and userAdjust().

Referenced by sprintfDate(), LanguageFi::translateBlockExpiry(), and userAdjust().

Language::dateFormat ( usePrefs = true  ) 

This is meant to be used by time(), date(), and timeanddate() to get the date preference they're supposed to use, it should be used in all children.

function timeanddate([...], $format = true) { $datePreference = $this->dateFormat($format); [...] }

Parameters:
$usePrefs Mixed: if true, the user's preference is used if false, the site/language default is used if int/string, assumed to be a format.
Returns:
string

Definition at line 1237 of file Language.php.

References $options, $wgUser, and User::getDefaultOptions().

Referenced by date(), LanguageWa::date(), time(), timeanddate(), and LanguageWa::timeanddate().

Language::digitTransformTable (  ) 

Definition at line 1942 of file Language.php.

References load().

Referenced by formatNum(), and parseFormattedNumber().

Language::emphasize ( text  ) 

Italic is unsuitable for some languages.

Parameters:
$text String: the text to be emphasized.
Returns:
string

Reimplemented in LanguageJa.

Definition at line 1877 of file Language.php.

static Language::factory ( code  )  [static]

Get a cached language object for a given language code.

Definition at line 136 of file Language.php.

References $code, and newFromCode().

Referenced by StubUserLang::_newObject(), StubContLang::_newObject(), ApiQueryAllmessages::execute(), LoginForm::processLogin(), ParserTest::setupGlobals(), and wfGetLangObj().

Language::fallback8bitEncoding (  ) 

Definition at line 1530 of file Language.php.

References load().

Referenced by checkTitleEncoding().

Language::findVariantLink ( &$  link,
&$  nt,
ignoreOtherCond = false 
)

if a language supports multiple variants, it is possible that non-existing link in one variant actually exists in another variant.

this function tries to find it. See e.g. LanguageZh.php

Parameters:
$link String: the name of the link
$nt Mixed: the title object of the link
boolean $ignoreOtherCond: to disable other conditions when we need to transclude a template or update a category's link
Returns:
null the input parameters may be modified upon return

Definition at line 2247 of file Language.php.

Language::firstChar ( s  ) 

Get the first character of a string.

Parameters:
$s string
Returns:
string

Definition at line 1628 of file Language.php.

References $code, $s, and utf8ToCodepoint().

Language::fixSpecialPageAliases ( mixed  ) 

Function to fix special page aliases.

Will convert the first letter to upper case and spaces to underscores. Can be given a full aliases array, in which case it will recursively fix all aliases.

Definition at line 1862 of file Language.php.

References ucfirst().

Referenced by getSpecialPageAliases().

Language::fixUpSettings (  ) 

Do any necessary post-cache-load settings adjustment.

Definition at line 2583 of file Language.php.

References $name, $wgAmericanDates, $wgExtraNamespaces, $wgMetaNamespace, $wgMetaNamespaceTalk, $wgNamespaceAliases, fixVariableInNamespace(), lc(), wfProfileIn(), and wfProfileOut().

Referenced by load().

Language::fixVariableInNamespace ( talk  ) 

Definition at line 2634 of file Language.php.

References $wgMetaNamespace.

Referenced by fixUpSettings().

Language::formatBitrate ( bps  ) 

Definition at line 2688 of file Language.php.

References formatNum().

Language::formatNum ( number,
nocommafy = false 
)

Normally we output all numbers in plain en_US style, that is 293,291.235 for twohundredninetythreethousand-twohundredninetyone point twohundredthirtyfive.

However this is not sutable for all languages, some such as Pakaran want ੨੯੩,੨੯੫.੨੩੫ and others such as Icelandic just want to use commas instead of dots, and dots instead of commas like "293.291,235".

An example of this function being called: wfMsg( 'message', $wgLang->formatNum( $num ) )

See LanguageGu.php for the Gujarati implementation and $separatorTransformTable on MessageIs.php for the , => . and . => , implementation.

Todo:
check if it's viable to use localeconv() for the decimal separator thing.
Parameters:
$number Mixed: the string to be formatted, should be an integer or a floating point number.
$nocommafy Bool: set to true for special numbers like dates
Returns:
string

Definition at line 1905 of file Language.php.

References $s, $wgTranslateNumerals, commafy(), digitTransformTable(), and separatorTransformTable().

Referenced by formatBitrate(), formatSize(), formatTimePeriod(), and sprintfDate().

Language::formatSize ( size  ) 

Format a size in bytes for output, using an appropriate unit (B, KB, MB or GB) according to the magnitude in question.

Parameters:
$size Size to format
Returns:
string Plain text (not HTML)

Definition at line 2710 of file Language.php.

References $msg, $size, $text, formatNum(), and getMessageFromDB().

Language::formatTimePeriod ( seconds  ) 

Definition at line 2670 of file Language.php.

References formatNum(), and wfMsg().

Language::gender ( gender,
forms 
)

Provides an alternative text depending on specified gender.

Usage {{gender:username|masculine|feminine|neutral}}. username is optional, in which case the gender of current user is used, but only in (some) interface messages; otherwise default gender is used. If second or third parameter are not specified, masculine is used. These details may be overriden per language.

Definition at line 2092 of file Language.php.

References preConvertPlural().

Language::getAllMessages (  ) 

Definition at line 1338 of file Language.php.

References load().

Language::getArrow (  ) 

An arrow, depending on the language direction.

Returns:
string

Definition at line 1738 of file Language.php.

References isRTL().

Language::getBookstoreList (  ) 

Exports $wgBookstoreListEn.

Returns:
array

Definition at line 224 of file Language.php.

References load().

static Language::getCaseMaps (  )  [static]

static Language::getClassFileName ( code  )  [static]

Definition at line 2329 of file Language.php.

References $code, $IP, and getFileName().

Language::getCode (  ) 

Get the RFC 3066 code for this language object.

Definition at line 2312 of file Language.php.

Referenced by addMagicWordsByLang(), convertGrammar(), LanguageHu::convertGrammar(), getMagic(), getSpecialPageAliases(), and load().

Language::getDateFormats (  ) 

Definition at line 346 of file Language.php.

References load().

Language::getDatePreferenceMigrationMap (  ) 

Definition at line 356 of file Language.php.

References load().

Language::getDatePreferences (  ) 

Definition at line 341 of file Language.php.

References load().

Language::getDefaultDateFormat (  ) 

Definition at line 351 of file Language.php.

References load().

Language::getDefaultUserOptionOverrides (  ) 

Definition at line 366 of file Language.php.

References load().

Language::getDefaultUserOptions (  ) 

Deprecated:
Use User::getDefaultOptions()
Returns:
array

Definition at line 211 of file Language.php.

References User::getDefaultOptions(), and wfDeprecated().

Language::getDirMark (  ) 

A hidden direction mark (LRM or RLM), depending on the language direction.

Returns:
string

Definition at line 1729 of file Language.php.

References isRTL().

Language::getExtraHashOptions (  ) 

returns language specific options used by User::getPageRenderHash() for example, the preferred language variant

Returns:
string

Definition at line 2267 of file Language.php.

Language::getExtraUserToggles (  ) 

Definition at line 376 of file Language.php.

References load().

static Language::getFallbackFor ( code  )  [static]

Get the fallback for a given language.

Definition at line 2515 of file Language.php.

References $code, $wgMemc, loadLocalisation(), and wfMemcKey().

Referenced by addMagicWordsByLang(), getFallbackLanguageCode(), and newFromCode().

Language::getFallbackLanguageCode (  ) 

Definition at line 216 of file Language.php.

References getFallbackFor().

static Language::getFileName ( prefix = 'Language',
code,
suffix = '.php' 
) [static]

Definition at line 2320 of file Language.php.

References $code, $prefix, $suffix, and ucfirst().

Referenced by getClassFileName(), and getMessagesFileName().

Language::getFormattedNamespaces (  ) 

A convenience function that returns the same thing as getNamespaces() except with the array values changed to ' ' where it found '_', useful for producing output to be displayed e.g.

in <select> forms.

Returns:
array

Definition at line 245 of file Language.php.

References $ns, and getNamespaces().

Language::getFormattedNsText ( index  ) 

A convenience function that returns the same thing as getNsText() except with '_' changed to ' ', useful for producing output.

Returns:
array

Definition at line 275 of file Language.php.

References $ns, and getNsText().

Language::getHebrewCalendarMonthName ( key  ) 

Definition at line 454 of file Language.php.

References $key, and getMessageFromDB().

Referenced by sprintfDate().

Language::getHebrewCalendarMonthNameGen ( key  ) 

Definition at line 458 of file Language.php.

References $key, and getMessageFromDB().

Referenced by sprintfDate().

Language::getHijriCalendarMonthName ( key  ) 

Definition at line 462 of file Language.php.

References $key, and getMessageFromDB().

Referenced by sprintfDate().

Language::getImageFile ( image  ) 

Definition at line 361 of file Language.php.

References load().

Language::getIranianCalendarMonthName ( key  ) 

Definition at line 450 of file Language.php.

References $key, and getMessageFromDB().

Referenced by sprintfDate().

Language::getLangObj (  ) 

Definition at line 2305 of file Language.php.

Language::getLanguageName ( code  ) 

Definition at line 422 of file Language.php.

References $code, and getLanguageNames().

static Language::getLanguageNames ( customisedOnly = false  )  [static]

static Language::getLocalisationArray ( code,
disableCache = false 
) [static]

Definition at line 2334 of file Language.php.

References $code, and loadLocalisation().

Language::getLocalNsIndex ( text  ) 

Get a namespace key by value, case insensitive.

Only matches namespace names for the current language, not the canonical ones defined in Namespace.php.

Parameters:
$text String
Returns:
mixed An integer if $text is a valid value otherwise false

Definition at line 288 of file Language.php.

References $text, lc(), and load().

Language::getMagic ( &$  mw  ) 

Definition at line 1758 of file Language.php.

References $magicWords, getCode(), getMagicWords(), and wfRunHooks().

& Language::getMagicWords (  ) 

Definition at line 1752 of file Language.php.

References load().

Referenced by getMagic().

Language::getMathNames (  ) 

Definition at line 336 of file Language.php.

References load().

Language::getMessage ( key  ) 

Definition at line 1333 of file Language.php.

References $key, and load().

Referenced by getQuickbarSettings().

static Language::getMessageFor ( key,
code 
) [static]

Get a message for a given language.

Definition at line 2559 of file Language.php.

References $code, $key, and loadLocalisation().

Referenced by MessageCache::get().

Language::getMessageFromDB ( msg  ) 

static Language::getMessagesFileName ( code  )  [static]

Definition at line 2324 of file Language.php.

References $code, $IP, and getFileName().

Referenced by languages::loadFile(), loadLocalisation(), and MessageWriter::writeMessagesToFile().

static Language::getMessagesFor ( code  )  [static]

Get all messages for a given language.

Definition at line 2551 of file Language.php.

References $code, and loadLocalisation().

Referenced by ApiQueryAllmessages::execute(), and wfSpecialAllmessages().

Language::getMonthAbbreviation ( key  ) 

Definition at line 438 of file Language.php.

References $key, and getMessageFromDB().

Referenced by sprintfDate().

Language::getMonthName ( key  ) 

Definition at line 430 of file Language.php.

References $key, and getMessageFromDB().

Referenced by LanguageWa::date(), and sprintfDate().

Language::getMonthNameGen ( key  ) 

Definition at line 434 of file Language.php.

References $key, and getMessageFromDB().

Referenced by sprintfDate().

Language::getNamespaces (  ) 

Returns:
array

Definition at line 232 of file Language.php.

References load().

Referenced by getFormattedNamespaces(), and getNsText().

Language::getNsIndex ( text  ) 

Get a namespace key by value, case insensitive.

Canonical namespace names override custom ones defined for the current language.

Parameters:
$text String
Returns:
mixed An integer if $text is a valid value otherwise false

Definition at line 301 of file Language.php.

References $ns, $text, MWNamespace::getCanonicalIndex(), lc(), and load().

Language::getNsText ( index  ) 

Get a namespace value by key $mw_ns = $wgContLang->getNsText( NS_MEDIAWIKI ); echo $mw_ns; // prints 'MediaWiki' .

Parameters:
$index Int: the array key of the namespace to return
Returns:
mixed, string if the namespace value exists, otherwise false

Definition at line 263 of file Language.php.

References $ns, and getNamespaces().

Referenced by getFormattedNsText(), and specialPage().

Language::getParsedTitle (  ) 

for languages that support multiple variants, the title of an article may be displayed differently in different variants.

this function returns the apporiate title defined in the body of the article.

Returns:
string

Definition at line 2278 of file Language.php.

Language::getPreferredVariant ( fromUser = true  ) 

Language::getQuickbarSettings (  ) 

Definition at line 326 of file Language.php.

References getMessage().

Language::getSpecialPageAliases (  ) 

Get special page names, as an associative array case folded alias => real name.

Definition at line 1812 of file Language.php.

References $code, $file, $wgExtensionAliasesFiles, fixSpecialPageAliases(), getCode(), load(), and wfRunHooks().

Referenced by specialPage().

Language::getUserToggle ( tog  ) 

Definition at line 381 of file Language.php.

References getMessageFromDB().

Language::getVariantname ( code  ) 

short names for language variants used for language conversion links.

Parameters:
$code String
Returns:
string

Definition at line 314 of file Language.php.

References getMessageFromDB().

Language::getVariants (  ) 

get the list of variants supported by this langauge see sample implementation in LanguageZh.php

Returns:
array an array of language codes

Definition at line 2226 of file Language.php.

Referenced by hasVariants().

Language::getWeekdayAbbreviation ( key  ) 

Definition at line 446 of file Language.php.

References $key, and getMessageFromDB().

Referenced by sprintfDate().

Language::getWeekdayName ( key  ) 

Definition at line 442 of file Language.php.

References $key, and getMessageFromDB().

Referenced by sprintfDate().

Language::hasVariants (  ) 

Definition at line 2195 of file Language.php.

References getVariants().

static Language::hebrewNumeral ( num  )  [static]

Hebrew Gematria number formatting up to 9999.

Definition at line 1164 of file Language.php.

References $end, $i, $s, and $start.

Referenced by sprintfDate().

static Language::hebrewYearStart ( year  )  [static, private]

This calculates the Hebrew year start, as days since 1 September.

Based on Carl Friedrich Gauss algorithm for finding Easter date. Used for Hebrew date.

Definition at line 1088 of file Language.php.

Referenced by tsToHebrew().

Language::iconv ( in,
out,
string 
)

Reimplemented in LanguageEo.

Definition at line 1343 of file Language.php.

References $in, and $out.

Referenced by checkTitleEncoding(), recodeForEdit(), and recodeInput().

Language::initContLang (  ) 

Hook which will be called if this is the content language.

Descendants can use this to register hook functions or modify globals

Definition at line 205 of file Language.php.

Language::initEncoding (  ) 

Reimplemented in LanguageEo.

Definition at line 1676 of file Language.php.

static Language::isLocalisationOutOfDate ( cache  )  [static]

Test if a given localisation cache is out of date with respect to the source Messages files.

This is done automatically for the global cache in $wgMemc, but is only done on certain occasions for the serialized data file.

Parameters:
$cache mixed Either a language code or a cache array

Definition at line 2493 of file Language.php.

References $expired, $file, and loadLocalisation().

Language::isMultibyte ( str  ) 

Definition at line 1440 of file Language.php.

Referenced by lc(), and uc().

Language::isRTL (  ) 

For right-to-left language support.

Returns:
bool

Reimplemented in LanguageKk.

Definition at line 1719 of file Language.php.

References load().

Referenced by getArrow(), and getDirMark().

Language::lc ( str,
first = false 
)

Language::lcCallback ( matches  ) 

Definition at line 1362 of file Language.php.

References $wikiLowerChars, and getCaseMaps().

Language::lcfirst ( str  ) 

Reimplemented in LanguageKaa, and LanguageKk.

Definition at line 1408 of file Language.php.

References lc().

Language::linkPrefixExtension (  ) 

To allow "foo[[bar]]" to extend the link over the whole word "foobar".

Returns:
bool

Definition at line 1747 of file Language.php.

References load().

Language::linkTrail (  ) 

A regular expression to match legal word-trailing characters which should be merged onto a link of the form [[foo]]bar.

Returns:
string

Definition at line 2300 of file Language.php.

References load().

Language::listToText ( l  ) 

Take a list of strings and build a locale-friendly comma-separated list, using the local comma-separator message.

The last two strings are chained with an "and".

Parameters:
$l Array
Returns:
string

Definition at line 1961 of file Language.php.

References $i, $s, and getMessageFromDB().

Language::load (  ) 

static Language::loadLocalisation ( code,
disableCache = false 
) [static]

Load localisation data for a given code into the static cache.

Returns:
array Dependencies, map of filenames to mtimes

Definition at line 2344 of file Language.php.

References $code, $fallback, $filename, $IP, $key, $page, $wgCheckSerialized, $wgEnableSerializedMessages, $wgMemc, getMessagesFileName(), wfDebug(), wfGetPrecompiledData(), wfMemcKey(), wfProfileIn(), and wfProfileOut().

Referenced by getFallbackFor(), getLocalisationArray(), getMessageFor(), getMessagesFor(), isLocalisationOutOfDate(), and load().

Language::markNoConversion ( text,
noParse = false 
)

Enclose a string with the "no conversion" tag.

This is used by various functions in the Parser

Parameters:
$text String: text to be tagged for no conversion
$noParse 
Returns:
string the tagged text

Definition at line 2290 of file Language.php.

References $text.

Language::minSearchLength (  )  [protected]

Check MySQL server's ft_min_word_len setting so we know if we need to pad short words.

..

Definition at line 1599 of file Language.php.

References $dbr, $result, $row, $sql, and wfGetDB().

Referenced by stripForSearch().

static Language::newFromCode ( code  )  [static, protected]

Create a language object for a given language code.

Definition at line 150 of file Language.php.

References $code, $fallback, $IP, getFallbackFor(), and ucfirst().

Referenced by factory().

Language::parseFormattedNumber ( number  ) 

Definition at line 1921 of file Language.php.

References $s, digitTransformTable(), and separatorTransformTable().

Language::parserConvert ( text,
&$  parser 
)

Definition at line 2190 of file Language.php.

References $text.

Language::pipeList ( list  ) 

Same as commaList, but separate it with the pipe instead.

Parameters:
$list array of strings to put in a pipe list
Returns:
string

Definition at line 2010 of file Language.php.

References wfMsgExt().

Language::preConvertPlural ( forms,
count 
) [protected]

Language::recodeForEdit ( s  ) 

Definition at line 1683 of file Language.php.

References $s, $wgEditEncoding, and iconv().

Language::recodeInput ( s  ) 

Definition at line 1699 of file Language.php.

References $s, $wgEditEncoding, and iconv().

Language::replaceGrammarInNamespace ( m  ) 

Definition at line 2649 of file Language.php.

References convertGrammar().

static Language::romanNumeral ( num  )  [static]

Roman number formatting up to 3000.

Definition at line 1138 of file Language.php.

References $i, and $s.

Referenced by sprintfDate().

Language::segmentForDiff ( text  ) 

languages like Chinese need to be segmented in order for the diff to be of any use

Parameters:
$text String
Returns:
String

Reimplemented in LanguageGan, and LanguageZh.

Definition at line 2170 of file Language.php.

References $text.

Language::semicolonList ( list  ) 

Take a list of strings and build a locale-friendly semicolon-separated list, using the local semicolon-separator message.

Parameters:
$list array of strings to put in a semicolon list
Returns:
string

Definition at line 1999 of file Language.php.

References wfMsgExt().

Language::separatorTransformTable (  ) 

Definition at line 1947 of file Language.php.

References load().

Referenced by formatNum(), and parseFormattedNumber().

Language::setCode ( code  ) 

Definition at line 2316 of file Language.php.

References $code.

Language::specialPage ( name  ) 

Definition at line 318 of file Language.php.

References $name, getNsText(), and getSpecialPageAliases().

Language::sprintfDate ( format,
ts 
)

This is a workalike of PHP's date() function, but with better internationalisation, a reduced set of format characters, and a better escaping format.

Supported format characters are dDjlNwzWFmMntLoYyaAgGhHiscrU. See the PHP manual for definitions. "o" format character is supported since PHP 5.1.0, previous versions return literal o. There are a number of extensions, which start with "x":

xn Do not translate digits of the next numeric format character xN Toggle raw digit (xn) flag, stays set until explicitly unset xr Use roman numerals for the next numeric format character xh Use hebrew numerals for the next numeric format character xx Literal x xg Genitive month name

xij j (day number) in Iranian calendar xiF F (month name) in Iranian calendar xin n (month number) in Iranian calendar xiY Y (full year) in Iranian calendar

xjj j (day number) in Hebrew calendar xjF F (month name) in Hebrew calendar xjt t (days in month) in Hebrew calendar xjx xg (genitive month name) in Hebrew calendar xjn n (month number) in Hebrew calendar xjY Y (full year) in Hebrew calendar

xmj j (day number) in Hijri calendar xmF F (month name) in Hijri calendar xmn n (month number) in Hijri calendar xmY Y (full year) in Hijri calendar

xkY Y (full year) in Thai solar calendar. Months and days are identical to the Gregorian calendar

Characters enclosed in double quotes will be considered literal (with the quotes themselves removed). Unmatched quotes will be considered literal quotes. Example:

"The month is" F => The month is January i's" => 20'11"

Backslash escaping is also supported.

Input timestamp is assumed to be pre-normalized to the desired local time zone, if any.

Parameters:
$format String
$ts String: 14-character timestamp YYYYMMDDHHMMSS 01234567890123
Todo:
emulation of "o" format character for PHP pre 5.1.0

handling of "o" format character for Iranian, Hebrew, Hijri & Thai?

Definition at line 589 of file Language.php.

References $code, $s, $ts, date(), formatNum(), getHebrewCalendarMonthName(), getHebrewCalendarMonthNameGen(), getHijriCalendarMonthName(), getIranianCalendarMonthName(), getMonthAbbreviation(), getMonthName(), getMonthNameGen(), getWeekdayAbbreviation(), getWeekdayName(), hebrewNumeral(), romanNumeral(), tsToHebrew(), tsToHijri(), tsToIranian(), tsToThai(), and wfTimestamp().

Referenced by date(), time(), and timeanddate().

Language::stripForSearch ( string  ) 

Some languages have special punctuation to strip out or characters which need to be converted for MySQL's indexing to grok it correctly.

Make such changes here.

Parameters:
$string String
Returns:
String

Reimplemented in LanguageGan, LanguageJa, LanguageYue, LanguageZh, and LanguageZh_hans.

Definition at line 1543 of file Language.php.

References $n, $out, $wgDBtype, lc(), minSearchLength(), wfProfileIn(), and wfProfileOut().

Language::stripForSearchCallback ( matches  )  [protected]

Armor a case-folded UTF-8 string to get through MySQL's fulltext search without being mucked up by funny charset settings or anything else of the sort.

Definition at line 1591 of file Language.php.

Language::time ( ts,
adj = false,
format = true,
timecorrection = false 
)

Parameters:
$ts Mixed: the time format which needs to be turned into a date('YmdHis') format with wfTimestamp(TS_MW,$ts)
$adj Bool: whether to adjust the time output according to the user configured offset ($timecorrection)
$format Mixed: true to use user's date format preference
$timecorrection String: the time offset as returned by validateTimeZone() in Special:Preferences
Returns:
string

Definition at line 1292 of file Language.php.

References $ts, dateFormat(), load(), sprintfDate(), and userAdjust().

Referenced by LanguageWa::timeanddate().

Language::timeanddate ( ts,
adj = false,
format = true,
timecorrection = false 
)

Parameters:
$ts Mixed: the time format which needs to be turned into a date('YmdHis') format with wfTimestamp(TS_MW,$ts)
$adj Bool: whether to adjust the time output according to the user configured offset ($timecorrection)
$format Mixed: what format to return, if it's false output the default one (default true)
$timecorrection String: the time offset as returned by validateTimeZone() in Special:Preferences
Returns:
string

Reimplemented in LanguageWa.

Definition at line 1316 of file Language.php.

References $ts, dateFormat(), load(), sprintfDate(), userAdjust(), and wfTimestamp().

Language::translateBlockExpiry ( str  ) 

For translaing of expiry times.

Parameters:
$str String: the validated block time in English
Returns:
Somehow translated block time
See also:
LanguageFi.php for example implementation

Definition at line 2143 of file Language.php.

References getMessageFromDB().

Language::truncate ( string,
length,
ellipsis = '...' 
)

Truncate a string to a specified length in bytes, appending an optional string (e.g.

for ellipses)

The database offers limited byte lengths for some columns in the database; multi-byte character sets mean we need to ensure that only whole characters are included, otherwise broken characters can be passed to the user

If $length is negative, the string will be truncated from the beginning

Parameters:
$string String to truncate
$length Int: maximum length (excluding ellipses)
$ellipsis String to append to the truncated text
Returns:
string

Definition at line 2031 of file Language.php.

References wfMsgExt().

static Language::tsToHebrew ( ts  )  [static, private]

Converting Gregorian dates to Hebrew dates.

Based on a JavaScript code by Abu Mami and Yisrael Hersch (abu-mami@kaluach.net, http://www.kaluach.net), who permitted to translate the relevant functions into PHP and release them under GNU GPL.

The months are counted from Tishrei = 1. In a leap year, Adar I is 13 and Adar II is 14. In a non-leap year, Adar is 6.

Definition at line 951 of file Language.php.

References $i, $start, $ts, and hebrewYearStart().

Referenced by sprintfDate().

static Language::tsToHijri ( ts  )  [static, private]

Converting Gregorian dates to Hijri dates.

Based on a PHP-Nuke block by Sharjeel which is released under GNU/GPL license

&file=article&sid=8234&mode=thread&order=0&thold=0

Definition at line 905 of file Language.php.

References $ts.

Referenced by sprintfDate().

static Language::tsToIranian ( ts  )  [static, private]

Algorithm by Roozbeh Pournader and Mohammad Toossi to convert Gregorian dates to Iranian dates.

Originally written in C, it is released under the terms of GNU Lesser General Public License. Conversion to PHP was performed by Niklas Laxström.

Link: http://www.farsiweb.info/jalali/jalali.c

Definition at line 851 of file Language.php.

References $i, and $ts.

Referenced by sprintfDate().

static Language::tsToThai ( ts  )  [static, private]

Algorithm to convert Gregorian dates to Thai solar dates.

Link: http://en.wikipedia.org/wiki/Thai_solar_calendar

Parameters:
$ts String: 14-character timestamp
Returns:
array converted year, month, day

Definition at line 1122 of file Language.php.

References $ts.

Referenced by sprintfDate().

Language::uc ( str,
first = false 
)

Definition at line 1382 of file Language.php.

References $wikiUpperChars, getCaseMaps(), isMultibyte(), and ucfirst().

Referenced by caseFold(), and ucfirst().

Language::ucCallback ( matches  ) 

Definition at line 1357 of file Language.php.

References $wikiUpperChars, and getCaseMaps().

Language::ucfirst ( str  ) 

Language::ucwordbreaks ( str  ) 

Definition at line 1470 of file Language.php.

References lc().

Language::ucwordbreaksCallbackAscii ( matches  ) 

Definition at line 1349 of file Language.php.

References ucfirst().

Language::ucwordbreaksCallbackMB ( matches  ) 

Definition at line 1353 of file Language.php.

Language::ucwords ( str  ) 

Definition at line 1444 of file Language.php.

References lc().

Language::ucwordsCallbackMB ( matches  ) 

Definition at line 1367 of file Language.php.

Language::ucwordsCallbackWiki ( matches  ) 

Definition at line 1371 of file Language.php.

References $wikiUpperChars, and getCaseMaps().

Language::unsegmentForDiff ( text  ) 

and unsegment to show the result

Parameters:
$text String
Returns:
String

Reimplemented in LanguageGan, and LanguageZh.

Definition at line 2180 of file Language.php.

References $text.

Language::userAdjust ( ts,
tz = false 
)

Used by date() and time() to adjust the time output.

Parameters:
$ts Int the time in date('YmdHis') format
$tz Mixed: adjust the time by this amount (default false, mean we get user timecorrection setting)
Returns:
int

Definition at line 474 of file Language.php.

References $t, $ts, $wgLocalTZoffset, $wgUser, date(), wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by date(), LanguageWa::date(), time(), timeanddate(), and LanguageWa::timeanddate().


Member Data Documentation

Language::$GREG_DAYS = array( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ) [static, private]

Definition at line 841 of file Language.php.

Language::$IRANIAN_DAYS = array( 31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29 ) [static, private]

Definition at line 842 of file Language.php.

Language::$mCode

Definition at line 56 of file Language.php.

Language::$mConverter

Definition at line 56 of file Language.php.

Language::$mHebrewCalendarMonthGenMsgs [static]

Initial value:

 array(
                'hebrew-calendar-m1-gen', 'hebrew-calendar-m2-gen', 'hebrew-calendar-m3-gen',
                'hebrew-calendar-m4-gen', 'hebrew-calendar-m5-gen', 'hebrew-calendar-m6-gen',
                'hebrew-calendar-m7-gen', 'hebrew-calendar-m8-gen', 'hebrew-calendar-m9-gen',
                'hebrew-calendar-m10-gen', 'hebrew-calendar-m11-gen', 'hebrew-calendar-m12-gen',
                'hebrew-calendar-m6a-gen', 'hebrew-calendar-m6b-gen'
        )

Definition at line 118 of file Language.php.

Language::$mHebrewCalendarMonthMsgs [static]

Initial value:

 array(
                'hebrew-calendar-m1', 'hebrew-calendar-m2', 'hebrew-calendar-m3',
                'hebrew-calendar-m4', 'hebrew-calendar-m5', 'hebrew-calendar-m6',
                'hebrew-calendar-m7', 'hebrew-calendar-m8', 'hebrew-calendar-m9',
                'hebrew-calendar-m10', 'hebrew-calendar-m11', 'hebrew-calendar-m12',
                'hebrew-calendar-m6a', 'hebrew-calendar-m6b'
        )

Definition at line 110 of file Language.php.

Language::$mHijriCalendarMonthMsgs [static]

Initial value:

 array(
                'hijri-calendar-m1', 'hijri-calendar-m2', 'hijri-calendar-m3',
                'hijri-calendar-m4', 'hijri-calendar-m5', 'hijri-calendar-m6',
                'hijri-calendar-m7', 'hijri-calendar-m8', 'hijri-calendar-m9',
                'hijri-calendar-m10', 'hijri-calendar-m11', 'hijri-calendar-m12'
        )

Definition at line 126 of file Language.php.

Language::$mIranianCalendarMonthMsgs [static]

Initial value:

 array(
                'iranian-calendar-m1', 'iranian-calendar-m2', 'iranian-calendar-m3',
                'iranian-calendar-m4', 'iranian-calendar-m5', 'iranian-calendar-m6',
                'iranian-calendar-m7', 'iranian-calendar-m8', 'iranian-calendar-m9',
                'iranian-calendar-m10', 'iranian-calendar-m11', 'iranian-calendar-m12'
        )

Definition at line 103 of file Language.php.

Language::$mLangObjCache = array() [static]

Definition at line 77 of file Language.php.

Language::$mLoaded = false

Definition at line 56 of file Language.php.

Language::$mLocalisationCache = array() [static]

Definition at line 76 of file Language.php.

Language::$mLocalisationKeys [static]

Initial value:

 array(
                'fallback', 'namespaceNames', 'mathNames', 'bookstoreList',
                'magicWords', 'messages', 'rtl', 'digitTransformTable',
                'separatorTransformTable', 'fallback8bitEncoding', 'linkPrefixExtension',
                'defaultUserOptionOverrides', 'linkTrail', 'namespaceAliases',
                'dateFormats', 'datePreferences', 'datePreferenceMigrationMap',
                'defaultDateFormat', 'extraUserToggles', 'specialPageAliases',
                'imageFiles'
        )

Definition at line 59 of file Language.php.

Language::$mMagicExtensions = array()

Definition at line 57 of file Language.php.

Language::$mMagicHookDone = false

Definition at line 57 of file Language.php.

Language::$mMergeableAliasListKeys = array( 'specialPageAliases' ) [static]

Definition at line 74 of file Language.php.

Language::$mMergeableListKeys = array( 'extraUserToggles' ) [static]

Definition at line 72 of file Language.php.

Language::$mMergeableMapKeys [static]

Initial value:

 array( 'messages', 'namespaceNames', 'mathNames',
                'dateFormats', 'defaultUserOptionOverrides', 'magicWords', 'imageFiles' )

Definition at line 69 of file Language.php.

Language::$mMonthAbbrevMsgs [static]

Initial value:

 array(
                'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
                'sep', 'oct', 'nov', 'dec'
        )

Definition at line 98 of file Language.php.

Language::$mMonthGenMsgs [static]

Initial value:

 array(
                'january-gen', 'february-gen', 'march-gen', 'april-gen', 'may-gen', 'june-gen',
                'july-gen', 'august-gen', 'september-gen', 'october-gen', 'november-gen',
                'december-gen'
        )

Definition at line 93 of file Language.php.

Language::$mMonthMsgs [static]

Initial value:

 array(
                'january', 'february', 'march', 'april', 'may_long', 'june',
                'july', 'august', 'september', 'october', 'november',
                'december'
        )

Definition at line 88 of file Language.php.

Language::$mVariants

Definition at line 56 of file Language.php.

Language::$mWeekdayAbbrevMsgs [static]

Initial value:

 array(
                'sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'
        )

Definition at line 84 of file Language.php.

Language::$mWeekdayMsgs [static]

Initial value:

 array(
                'sunday', 'monday', 'tuesday', 'wednesday', 'thursday',
                'friday', 'saturday'
        )

Definition at line 79 of file Language.php.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:39 2009 for MediaWiki by  doxygen 1.5.9