MediaWiki REL1_33
ExtensionLanguages Class Reference
Inheritance diagram for ExtensionLanguages:
Collaboration diagram for ExtensionLanguages:

Public Member Functions

 __construct (MessageGroup $group)
 Load the messages group.
 
 name ()
 Get the extension name.
 
- Public Member Functions inherited from Languages
 __construct ()
 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.
 

Private Attributes

MessageGroup $mMessageGroup
 

Additional Inherited Members

- Protected Attributes inherited from Languages
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.
 

Detailed Description

Definition at line 788 of file languages.inc.

Constructor & Destructor Documentation

◆ __construct()

ExtensionLanguages::__construct ( MessageGroup $group)

Load the messages group.

Parameters
MessageGroup$groupThe messages group.

Definition at line 798 of file languages.inc.

Member Function Documentation

◆ loadFile()

ExtensionLanguages::loadFile ( $code)
protected

Load the language file.

Parameters
string$codeThe language code.

Reimplemented from Languages.

Definition at line 819 of file languages.inc.

References $code, and and().

◆ name()

ExtensionLanguages::name ( )

Get the extension name.

Returns
string The extension name.

Definition at line 810 of file languages.inc.

Member Data Documentation

◆ $mMessageGroup

MessageGroup ExtensionLanguages::$mMessageGroup
private

Definition at line 792 of file languages.inc.


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