Public Member Functions | |
__construct ($exif=true) | |
Load the list of languages: all the Messages*.php files in the languages directory. | |
getLanguages () | |
Get the language list. | |
getIgnoredMessages () | |
Get the ignored messages list. | |
getOptionalMessages () | |
Get the optional messages list. | |
getMessages ($code) | |
Get all the messages for a specific language (not English), without the fallback language messages, divided to groups: all - all the messages. | |
getGeneralMessages () | |
Get all the general English messages, divided to groups: all - all the messages. | |
getNamespaceNames ($code) | |
Get namespace names for a specific language. | |
getNamespaceAliases ($code) | |
Get namespace aliases for a specific language. | |
getMagicWords ($code) | |
Get magic words for a specific language. | |
getSpecialPageAliases ($code) | |
Get special page aliases for a specific language. | |
getUntranslatedMessages ($code) | |
Get the untranslated messages for a specific language. | |
getDuplicateMessages ($code) | |
Get the duplicate messages for a specific language. | |
getObsoleteMessages ($code) | |
Get the obsolete messages for a specific language. | |
getMessagesWithMismatchVariables ($code) | |
Get the messages whose variables do not match the original ones. | |
getMessagesWithoutPlural ($code) | |
Get the messages which do not use plural. | |
getEmptyMessages ($code) | |
Get the empty messages. | |
getMessagesWithWhitespace ($code) | |
Get the messages with trailing whitespace. | |
getNonXHTMLMessages ($code) | |
Get the non-XHTML messages. | |
getMessagesWithWrongChars ($code) | |
Get the messages which include wrong characters. | |
getMessagesWithDubiousLinks ($code) | |
Get the messages which include dubious links. | |
getMessagesWithUnbalanced ($code) | |
Get the messages which include unbalanced brackets. | |
getUntranslatedNamespaces ($code) | |
Get the untranslated namespace names. | |
getProblematicProjectTalks ($code) | |
Get the project talk namespace names with no $1. | |
getUntranslatedMagicWords ($code) | |
Get the untranslated magic words. | |
getObsoleteMagicWords ($code) | |
Get the obsolete magic words. | |
getOverridingMagicWords ($code) | |
Get the magic words that override the original English magic word. | |
getCaseMismatchMagicWords ($code) | |
Get the magic words which do not match the case-sensitivity of the original words. | |
getUntraslatedSpecialPages ($code) | |
Get the untranslated special page names. | |
getObsoleteSpecialPages ($code) | |
Get the obsolete special page names. | |
Protected Member Functions | |
loadFile ($code) | |
Load the language file. | |
Protected Attributes | |
$mLanguages | |
$mRawMessages | |
$mMessages | |
$mGeneralMessages | |
$mIgnoredMessages | |
$mOptionalMessages | |
$mNamespaceNames | |
$mNamespaceAliases | |
$mMagicWords | |
$mSpecialPageAliases | |
Private Member Functions | |
loadMessages ($code) | |
Load the messages for a specific language (which is not English) and divide them to groups: all - all the messages. | |
loadGeneralMessages () | |
Load the messages for English and divide them to groups: all - all the messages. |
Definition at line 12 of file languages.inc.
languages::__construct | ( | $ | exif = true |
) |
Load the list of languages: all the Messages*.php files in the languages directory.
$exif | Treat the EXIF messages? |
Definition at line 32 of file languages.inc.
References $wgEXIFMessages, $wgIgnoredMessages, $wgOptionalMessages, Language::getLanguageNames(), and sort.
languages::getCaseMismatchMagicWords | ( | $ | code | ) |
Get the magic words which do not match the case-sensitivity of the original words.
$code | The language code. |
Definition at line 638 of file languages.inc.
References $code, $key, $magicWords, and loadFile().
languages::getDuplicateMessages | ( | $ | code | ) |
Get the duplicate messages for a specific language.
$code | The language code. |
Definition at line 277 of file languages.inc.
References $code, $key, loadGeneralMessages(), and loadMessages().
languages::getEmptyMessages | ( | $ | code | ) |
Get the empty messages.
$code | The language code. |
Definition at line 359 of file languages.inc.
References $code, $key, loadGeneralMessages(), and loadMessages().
languages::getGeneralMessages | ( | ) |
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 204 of file languages.inc.
References loadGeneralMessages().
languages::getIgnoredMessages | ( | ) |
Get the ignored messages list.
Definition at line 59 of file languages.inc.
languages::getLanguages | ( | ) |
languages::getMagicWords | ( | $ | code | ) |
Get magic words for a specific language.
$code | The language code. |
Definition at line 240 of file languages.inc.
References $code, and 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 | The language code. |
Definition at line 189 of file languages.inc.
References $code, and loadMessages().
languages::getMessagesWithDubiousLinks | ( | $ | code | ) |
Get the messages which include dubious links.
$code | The language code. |
Definition at line 462 of file languages.inc.
References $code, $i, $key, $messages, Title::legalChars(), loadGeneralMessages(), and loadMessages().
languages::getMessagesWithMismatchVariables | ( | $ | code | ) |
Get the messages whose variables do not match the original ones.
$code | The language code. |
Definition at line 309 of file languages.inc.
References $code, $key, loadGeneralMessages(), and loadMessages().
languages::getMessagesWithoutPlural | ( | $ | code | ) |
Get the messages which do not use plural.
$code | The language code. |
Definition at line 340 of file languages.inc.
References $code, $key, loadGeneralMessages(), and loadMessages().
languages::getMessagesWithUnbalanced | ( | $ | code | ) |
Get the messages which include unbalanced brackets.
$code | The language code. |
Definition at line 491 of file languages.inc.
References $code, $key, $messages, loadGeneralMessages(), and loadMessages().
languages::getMessagesWithWhitespace | ( | $ | code | ) |
Get the messages with trailing whitespace.
$code | The language code. |
Definition at line 378 of file languages.inc.
References $code, $key, loadGeneralMessages(), and loadMessages().
languages::getMessagesWithWrongChars | ( | $ | code | ) |
Get the messages which include wrong characters.
$code | The language code. |
Definition at line 425 of file languages.inc.
References $code, $key, loadGeneralMessages(), and loadMessages().
languages::getNamespaceAliases | ( | $ | code | ) |
Get namespace aliases for a specific language.
$code | The language code. |
Definition at line 228 of file languages.inc.
References $code, and loadFile().
languages::getNamespaceNames | ( | $ | code | ) |
Get namespace names for a specific language.
$code | The language code. |
Definition at line 216 of file languages.inc.
References $code, and loadFile().
languages::getNonXHTMLMessages | ( | $ | code | ) |
Get the non-XHTML messages.
$code | The language code. |
Definition at line 397 of file languages.inc.
References $code, $key, loadGeneralMessages(), and loadMessages().
languages::getObsoleteMagicWords | ( | $ | code | ) |
Get the obsolete magic words.
$code | The language code. |
Definition at line 590 of file languages.inc.
References $code, $key, $magicWords, and loadFile().
languages::getObsoleteMessages | ( | $ | code | ) |
Get the obsolete messages for a specific language.
$code | The language code. |
Definition at line 296 of file languages.inc.
References $code, loadGeneralMessages(), and loadMessages().
languages::getObsoleteSpecialPages | ( | $ | code | ) |
Get the obsolete special page names.
$code | The language code. |
Definition at line 680 of file languages.inc.
References $code, $key, $specialPageAliases, and loadFile().
languages::getOptionalMessages | ( | ) |
Get the optional messages list.
Definition at line 68 of file languages.inc.
languages::getOverridingMagicWords | ( | $ | code | ) |
Get the magic words that override the original English magic word.
$code | The language code. |
Definition at line 609 of file languages.inc.
References $code, $key, $magicWords, and loadFile().
languages::getProblematicProjectTalks | ( | $ | code | ) |
Get the project talk namespace names with no $1.
$code | The language code. |
Definition at line 542 of file languages.inc.
References $code, $key, and loadFile().
languages::getSpecialPageAliases | ( | $ | code | ) |
Get special page aliases for a specific language.
$code | The language code. |
Definition at line 252 of file languages.inc.
References $code, and loadFile().
languages::getUntranslatedMagicWords | ( | $ | code | ) |
Get the untranslated magic words.
$code | The language code. |
Definition at line 571 of file languages.inc.
References $code, $key, $magicWords, and loadFile().
languages::getUntranslatedMessages | ( | $ | code | ) |
Get the untranslated messages for a specific language.
$code | The language code. |
Definition at line 264 of file languages.inc.
References $code, loadGeneralMessages(), and loadMessages().
languages::getUntranslatedNamespaces | ( | $ | code | ) |
Get the untranslated namespace names.
$code | The language code. |
Definition at line 529 of file languages.inc.
References $code, and loadFile().
languages::getUntraslatedSpecialPages | ( | $ | code | ) |
Get the untranslated special page names.
$code | The language code. |
Definition at line 661 of file languages.inc.
References $code, $key, $specialPageAliases, and loadFile().
languages::loadFile | ( | $ | code | ) | [protected] |
Load the language file.
$code | The language code. |
Reimplemented in extensionLanguages.
Definition at line 77 of file languages.inc.
References $code, $filename, $magicWords, $messages, $namespaceAliases, $namespaceNames, $specialPageAliases, and Language::getMessagesFileName().
Referenced by getCaseMismatchMagicWords(), 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 153 of file languages.inc.
References $key, 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 | The language code. |
Definition at line 121 of file languages.inc.
References $code, $key, loadFile(), and loadGeneralMessages().
Referenced by getDuplicateMessages(), getEmptyMessages(), getMessages(), getMessagesWithDubiousLinks(), getMessagesWithMismatchVariables(), getMessagesWithoutPlural(), getMessagesWithUnbalanced(), getMessagesWithWhitespace(), getMessagesWithWrongChars(), getNonXHTMLMessages(), getObsoleteMessages(), and getUntranslatedMessages().
languages::$mGeneralMessages [protected] |
Definition at line 17 of file languages.inc.
languages::$mIgnoredMessages [protected] |
Definition at line 18 of file languages.inc.
languages::$mLanguages [protected] |
Definition at line 13 of file languages.inc.
languages::$mMagicWords [protected] |
Definition at line 23 of file languages.inc.
languages::$mMessages [protected] |
Definition at line 16 of file languages.inc.
languages::$mNamespaceAliases [protected] |
Definition at line 22 of file languages.inc.
languages::$mNamespaceNames [protected] |
Definition at line 21 of file languages.inc.
languages::$mOptionalMessages [protected] |
Definition at line 19 of file languages.inc.
languages::$mRawMessages [protected] |
Definition at line 15 of file languages.inc.
languages::$mSpecialPageAliases [protected] |
Definition at line 24 of file languages.inc.