MediaWiki
1.28.0
|
Public Member Functions | |
__construct () | |
Load the list of languages: all the Messages*.php files in the languages directory. More... | |
getCaseMismatchMagicWords ($code) | |
Get the magic words which do not match the case-sensitivity of the original words. More... | |
getDuplicateMessages ($code) | |
Get the duplicate messages for a specific language. More... | |
getEmptyMessages ($code) | |
Get the empty messages. More... | |
getFallback ($code) | |
Get fallback language code for a specific language. More... | |
getGeneralMessages () | |
Get all the general English messages, divided to groups: all - all the messages. More... | |
getIgnoredMessages () | |
Get the ignored messages list. More... | |
getLanguages () | |
Get the language list. More... | |
getMagicWords ($code) | |
Get magic words for a specific language. More... | |
getMessages ($code) | |
Get all the messages for a specific language (not English), without the fallback language messages, divided to groups: all - all the messages. More... | |
getMessagesWithDubiousLinks ($code) | |
Get the messages which include dubious links. More... | |
getMessagesWithMismatchVariables ($code) | |
Get the messages whose variables do not match the original ones. More... | |
getMessagesWithoutPlural ($code) | |
Get the messages which do not use plural. More... | |
getMessagesWithUnbalanced ($code) | |
Get the messages which include unbalanced brackets. More... | |
getMessagesWithWhitespace ($code) | |
Get the messages with trailing whitespace. More... | |
getMessagesWithWrongChars ($code) | |
Get the messages which include wrong characters. More... | |
getNamespaceAliases ($code) | |
Get namespace aliases for a specific language. More... | |
getNamespaceNames ($code) | |
Get namespace names for a specific language. More... | |
getNonXHTMLMessages ($code) | |
Get the non-XHTML messages. More... | |
getObsoleteMagicWords ($code) | |
Get the obsolete magic words. More... | |
getObsoleteMessages ($code) | |
Get the obsolete messages for a specific language. More... | |
getObsoleteSpecialPages ($code) | |
Get the obsolete special page names. More... | |
getOptionalMessages () | |
Get the optional messages list. More... | |
getOverridingMagicWords ($code) | |
Get the magic words that override the original English magic word. More... | |
getProblematicProjectTalks ($code) | |
Get the project talk namespace names with no $1. More... | |
getSpecialPageAliases ($code) | |
Get special page aliases for a specific language. More... | |
getUntranslatedMagicWords ($code) | |
Get the untranslated magic words. More... | |
getUntranslatedMessages ($code) | |
Get the untranslated messages for a specific language. More... | |
getUntranslatedNamespaces ($code) | |
Get the untranslated namespace names. More... | |
getUntraslatedSpecialPages ($code) | |
Get the untranslated special page names. More... | |
Protected Member Functions | |
loadFile ($code) | |
Load the language file. More... | |
Protected Attributes | |
array | $mFallback |
Fallback language in each language. More... | |
array | $mGeneralMessages |
General messages in English, divided to groups. More... | |
array | $mIgnoredMessages |
All the messages which should be exist only in the English file. More... | |
array | $mLanguages |
List of languages. More... | |
array | $mMagicWords |
Magic words. More... | |
array | $mMessages |
Messages in each language (except for English), divided to groups. More... | |
array | $mNamespaceAliases |
Namespace aliases. More... | |
array | $mNamespaceNames |
Namespace names. More... | |
array | $mOptionalMessages |
All the messages which may be translated or not, depending on the language. More... | |
array | $mRawMessages |
Raw list of the messages in each language. More... | |
array | $mSpecialPageAliases |
Special page aliases. More... | |
Private Member Functions | |
loadGeneralMessages () | |
Load the messages for English and divide them to groups: all - all the messages. More... | |
loadMessages ($code) | |
Load the messages for a specific language (which is not English) and divide them to groups: all - all the messages. More... | |
Definition at line 27 of file languages.inc.
Languages::__construct | ( | ) |
Load the list of languages: all the Messages*.php files in the languages directory.
Definition at line 65 of file languages.inc.
References Language\fetchLanguageNames(), and Hooks\run().
Languages::getCaseMismatchMagicWords | ( | $code | ) |
Get the magic words which do not match the case-sensitivity of the original words.
string | $code | The language code. |
Definition at line 730 of file languages.inc.
References $code, $magicWords, as, and loadFile().
Languages::getDuplicateMessages | ( | $code | ) |
Get the duplicate messages for a specific language.
string | $code | The language code. |
Definition at line 348 of file languages.inc.
References $code, $value, as, loadGeneralMessages(), and loadMessages().
Languages::getEmptyMessages | ( | $code | ) |
Get the empty messages.
string | $code | The language code. |
Definition at line 438 of file languages.inc.
References $code, $value, as, loadGeneralMessages(), and loadMessages().
Languages::getFallback | ( | $code | ) |
Get fallback language code for a specific language.
string | $code | The language code. |
Definition at line 269 of file languages.inc.
References $code, and loadFile().
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 256 of file languages.inc.
References $mGeneralMessages, and loadGeneralMessages().
Languages::getIgnoredMessages | ( | ) |
Get the ignored messages list.
Definition at line 87 of file languages.inc.
References $mIgnoredMessages.
Languages::getLanguages | ( | ) |
Get the language list.
Definition at line 78 of file languages.inc.
References $mLanguages.
Languages::getMagicWords | ( | $code | ) |
Get magic words for a specific language.
string | $code | The language code. |
Definition at line 308 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.
string | $code | The language code. |
Definition at line 237 of file languages.inc.
References $code, and loadMessages().
Languages::getMessagesWithDubiousLinks | ( | $code | ) |
Get the messages which include dubious links.
string | $code | The language code. |
Definition at line 545 of file languages.inc.
References $code, $matches, $messages, $value, as, Title\legalChars(), loadGeneralMessages(), and loadMessages().
Languages::getMessagesWithMismatchVariables | ( | $code | ) |
Get the messages whose variables do not match the original ones.
string | $code | The language code. |
Definition at line 382 of file languages.inc.
References $code, $value, as, loadGeneralMessages(), and loadMessages().
Languages::getMessagesWithoutPlural | ( | $code | ) |
Get the messages which do not use plural.
string | $code | The language code. |
Definition at line 416 of file languages.inc.
References $code, $value, as, loadGeneralMessages(), and loadMessages().
Languages::getMessagesWithUnbalanced | ( | $code | ) |
Get the messages which include unbalanced brackets.
string | $code | The language code. |
Definition at line 575 of file languages.inc.
References $code, $messages, $value, as, loadGeneralMessages(), and loadMessages().
Languages::getMessagesWithWhitespace | ( | $code | ) |
Get the messages with trailing whitespace.
string | $code | The language code. |
Definition at line 458 of file languages.inc.
References $code, $value, as, loadGeneralMessages(), and loadMessages().
Languages::getMessagesWithWrongChars | ( | $code | ) |
Get the messages which include wrong characters.
string | $code | The language code. |
Definition at line 507 of file languages.inc.
References $code, $value, as, loadGeneralMessages(), and loadMessages().
Languages::getNamespaceAliases | ( | $code | ) |
Get namespace aliases for a specific language.
string | $code | The language code. |
Definition at line 295 of file languages.inc.
References $code, and loadFile().
Languages::getNamespaceNames | ( | $code | ) |
Get namespace names for a specific language.
string | $code | The language code. |
Definition at line 282 of file languages.inc.
References $code, and loadFile().
Languages::getNonXHTMLMessages | ( | $code | ) |
Get the non-XHTML messages.
string | $code | The language code. |
Definition at line 478 of file languages.inc.
References $code, $value, as, loadGeneralMessages(), and loadMessages().
Languages::getObsoleteMagicWords | ( | $code | ) |
Get the obsolete magic words.
string | $code | The language code. |
Definition at line 680 of file languages.inc.
References $code, $magicWords, $value, as, and loadFile().
Languages::getObsoleteMessages | ( | $code | ) |
Get the obsolete messages for a specific language.
string | $code | The language code. |
Definition at line 368 of file languages.inc.
References $code, loadGeneralMessages(), and loadMessages().
Languages::getObsoleteSpecialPages | ( | $code | ) |
Get the obsolete special page names.
string | $code | The language code. |
Definition at line 774 of file languages.inc.
References $code, $specialPageAliases, $value, as, and loadFile().
Languages::getOptionalMessages | ( | ) |
Get the optional messages list.
Definition at line 96 of file languages.inc.
References $mOptionalMessages.
Languages::getOverridingMagicWords | ( | $code | ) |
Get the magic words that override the original English magic word.
string | $code | The language code. |
Definition at line 700 of file languages.inc.
References $code, $magicWords, as, and loadFile().
Languages::getProblematicProjectTalks | ( | $code | ) |
Get the project talk namespace names with no $1.
string | $code | The language code. |
Definition at line 631 of file languages.inc.
References $code, $namespaces, $value, as, loadFile(), and NS_PROJECT_TALK.
Languages::getSpecialPageAliases | ( | $code | ) |
Get special page aliases for a specific language.
string | $code | The language code. |
Definition at line 321 of file languages.inc.
References $code, and loadFile().
Languages::getUntranslatedMagicWords | ( | $code | ) |
Get the untranslated magic words.
string | $code | The language code. |
Definition at line 660 of file languages.inc.
References $code, $magicWords, $value, as, and loadFile().
Languages::getUntranslatedMessages | ( | $code | ) |
Get the untranslated messages for a specific language.
string | $code | The language code. |
Definition at line 334 of file languages.inc.
References $code, loadGeneralMessages(), and loadMessages().
Languages::getUntranslatedNamespaces | ( | $code | ) |
Get the untranslated namespace names.
string | $code | The language code. |
Definition at line 613 of file languages.inc.
References $code, loadFile(), and NS_MAIN.
Languages::getUntraslatedSpecialPages | ( | $code | ) |
Get the untranslated special page names.
string | $code | The language code. |
Definition at line 754 of file languages.inc.
References $code, $specialPageAliases, $value, as, and loadFile().
|
protected |
Load the language file.
string | $code | The language code. |
Definition at line 105 of file languages.inc.
References $code, $fallback, $magicWords, $namespaceAliases, $namespaceNames, $specialPageAliases, Language\getJsonMessagesFileName(), Language\getLocalisationCache(), and Language\getMessagesFileName().
Referenced by getCaseMismatchMagicWords(), getFallback(), getMagicWords(), getNamespaceAliases(), getNamespaceNames(), getObsoleteMagicWords(), getObsoleteSpecialPages(), getOverridingMagicWords(), getProblematicProjectTalks(), getSpecialPageAliases(), getUntranslatedMagicWords(), getUntranslatedNamespaces(), getUntraslatedSpecialPages(), loadGeneralMessages(), and loadMessages().
|
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 198 of file languages.inc.
References $value, as, and loadFile().
Referenced by getDuplicateMessages(), getEmptyMessages(), getGeneralMessages(), getMessagesWithDubiousLinks(), getMessagesWithMismatchVariables(), getMessagesWithoutPlural(), getMessagesWithUnbalanced(), getMessagesWithWhitespace(), getMessagesWithWrongChars(), getNonXHTMLMessages(), getObsoleteMessages(), getUntranslatedMessages(), and loadMessages().
|
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.
string | $code | The language code. |
Definition at line 163 of file languages.inc.
References $code, $value, as, loadFile(), and loadGeneralMessages().
Referenced by getDuplicateMessages(), getEmptyMessages(), getMessages(), getMessagesWithDubiousLinks(), getMessagesWithMismatchVariables(), getMessagesWithoutPlural(), getMessagesWithUnbalanced(), getMessagesWithWhitespace(), getMessagesWithWrongChars(), getNonXHTMLMessages(), getObsoleteMessages(), and getUntranslatedMessages().
|
protected |
Fallback language in each language.
Definition at line 38 of file languages.inc.
|
protected |
General messages in English, divided to groups.
Definition at line 41 of file languages.inc.
Referenced by getGeneralMessages().
|
protected |
All the messages which should be exist only in the English file.
Definition at line 44 of file languages.inc.
Referenced by getIgnoredMessages().
|
protected |
|
protected |
Magic words.
Definition at line 56 of file languages.inc.
|
protected |
Messages in each language (except for English), divided to groups.
Definition at line 35 of file languages.inc.
|
protected |
Namespace aliases.
Definition at line 53 of file languages.inc.
|
protected |
Namespace names.
Definition at line 50 of file languages.inc.
|
protected |
All the messages which may be translated or not, depending on the language.
Definition at line 47 of file languages.inc.
Referenced by getOptionalMessages().
|
protected |
Raw list of the messages in each language.
Definition at line 32 of file languages.inc.
|
protected |
Special page aliases.
Definition at line 59 of file languages.inc.