MediaWiki
REL1_23
|
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 | |
array | $mFallback |
Fallback language in each language *. | |
array | $mGeneralMessages |
General messages in English, divided to groups *. | |
array | $mIgnoredMessages |
All the messages which should be exist only in the English file *. | |
array | $mLanguages |
List of languages *. | |
array | $mMagicWords |
Magic words *. | |
array | $mMessages |
Messages in each language (except for English), divided to groups *. | |
array | $mNamespaceAliases |
Namespace aliases *. | |
array | $mNamespaceNames |
Namespace names *. | |
array | $mOptionalMessages |
All the messages which may be translated or not, depending on the language *. | |
array | $mRawMessages |
Raw list of the messages in each language *. | |
array | $mSpecialPageAliases |
Special page aliases *. | |
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 56 of file languages.inc.
References $wgEXIFMessages, $wgIgnoredMessages, and $wgOptionalMessages.
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 726 of file languages.inc.
Languages::getDuplicateMessages | ( | $ | code | ) |
Get the duplicate messages for a specific language.
$code | string The language code. |
Definition at line 344 of file languages.inc.
Languages::getEmptyMessages | ( | $ | code | ) |
Get the empty messages.
$code | string The language code. |
Definition at line 434 of file languages.inc.
Languages::getFallback | ( | $ | code | ) |
Get fallback language code for a specific language.
$code | string The language code. |
Definition at line 265 of file languages.inc.
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 252 of file languages.inc.
Get the ignored messages list.
Definition at line 83 of file languages.inc.
Get the language list.
Definition at line 74 of file languages.inc.
Languages::getMagicWords | ( | $ | code | ) |
Get magic words for a specific language.
$code | string The language code. |
Definition at line 304 of file languages.inc.
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 233 of file languages.inc.
Languages::getMessagesWithDubiousLinks | ( | $ | code | ) |
Get the messages which include dubious links.
$code | string The language code. |
Definition at line 541 of file languages.inc.
Get the messages whose variables do not match the original ones.
$code | string The language code. |
Definition at line 378 of file languages.inc.
Languages::getMessagesWithoutPlural | ( | $ | code | ) |
Get the messages which do not use plural.
$code | string The language code. |
Definition at line 412 of file languages.inc.
Languages::getMessagesWithUnbalanced | ( | $ | code | ) |
Get the messages which include unbalanced brackets.
$code | string The language code. |
Definition at line 571 of file languages.inc.
Languages::getMessagesWithWhitespace | ( | $ | code | ) |
Get the messages with trailing whitespace.
$code | string The language code. |
Definition at line 454 of file languages.inc.
Languages::getMessagesWithWrongChars | ( | $ | code | ) |
Get the messages which include wrong characters.
$code | string The language code. |
Definition at line 503 of file languages.inc.
Languages::getNamespaceAliases | ( | $ | code | ) |
Get namespace aliases for a specific language.
$code | string The language code. |
Definition at line 291 of file languages.inc.
Languages::getNamespaceNames | ( | $ | code | ) |
Get namespace names for a specific language.
$code | string The language code. |
Definition at line 278 of file languages.inc.
Languages::getNonXHTMLMessages | ( | $ | code | ) |
Get the non-XHTML messages.
$code | string The language code. |
Definition at line 474 of file languages.inc.
Languages::getObsoleteMagicWords | ( | $ | code | ) |
Get the obsolete magic words.
$code | string The language code. |
Definition at line 676 of file languages.inc.
Languages::getObsoleteMessages | ( | $ | code | ) |
Get the obsolete messages for a specific language.
$code | string The language code. |
Definition at line 364 of file languages.inc.
Languages::getObsoleteSpecialPages | ( | $ | code | ) |
Get the obsolete special page names.
$code | string The language code. |
Definition at line 770 of file languages.inc.
Get the optional messages list.
Definition at line 92 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 696 of file languages.inc.
Languages::getProblematicProjectTalks | ( | $ | code | ) |
Get the project talk namespace names with no $1.
$code | string The language code. |
Definition at line 627 of file languages.inc.
Languages::getSpecialPageAliases | ( | $ | code | ) |
Get special page aliases for a specific language.
$code | string The language code. |
Definition at line 317 of file languages.inc.
Languages::getUntranslatedMagicWords | ( | $ | code | ) |
Get the untranslated magic words.
$code | string The language code. |
Definition at line 656 of file languages.inc.
Languages::getUntranslatedMessages | ( | $ | code | ) |
Get the untranslated messages for a specific language.
$code | string The language code. |
Definition at line 330 of file languages.inc.
Languages::getUntranslatedNamespaces | ( | $ | code | ) |
Get the untranslated namespace names.
$code | string The language code. |
Definition at line 609 of file languages.inc.
Languages::getUntraslatedSpecialPages | ( | $ | code | ) |
Get the untranslated special page names.
$code | string The language code. |
Definition at line 750 of file languages.inc.
Languages::loadFile | ( | $ | code | ) | [protected] |
Load the language file.
$code | string The language code. |
Reimplemented in ExtensionLanguages.
Definition at line 101 of file languages.inc.
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 194 of file languages.inc.
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 159 of file languages.inc.
array Languages::$mFallback [protected] |
Fallback language in each language *.
Definition at line 34 of file languages.inc.
array Languages::$mGeneralMessages [protected] |
General messages in English, divided to groups *.
Definition at line 36 of file languages.inc.
array Languages::$mIgnoredMessages [protected] |
All the messages which should be exist only in the English file *.
Definition at line 38 of file languages.inc.
array Languages::$mLanguages [protected] |
List of languages *.
Definition at line 28 of file languages.inc.
array Languages::$mMagicWords [protected] |
Magic words *.
Definition at line 46 of file languages.inc.
array Languages::$mMessages [protected] |
Messages in each language (except for English), divided to groups *.
Definition at line 32 of file languages.inc.
array Languages::$mNamespaceAliases [protected] |
Namespace aliases *.
Definition at line 44 of file languages.inc.
array Languages::$mNamespaceNames [protected] |
Namespace names *.
Definition at line 42 of file languages.inc.
array Languages::$mOptionalMessages [protected] |
All the messages which may be translated or not, depending on the language *.
Definition at line 40 of file languages.inc.
array Languages::$mRawMessages [protected] |
Raw list of the messages in each language *.
Definition at line 30 of file languages.inc.
array Languages::$mSpecialPageAliases [protected] |
Special page aliases *.
Definition at line 48 of file languages.inc.