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.
 getFallback ($code)
 Get fallback language code for a specific language.
 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
 $mFallback
 $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 33 of file languages.inc.

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


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 656 of file languages.inc.

References $code, $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 295 of file languages.inc.

References $code, 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 377 of file languages.inc.

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

languages::getFallback ( code  ) 

Get fallback language code for a specific language.

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

Definition at line 222 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.

Returns:
The general English messages.

Definition at line 210 of file languages.inc.

References loadGeneralMessages().

languages::getIgnoredMessages (  ) 

Get the ignored messages list.

Returns:
The ignored messages list.

Definition at line 60 of file languages.inc.

languages::getLanguages (  ) 

Get the language list.

Returns:
The language list.

Definition at line 51 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 258 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 195 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 480 of file languages.inc.

References $code, $i, $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 327 of file languages.inc.

References $code, 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 358 of file languages.inc.

References $code, 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 509 of file languages.inc.

References $code, $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 396 of file languages.inc.

References $code, 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 443 of file languages.inc.

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

languages::getNamespaceAliases ( code  ) 

Get namespace aliases for a specific language.

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

Definition at line 246 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 234 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 415 of file languages.inc.

References $code, 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 608 of file languages.inc.

References $code, $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 314 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 698 of file languages.inc.

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

languages::getOptionalMessages (  ) 

Get the optional messages list.

Returns:
The optional messages list.

Definition at line 69 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 627 of file languages.inc.

References $code, $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 560 of file languages.inc.

References $code, 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 270 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 589 of file languages.inc.

References $code, $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 282 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 547 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 679 of file languages.inc.

References $code, $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 159 of file languages.inc.

References 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 127 of file languages.inc.

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

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


Member Data Documentation

languages::$mFallback [protected]

Definition at line 17 of file languages.inc.

languages::$mGeneralMessages [protected]

Definition at line 18 of file languages.inc.

languages::$mIgnoredMessages [protected]

Definition at line 19 of file languages.inc.

languages::$mLanguages [protected]

Definition at line 13 of file languages.inc.

languages::$mMagicWords [protected]

Definition at line 24 of file languages.inc.

languages::$mMessages [protected]

Definition at line 16 of file languages.inc.

languages::$mNamespaceAliases [protected]

Definition at line 23 of file languages.inc.

languages::$mNamespaceNames [protected]

Definition at line 22 of file languages.inc.

languages::$mOptionalMessages [protected]

Definition at line 20 of file languages.inc.

languages::$mRawMessages [protected]

Definition at line 15 of file languages.inc.

languages::$mSpecialPageAliases [protected]

Definition at line 25 of file languages.inc.


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

Generated on Sat Apr 30 22:57:41 2011 for MediaWiki by  doxygen 1.5.9