MediaWiki
REL1_22
|
Public Member Functions | |
__construct ($exif=true) | |
Load the list of languages: all the Messages*.php files in the languages directory. | |
getCaseMismatchMagicWords ($code) | |
Get the magic words which do not match the case-sensitivity of the original words. | |
getDuplicateMessages ($code) | |
Get the duplicate messages for a specific language. | |
getEmptyMessages ($code) | |
Get the empty messages. | |
getFallback ($code) | |
Get fallback language code for a specific language. | |
getGeneralMessages () | |
Get all the general English messages, divided to groups: all - all the messages. | |
getIgnoredMessages () | |
Get the ignored messages list. | |
getLanguages () | |
Get the language list. | |
getMagicWords ($code) | |
Get magic words for a specific language. | |
getMessages ($code) | |
Get all the messages for a specific language (not English), without the fallback language messages, divided to groups: all - all the messages. | |
getMessagesWithDubiousLinks ($code) | |
Get the messages which include dubious links. | |
getMessagesWithMismatchVariables ($code) | |
Get the messages whose variables do not match the original ones. | |
getMessagesWithoutPlural ($code) | |
Get the messages which do not use plural. | |
getMessagesWithUnbalanced ($code) | |
Get the messages which include unbalanced brackets. | |
getMessagesWithWhitespace ($code) | |
Get the messages with trailing whitespace. | |
getMessagesWithWrongChars ($code) | |
Get the messages which include wrong characters. | |
getNamespaceAliases ($code) | |
Get namespace aliases for a specific language. | |
getNamespaceNames ($code) | |
Get namespace names for a specific language. | |
getNonXHTMLMessages ($code) | |
Get the non-XHTML messages. | |
getObsoleteMagicWords ($code) | |
Get the obsolete magic words. | |
getObsoleteMessages ($code) | |
Get the obsolete messages for a specific language. | |
getObsoleteSpecialPages ($code) | |
Get the obsolete special page names. | |
getOptionalMessages () | |
Get the optional messages list. | |
getOverridingMagicWords ($code) | |
Get the magic words that override the original English magic word. | |
getProblematicProjectTalks ($code) | |
Get the project talk namespace names with no $1. | |
getSpecialPageAliases ($code) | |
Get special page aliases for a specific language. | |
getUntranslatedMagicWords ($code) | |
Get the untranslated magic words. | |
getUntranslatedMessages ($code) | |
Get the untranslated messages for a specific language. | |
getUntranslatedNamespaces ($code) | |
Get the untranslated namespace names. | |
getUntraslatedSpecialPages ($code) | |
Get the untranslated special page names. | |
Protected Member Functions | |
loadFile ($code) | |
Load the language file. | |
Protected Attributes | |
$mFallback | |
$mGeneralMessages | |
$mIgnoredMessages | |
$mLanguages | |
$mMagicWords | |
$mMessages | |
$mNamespaceAliases | |
$mNamespaceNames | |
$mOptionalMessages | |
$mRawMessages | |
$mSpecialPageAliases | |
Private Member Functions | |
loadGeneralMessages () | |
Load the messages for English and divide them to groups: all - all the messages. | |
loadMessages ($code) | |
Load the messages for a specific language (which is not English) and divide them to groups: all - all the messages. |
Definition at line 27 of file languages.inc.
languages::__construct | ( | $ | exif = true | ) |
Load the list of languages: all the Messages*.php files in the languages directory.
$exif | bool Treat the Exif messages? |
Definition at line 48 of file languages.inc.
References $wgEXIFMessages, $wgIgnoredMessages, $wgOptionalMessages, and Language\fetchLanguageNames().
languages::getCaseMismatchMagicWords | ( | $ | code | ) |
Get the magic words which do not match the case-sensitivity of the original words.
$code | string The language code. |
Definition at line 675 of file languages.inc.
References $key, $magicWords, array(), as, and loadFile().
languages::getDuplicateMessages | ( | $ | code | ) |
Get the duplicate messages for a specific language.
$code | string The language code. |
Definition at line 310 of file languages.inc.
References $key, $value, array(), as, loadGeneralMessages(), and loadMessages().
languages::getEmptyMessages | ( | $ | code | ) |
Get the empty messages.
$code | string The language code. |
Definition at line 392 of file languages.inc.
References $key, $value, array(), as, loadGeneralMessages(), and loadMessages().
languages::getFallback | ( | $ | code | ) |
Get fallback language code for a specific language.
$code | string The language code. |
Definition at line 237 of file languages.inc.
References loadFile().
Get all the general English messages, divided to groups: all - all the messages.
required - messages which should be translated to other languages in order to get a complete translation. optional - messages which can be translated to other languages, but it's not required for a complete translation. ignored - messages which should not be translated to other languages. translatable - messages which are either required or optional, but can be translated from English.
Definition at line 225 of file languages.inc.
References loadGeneralMessages().
Get the ignored messages list.
Definition at line 75 of file languages.inc.
Get the language list.
Definition at line 66 of file languages.inc.
languages::getMagicWords | ( | $ | code | ) |
Get magic words for a specific language.
$code | string The language code. |
Definition at line 273 of file languages.inc.
References loadFile().
languages::getMessages | ( | $ | code | ) |
Get all the messages for a specific language (not English), without the fallback language messages, divided to groups: all - all the messages.
required - messages which should be translated in order to get a complete translation. optional - messages which can be translated, the fallback translation is used if not translated. obsolete - messages which should not be translated, either because they do not exist, or they are ignored messages. translated - messages which are either required or optional, but translated from English and needed.
$code | string The language code. |
Definition at line 210 of file languages.inc.
References loadMessages().
languages::getMessagesWithDubiousLinks | ( | $ | code | ) |
Get the messages which include dubious links.
$code | string The language code. |
Definition at line 495 of file languages.inc.
References $key, $matches, $messages, $value, array(), as, Title\legalChars(), loadGeneralMessages(), and loadMessages().
Get the messages whose variables do not match the original ones.
$code | string The language code. |
Definition at line 342 of file languages.inc.
References $key, $value, array(), as, loadGeneralMessages(), and loadMessages().
languages::getMessagesWithoutPlural | ( | $ | code | ) |
Get the messages which do not use plural.
$code | string The language code. |
Definition at line 373 of file languages.inc.
References $key, $value, array(), as, loadGeneralMessages(), and loadMessages().
languages::getMessagesWithUnbalanced | ( | $ | code | ) |
Get the messages which include unbalanced brackets.
$code | string The language code. |
Definition at line 524 of file languages.inc.
References $key, $messages, $value, array(), as, loadGeneralMessages(), and loadMessages().
languages::getMessagesWithWhitespace | ( | $ | code | ) |
Get the messages with trailing whitespace.
$code | string The language code. |
Definition at line 411 of file languages.inc.
References $key, $value, array(), as, loadGeneralMessages(), and loadMessages().
languages::getMessagesWithWrongChars | ( | $ | code | ) |
Get the messages which include wrong characters.
$code | string The language code. |
Definition at line 458 of file languages.inc.
References $key, $value, array(), as, loadGeneralMessages(), and loadMessages().
languages::getNamespaceAliases | ( | $ | code | ) |
Get namespace aliases for a specific language.
$code | string The language code. |
Definition at line 261 of file languages.inc.
References loadFile().
languages::getNamespaceNames | ( | $ | code | ) |
Get namespace names for a specific language.
$code | string The language code. |
Definition at line 249 of file languages.inc.
References loadFile().
languages::getNonXHTMLMessages | ( | $ | code | ) |
Get the non-XHTML messages.
$code | string The language code. |
Definition at line 430 of file languages.inc.
References $key, $value, array(), as, loadGeneralMessages(), and loadMessages().
languages::getObsoleteMagicWords | ( | $ | code | ) |
Get the obsolete magic words.
$code | string The language code. |
Definition at line 627 of file languages.inc.
References $key, $magicWords, $value, array(), as, and loadFile().
languages::getObsoleteMessages | ( | $ | code | ) |
Get the obsolete messages for a specific language.
$code | string The language code. |
Definition at line 329 of file languages.inc.
References loadGeneralMessages(), and loadMessages().
languages::getObsoleteSpecialPages | ( | $ | code | ) |
Get the obsolete special page names.
$code | string The language code. |
Definition at line 717 of file languages.inc.
References $key, $specialPageAliases, $value, array(), as, and loadFile().
Get the optional messages list.
Definition at line 84 of file languages.inc.
languages::getOverridingMagicWords | ( | $ | code | ) |
Get the magic words that override the original English magic word.
$code | string The language code. |
Definition at line 646 of file languages.inc.
References $key, $magicWords, array(), as, and loadFile().
languages::getProblematicProjectTalks | ( | $ | code | ) |
Get the project talk namespace names with no $1.
$code | string The language code. |
Definition at line 579 of file languages.inc.
References $key, $namespaces, $value, array(), as, and loadFile().
languages::getSpecialPageAliases | ( | $ | code | ) |
Get special page aliases for a specific language.
$code | string The language code. |
Definition at line 285 of file languages.inc.
References loadFile().
languages::getUntranslatedMagicWords | ( | $ | code | ) |
Get the untranslated magic words.
$code | string The language code. |
Definition at line 608 of file languages.inc.
References $key, $magicWords, $value, array(), as, and loadFile().
languages::getUntranslatedMessages | ( | $ | code | ) |
Get the untranslated messages for a specific language.
$code | string The language code. |
Definition at line 297 of file languages.inc.
References loadGeneralMessages(), and loadMessages().
languages::getUntranslatedNamespaces | ( | $ | code | ) |
Get the untranslated namespace names.
$code | string The language code. |
Definition at line 562 of file languages.inc.
References loadFile().
languages::getUntraslatedSpecialPages | ( | $ | code | ) |
Get the untranslated special page names.
$code | string The language code. |
Definition at line 698 of file languages.inc.
References $key, $specialPageAliases, $value, array(), as, and loadFile().
languages::loadFile | ( | $ | code | ) | [protected] |
Load the language file.
$code | string The language code. |
Reimplemented in extensionLanguages.
Definition at line 93 of file languages.inc.
References $fallback, $magicWords, $messages, $namespaceAliases, $namespaceNames, $specialPageAliases, array(), and Language\getMessagesFileName().
Referenced by getCaseMismatchMagicWords(), getFallback(), getMagicWords(), getNamespaceAliases(), getNamespaceNames(), getObsoleteMagicWords(), getObsoleteSpecialPages(), getOverridingMagicWords(), getProblematicProjectTalks(), getSpecialPageAliases(), getUntranslatedMagicWords(), getUntranslatedNamespaces(), getUntraslatedSpecialPages(), loadGeneralMessages(), and loadMessages().
languages::loadGeneralMessages | ( | ) | [private] |
Load the messages for English and divide them to groups: all - all the messages.
required - messages which should be translated to other languages in order to get a complete translation. optional - messages which can be translated to other languages, but it's not required for a complete translation. ignored - messages which should not be translated to other languages. translatable - messages which are either required or optional, but can be translated from English.
Definition at line 174 of file languages.inc.
References $key, $value, array(), as, and loadFile().
Referenced by getDuplicateMessages(), getEmptyMessages(), getGeneralMessages(), getMessagesWithDubiousLinks(), getMessagesWithMismatchVariables(), getMessagesWithoutPlural(), getMessagesWithUnbalanced(), getMessagesWithWhitespace(), getMessagesWithWrongChars(), getNonXHTMLMessages(), getObsoleteMessages(), getUntranslatedMessages(), and loadMessages().
languages::loadMessages | ( | $ | code | ) | [private] |
Load the messages for a specific language (which is not English) and divide them to groups: all - all the messages.
required - messages which should be translated in order to get a complete translation. optional - messages which can be translated, the fallback translation is used if not translated. obsolete - messages which should not be translated, either because they do not exist, or they are ignored messages. translated - messages which are either required or optional, but translated from English and needed.
$code | string The language code. |
Definition at line 142 of file languages.inc.
References $key, $value, array(), as, loadFile(), and loadGeneralMessages().
Referenced by getDuplicateMessages(), getEmptyMessages(), getMessages(), getMessagesWithDubiousLinks(), getMessagesWithMismatchVariables(), getMessagesWithoutPlural(), getMessagesWithUnbalanced(), getMessagesWithWhitespace(), getMessagesWithWrongChars(), getNonXHTMLMessages(), getObsoleteMessages(), and getUntranslatedMessages().
languages::$mFallback [protected] |
Definition at line 32 of file languages.inc.
languages::$mGeneralMessages [protected] |
Definition at line 33 of file languages.inc.
languages::$mIgnoredMessages [protected] |
Definition at line 34 of file languages.inc.
languages::$mLanguages [protected] |
Definition at line 28 of file languages.inc.
languages::$mMagicWords [protected] |
Definition at line 39 of file languages.inc.
languages::$mMessages [protected] |
Definition at line 31 of file languages.inc.
languages::$mNamespaceAliases [protected] |
Definition at line 38 of file languages.inc.
languages::$mNamespaceNames [protected] |
Definition at line 37 of file languages.inc.
languages::$mOptionalMessages [protected] |
Definition at line 35 of file languages.inc.
languages::$mRawMessages [protected] |
Definition at line 30 of file languages.inc.
languages::$mSpecialPageAliases [protected] |
Definition at line 40 of file languages.inc.