languages Class Reference
[MaintenanceLanguage]

Inherited by extensionLanguages.

List of all members.

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.


Detailed Description

Definition at line 12 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:
$exif Treat the EXIF messages?

Definition at line 32 of file languages.inc.

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


Member Function Documentation

languages::getCaseMismatchMagicWords ( code  ) 

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

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

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.

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

Definition at line 277 of file languages.inc.

References $code, $key, loadGeneralMessages(), and loadMessages().

languages::getEmptyMessages ( code  ) 

Get the empty messages.

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

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.

Returns:
The general English messages.

Definition at line 204 of file languages.inc.

References loadGeneralMessages().

languages::getIgnoredMessages (  ) 

Get the ignored messages list.

Returns:
The ignored messages list.

Definition at line 59 of file languages.inc.

languages::getLanguages (  ) 

Get the language list.

Returns:
The language list.

Definition at line 50 of file languages.inc.

languages::getMagicWords ( code  ) 

Get magic words for a specific language.

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

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.

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

Definition at line 189 of file languages.inc.

References $code, and loadMessages().

languages::getMessagesWithDubiousLinks ( code  ) 

Get the messages which include dubious links.

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

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.

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

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.

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

Definition at line 340 of file languages.inc.

References $code, $key, loadGeneralMessages(), and loadMessages().

languages::getMessagesWithUnbalanced ( code  ) 

Get the messages which include unbalanced brackets.

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

Definition at line 491 of file languages.inc.

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

languages::getMessagesWithWhitespace ( code  ) 

Get the messages with trailing whitespace.

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

Definition at line 378 of file languages.inc.

References $code, $key, loadGeneralMessages(), and loadMessages().

languages::getMessagesWithWrongChars ( code  ) 

Get the messages which include wrong characters.

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

Definition at line 425 of file languages.inc.

References $code, $key, loadGeneralMessages(), and loadMessages().

languages::getNamespaceAliases ( code  ) 

Get namespace aliases for a specific language.

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

Definition at line 228 of file languages.inc.

References $code, and loadFile().

languages::getNamespaceNames ( code  ) 

Get namespace names for a specific language.

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

Definition at line 216 of file languages.inc.

References $code, and loadFile().

languages::getNonXHTMLMessages ( code  ) 

Get the non-XHTML messages.

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

Definition at line 397 of file languages.inc.

References $code, $key, loadGeneralMessages(), and loadMessages().

languages::getObsoleteMagicWords ( code  ) 

Get the obsolete magic words.

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

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.

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

Definition at line 296 of file languages.inc.

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

languages::getObsoleteSpecialPages ( code  ) 

Get the obsolete special page names.

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

Definition at line 680 of file languages.inc.

References $code, $key, $specialPageAliases, and loadFile().

languages::getOptionalMessages (  ) 

Get the optional messages list.

Returns:
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.

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

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.

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

Definition at line 542 of file languages.inc.

References $code, $key, and loadFile().

languages::getSpecialPageAliases ( code  ) 

Get special page aliases for a specific language.

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

Definition at line 252 of file languages.inc.

References $code, and loadFile().

languages::getUntranslatedMagicWords ( code  ) 

Get the untranslated magic words.

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

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.

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

Definition at line 264 of file languages.inc.

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

languages::getUntranslatedNamespaces ( code  ) 

Get the untranslated namespace names.

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

Definition at line 529 of file languages.inc.

References $code, and loadFile().

languages::getUntraslatedSpecialPages ( code  ) 

Get the untranslated special page names.

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

Definition at line 661 of file languages.inc.

References $code, $key, $specialPageAliases, and loadFile().

languages::loadFile ( code  )  [protected]

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.

Parameters:
$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().


Member Data Documentation

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.


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

Generated on Sat Sep 5 02:08:40 2009 for MediaWiki by  doxygen 1.5.9