MediaWiki  REL1_19
languages Class Reference
Inheritance diagram for languages:

List of all members.

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.

Detailed Description

Definition at line 27 of file languages.inc.


Constructor & Destructor Documentation

languages::__construct ( exif = true)

Load the list of languages: all the Messages*.php files in the languages directory.

Parameters:
$exifTreat the EXIF messages?

Definition at line 48 of file languages.inc.

References $wgEXIFMessages, $wgIgnoredMessages, $wgOptionalMessages, and Language\getLanguageNames().

Here is the call graph for this function:


Member Function Documentation

Get the magic words which do not match the case-sensitivity of the original words.

Parameters:
$codestring The language code.
Returns:
array The magic words whose case does not match in this language.

Definition at line 673 of file languages.inc.

References $magicWords, and loadFile().

Here is the call graph for this function:

Get the duplicate messages for a specific language.

Parameters:
$codestring The language code.
Returns:
array The duplicate messages for this language.

Definition at line 310 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the empty messages.

Parameters:
$codestring The language code.
Returns:
array The empty messages for this language.

Definition at line 392 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get fallback language code for a specific language.

Parameters:
$codestring The language code.
Returns:
string Fallback code.

Definition at line 237 of file languages.inc.

References loadFile().

Here is the call graph for this function:

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.

Returns:
array The general English messages.

Definition at line 225 of file languages.inc.

References loadGeneralMessages().

Here is the call graph for this function:

Get the ignored messages list.

Returns:
array The ignored messages list.

Definition at line 75 of file languages.inc.

Get the language list.

Returns:
array The language list.

Definition at line 66 of file languages.inc.

Get magic words for a specific language.

Parameters:
$codestring The language code.
Returns:
Magic words.

Definition at line 273 of file languages.inc.

References loadFile().

Here is the call graph for this function:

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.

Parameters:
$codestring The language code.
Returns:
string The messages in this language.

Definition at line 210 of file languages.inc.

References loadMessages().

Here is the call graph for this function:

Get the messages which include dubious links.

Parameters:
$codestring The language code.
Returns:
array The messages which include dubious links in this language.

Definition at line 495 of file languages.inc.

References $matches, $messages, Title\legalChars(), loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the messages whose variables do not match the original ones.

Parameters:
$codestring The language code.
Returns:
array The messages whose variables do not match the original ones.

Definition at line 342 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the messages which do not use plural.

Parameters:
$codestring The language code.
Returns:
array The messages which do not use plural in this language.

Definition at line 373 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the messages which include unbalanced brackets.

Parameters:
$codestring The language code.
Returns:
array The messages which include unbalanced brackets in this language.

Definition at line 524 of file languages.inc.

References $messages, loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the messages with trailing whitespace.

Parameters:
$codestring The language code.
Returns:
array The messages with trailing whitespace in this language.

Definition at line 411 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the messages which include wrong characters.

Parameters:
$codestring The language code.
Returns:
array The messages which include wrong characters in this language.

Definition at line 458 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get namespace aliases for a specific language.

Parameters:
$codestring The language code.
Returns:
Namespace aliases.

Definition at line 261 of file languages.inc.

References loadFile().

Here is the call graph for this function:

Get namespace names for a specific language.

Parameters:
$codestring The language code.
Returns:
Namespace names.

Definition at line 249 of file languages.inc.

References loadFile().

Here is the call graph for this function:

Get the non-XHTML messages.

Parameters:
$codestring The language code.
Returns:
array The non-XHTML messages for this language.

Definition at line 430 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the obsolete magic words.

Parameters:
$codestring The language code.
Returns:
array The obsolete magic words in this language.

Definition at line 625 of file languages.inc.

References $magicWords, and loadFile().

Here is the call graph for this function:

Get the obsolete messages for a specific language.

Parameters:
$codestring The language code.
Returns:
array The obsolete messages for this language.

Definition at line 329 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the obsolete special page names.

Parameters:
$codestring The language code.
Returns:
array The obsolete special page names in this language.

Definition at line 715 of file languages.inc.

References $specialPageAliases, and loadFile().

Here is the call graph for this function:

Get the optional messages list.

Returns:
array The optional messages list.

Definition at line 84 of file languages.inc.

Get the magic words that override the original English magic word.

Parameters:
$codestring The language code.
Returns:
array The overriding magic words in this language.

Definition at line 644 of file languages.inc.

References $magicWords, and loadFile().

Here is the call graph for this function:

Get the project talk namespace names with no $1.

Parameters:
$codestring The language code.
Returns:
array The problematic project talk namespaces in this language.

Definition at line 577 of file languages.inc.

References loadFile().

Here is the call graph for this function:

Get special page aliases for a specific language.

Parameters:
$codestring The language code.
Returns:
Special page aliases.

Definition at line 285 of file languages.inc.

References loadFile().

Here is the call graph for this function:

Get the untranslated magic words.

Parameters:
$codestring The language code.
Returns:
array The untranslated magic words in this language.

Definition at line 606 of file languages.inc.

References $magicWords, and loadFile().

Here is the call graph for this function:

Get the untranslated messages for a specific language.

Parameters:
$codestring The language code.
Returns:
array The untranslated messages for this language.

Definition at line 297 of file languages.inc.

References loadGeneralMessages(), and loadMessages().

Here is the call graph for this function:

Get the untranslated namespace names.

Parameters:
$codestring The language code.
Returns:
array The untranslated namespace names in this language.

Definition at line 562 of file languages.inc.

References loadFile().

Here is the call graph for this function:

Get the untranslated special page names.

Parameters:
$codestring The language code.
Returns:
array The untranslated special page names in this language.

Definition at line 696 of file languages.inc.

References $specialPageAliases, and loadFile().

Here is the call graph for this function:

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 loadFile().

Referenced by getDuplicateMessages(), getEmptyMessages(), getGeneralMessages(), getMessagesWithDubiousLinks(), getMessagesWithMismatchVariables(), getMessagesWithoutPlural(), getMessagesWithUnbalanced(), getMessagesWithWhitespace(), getMessagesWithWrongChars(), getNonXHTMLMessages(), getObsoleteMessages(), getUntranslatedMessages(), and loadMessages().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
$codestring The language code.

Definition at line 142 of file languages.inc.

References loadFile(), and loadGeneralMessages().

Referenced by getDuplicateMessages(), getEmptyMessages(), getMessages(), getMessagesWithDubiousLinks(), getMessagesWithMismatchVariables(), getMessagesWithoutPlural(), getMessagesWithUnbalanced(), getMessagesWithWhitespace(), getMessagesWithWrongChars(), getNonXHTMLMessages(), getObsoleteMessages(), and getUntranslatedMessages().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file: