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.
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 ) |
Definition at line 55 of file Language.php.
Language::__construct | ( | ) |
Reimplemented in LanguageGan, LanguageKk, LanguageKu, LanguageSr, LanguageTg, and LanguageZh.
Definition at line 182 of file Language.php.
Language::__destruct | ( | ) |
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 | ) |
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.
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.
$_ | mixed |
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.
$list | array of strings to put in a comma list |
Definition at line 1987 of file Language.php.
References wfMsgExt().
Language::convert | ( | $ | text, | |
$ | isTitle = false | |||
) |
Language::convertCategoryKey | ( | $ | key | ) |
Language::convertForSearchResult | ( | $ | termsArray | ) |
Language::convertGrammar | ( | $ | word, | |
$ | case | |||
) |
Grammatical transformations, needed for inflected languages Invoked by putting {{grammar:case|word}} in a message.
$word | string | |
$case | 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.
$text | String | |
$isTitle | Bool -- wtf? |
Definition at line 2212 of file Language.php.
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}}
$count | Integer: non-localized number | |
$forms | Array: different plural forms |
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 | |||
) |
$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 |
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); [...] }
$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. |
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.
$text | String: the text to be emphasized. |
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
$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 |
Definition at line 2247 of file Language.php.
Language::firstChar | ( | $ | s | ) |
Get the first character of a string.
$s | 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 | ) |
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.
$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 |
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.
$size | Size to format |
Definition at line 2710 of file Language.php.
References $msg, $size, $text, formatNum(), and getMessageFromDB().
Language::formatTimePeriod | ( | $ | seconds | ) |
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 | ( | ) |
Language::getArrow | ( | ) |
An arrow, depending on the language direction.
Definition at line 1738 of file Language.php.
References isRTL().
Language::getBookstoreList | ( | ) |
Exports $wgBookstoreListEn.
Definition at line 224 of file Language.php.
References load().
static Language::getCaseMaps | ( | ) | [static] |
Definition at line 2653 of file Language.php.
References $wikiLowerChars, $wikiUpperChars, wfGetPrecompiledData(), wfProfileIn(), and wfProfileOut().
Referenced by lc(), lcCallback(), LanguageZh_hans::stripForSearch(), uc(), ucCallback(), and ucwordsCallbackWiki().
static Language::getClassFileName | ( | $ | code | ) | [static] |
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 | ( | ) |
Language::getDatePreferenceMigrationMap | ( | ) |
Language::getDatePreferences | ( | ) |
Language::getDefaultDateFormat | ( | ) |
Language::getDefaultUserOptionOverrides | ( | ) |
Language::getDefaultUserOptions | ( | ) |
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.
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
Definition at line 2267 of file Language.php.
Language::getExtraUserToggles | ( | ) |
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 | ( | ) |
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.
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.
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 | ) |
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 | ) |
static Language::getLanguageNames | ( | $ | customisedOnly = false |
) | [static] |
Get language names, indexed by code.
If $customisedOnly is true, only returns codes with a messages file
Definition at line 389 of file Language.php.
References $code, $file, $IP, and $wgExtraLanguageNames.
Referenced by languages::__construct(), ApiQuerySiteinfo::appendInterwikiMap(), MessageCache::clear(), MessageCache::figureMessage(), MessageCache::get(), getLanguageName(), Xml::languageSelector(), MessageCache::loadMessagesFile(), PreferencesForm::mainPrefsForm(), and wfGetLangObj().
static Language::getLocalisationArray | ( | $ | code, | |
$ | disableCache = false | |||
) | [static] |
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.
$text | String |
Definition at line 288 of file Language.php.
Language::getMagic | ( | &$ | mw | ) |
Definition at line 1758 of file Language.php.
References $magicWords, getCode(), getMagicWords(), and wfRunHooks().
& Language::getMagicWords | ( | ) |
Language::getMathNames | ( | ) |
Language::getMessage | ( | $ | key | ) |
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 | ) |
Get a message from the MediaWiki namespace.
$msg | String: message name |
Definition at line 418 of file Language.php.
References $msg, and wfMsgExt().
Referenced by formatSize(), getHebrewCalendarMonthName(), getHebrewCalendarMonthNameGen(), getHijriCalendarMonthName(), getIranianCalendarMonthName(), getMonthAbbreviation(), getMonthName(), getMonthNameGen(), getUserToggle(), getVariantname(), getWeekdayAbbreviation(), getWeekdayName(), listToText(), and translateBlockExpiry().
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 | ( | ) |
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.
$text | String |
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'
.
$index | Int: the array key of the namespace to return |
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.
Definition at line 2278 of file Language.php.
Language::getPreferredVariant | ( | $ | fromUser = true |
) |
Definition at line 2231 of file Language.php.
Referenced by LanguageKk::convertGrammar(), LanguageKk::isRTL(), LanguageKk::lcfirst(), and LanguageKk::ucfirst().
Language::getQuickbarSettings | ( | ) |
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 | ) |
Language::getVariantname | ( | $ | code | ) |
short names for language variants used for language conversion links.
$code | 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
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 | ( | ) |
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.
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 | ( | ) |
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.
$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 | ) |
Language::isRTL | ( | ) |
For right-to-left language support.
Reimplemented in LanguageKk.
Definition at line 1719 of file Language.php.
References load().
Referenced by getArrow(), and getDirMark().
Language::lc | ( | $ | str, | |
$ | first = false | |||
) |
Definition at line 1418 of file Language.php.
References $wikiLowerChars, getCaseMaps(), and isMultibyte().
Referenced by fixUpSettings(), getLocalNsIndex(), getNsIndex(), lcfirst(), stripForSearch(), ucwordbreaks(), and ucwords().
Language::lcCallback | ( | $ | matches | ) |
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".
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.
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".
$l | Array |
Definition at line 1961 of file Language.php.
References $i, $s, and getMessageFromDB().
Language::load | ( | ) |
Load localisation data for this object.
Definition at line 2567 of file Language.php.
References $key, fixUpSettings(), getCode(), and loadLocalisation().
Referenced by date(), digitTransformTable(), fallback8bitEncoding(), getAllMessages(), getBookstoreList(), getDateFormats(), getDatePreferenceMigrationMap(), getDatePreferences(), getDefaultDateFormat(), getDefaultUserOptionOverrides(), getExtraUserToggles(), getImageFile(), getLocalNsIndex(), getMagicWords(), getMathNames(), getMessage(), getNamespaces(), getNsIndex(), getSpecialPageAliases(), isRTL(), linkPrefixExtension(), linkTrail(), separatorTransformTable(), time(), and timeanddate().
static Language::loadLocalisation | ( | $ | code, | |
$ | disableCache = false | |||
) | [static] |
Load localisation data for a given code into the static cache.
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
$text | String: text to be tagged for no conversion | |
$noParse |
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 | |||
) |
Language::pipeList | ( | $ | list | ) |
Same as commaList, but separate it with the pipe instead.
$list | array of strings to put in a pipe list |
Definition at line 2010 of file Language.php.
References wfMsgExt().
Language::preConvertPlural | ( | $ | forms, | |
$ | count | |||
) | [protected] |
Checks that convertPlural was given an array and pads it to requested amound of forms by copying the last one.
$count | Integer: How many forms should there be at least | |
$forms | Array of forms given to convertPlural |
Definition at line 2130 of file Language.php.
References $count.
Referenced by convertPlural(), LanguageUk::convertPlural(), LanguageSr_el::convertPlural(), LanguageSr_ec::convertPlural(), LanguageSl::convertPlural(), LanguageSk::convertPlural(), LanguageRu::convertPlural(), LanguagePt_br::convertPlural(), LanguagePl::convertPlural(), LanguageMt::convertPlural(), LanguageLv::convertPlural(), LanguageLt::convertPlural(), LanguageKsh::convertPlural(), LanguageHy::convertPlural(), LanguageHsb::convertPlural(), LanguageHr::convertPlural(), LanguageHe::convertPlural(), LanguageGv::convertPlural(), LanguageFr::convertPlural(), LanguageDsb::convertPlural(), LanguageCy::convertPlural(), LanguageCu::convertPlural(), LanguageCs::convertPlural(), LanguageBs::convertPlural(), LanguageBe_tarask::convertPlural(), LanguageBe::convertPlural(), LanguageBat_smg::convertPlural(), LanguageAr::convertPlural(), and gender().
Language::recodeForEdit | ( | $ | s | ) |
Language::recodeInput | ( | $ | s | ) |
Language::replaceGrammarInNamespace | ( | $ | m | ) |
static Language::romanNumeral | ( | $ | num | ) | [static] |
Roman number formatting up to 3000.
Definition at line 1138 of file Language.php.
Referenced by sprintfDate().
Language::segmentForDiff | ( | $ | text | ) |
languages like Chinese need to be segmented in order for the diff to be of any use
$text | 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.
$list | array of strings to put in a semicolon list |
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 | ) |
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.
$format | String | |
$ts | String: 14-character timestamp YYYYMMDDHHMMSS 01234567890123 |
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.
$string | 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 | |||
) |
$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 |
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 | |||
) |
$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 |
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.
$str | String: the validated block time in English |
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
$string | String to truncate | |
$length | Int: maximum length (excluding ellipses) | |
$ellipsis | String to append to the truncated text |
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.
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
$ts | String: 14-character timestamp |
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 | ) |
Language::ucfirst | ( | $ | str | ) |
Reimplemented in LanguageAz, LanguageKaa, LanguageKk, and LanguageTr.
Definition at line 1376 of file Language.php.
References uc().
Referenced by fixSpecialPageAliases(), getFileName(), newFromCode(), LanguageConverter::parseCachedTable(), uc(), and ucwordbreaksCallbackAscii().
Language::ucwordbreaks | ( | $ | str | ) |
Language::ucwordbreaksCallbackAscii | ( | $ | matches | ) |
Language::ucwordbreaksCallbackMB | ( | $ | matches | ) |
Definition at line 1353 of file Language.php.
Language::ucwords | ( | $ | str | ) |
Language::ucwordsCallbackMB | ( | $ | matches | ) |
Definition at line 1367 of file Language.php.
Language::ucwordsCallbackWiki | ( | $ | matches | ) |
Language::unsegmentForDiff | ( | $ | text | ) |
and unsegment to show the result
$text | 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.
$ts | Int the time in date('YmdHis') format | |
$tz | Mixed: adjust the time by this amount (default false, mean we get user timecorrection setting) |
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().
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.