| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Handle messages in the language files. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| File Size: | 827 lines (23 kb) |
| Included or required: | 4 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Languages:: (33 methods):
__construct()
getLanguages()
getIgnoredMessages()
getOptionalMessages()
loadFile()
loadMessages()
loadGeneralMessages()
getMessages()
getGeneralMessages()
getFallback()
getNamespaceNames()
getNamespaceAliases()
getMagicWords()
getSpecialPageAliases()
getUntranslatedMessages()
getDuplicateMessages()
getObsoleteMessages()
getMessagesWithMismatchVariables()
getMessagesWithoutPlural()
getEmptyMessages()
getMessagesWithWhitespace()
getNonXHTMLMessages()
getMessagesWithWrongChars()
getMessagesWithDubiousLinks()
getMessagesWithUnbalanced()
getUntranslatedNamespaces()
getProblematicProjectTalks()
getUntranslatedMagicWords()
getObsoleteMagicWords()
getOverridingMagicWords()
getCaseMismatchMagicWords()
getUntraslatedSpecialPages()
getObsoleteSpecialPages()
ExtensionLanguages:: (3 methods):
__construct()
name()
loadFile()
| __construct() X-Ref |
| Load the list of languages: all the Messages*.php files in the languages directory. |
| getLanguages() X-Ref |
| Get the language list. return: array The language list. |
| getIgnoredMessages() X-Ref |
| Get the ignored messages list. return: array The ignored messages list. |
| getOptionalMessages() X-Ref |
| Get the optional messages list. return: array The optional messages list. |
| loadFile( $code ) X-Ref |
| Load the language file. param: string $code The language code. |
| loadMessages( $code ) X-Ref |
| 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. param: string $code The language code. |
| loadGeneralMessages() X-Ref |
| 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. |
| getMessages( $code ) X-Ref |
| 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. param: string $code The language code. return: string The messages in this language. |
| getGeneralMessages() X-Ref |
| 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. return: array The general English messages. |
| getFallback( $code ) X-Ref |
| Get fallback language code for a specific language. param: string $code The language code. return: string Fallback code. |
| getNamespaceNames( $code ) X-Ref |
| Get namespace names for a specific language. param: string $code The language code. return: array Namespace names. |
| getNamespaceAliases( $code ) X-Ref |
| Get namespace aliases for a specific language. param: string $code The language code. return: array Namespace aliases. |
| getMagicWords( $code ) X-Ref |
| Get magic words for a specific language. param: string $code The language code. return: array Magic words. |
| getSpecialPageAliases( $code ) X-Ref |
| Get special page aliases for a specific language. param: string $code The language code. return: array Special page aliases. |
| getUntranslatedMessages( $code ) X-Ref |
| Get the untranslated messages for a specific language. param: string $code The language code. return: array The untranslated messages for this language. |
| getDuplicateMessages( $code ) X-Ref |
| Get the duplicate messages for a specific language. param: string $code The language code. return: array The duplicate messages for this language. |
| getObsoleteMessages( $code ) X-Ref |
| Get the obsolete messages for a specific language. param: string $code The language code. return: array The obsolete messages for this language. |
| getMessagesWithMismatchVariables( $code ) X-Ref |
| Get the messages whose variables do not match the original ones. param: string $code The language code. return: array The messages whose variables do not match the original ones. |
| getMessagesWithoutPlural( $code ) X-Ref |
| Get the messages which do not use plural. param: string $code The language code. return: array The messages which do not use plural in this language. |
| getEmptyMessages( $code ) X-Ref |
| Get the empty messages. param: string $code The language code. return: array The empty messages for this language. |
| getMessagesWithWhitespace( $code ) X-Ref |
| Get the messages with trailing whitespace. param: string $code The language code. return: array The messages with trailing whitespace in this language. |
| getNonXHTMLMessages( $code ) X-Ref |
| Get the non-XHTML messages. param: string $code The language code. return: array The non-XHTML messages for this language. |
| getMessagesWithWrongChars( $code ) X-Ref |
| Get the messages which include wrong characters. param: string $code The language code. return: array The messages which include wrong characters in this language. |
| getMessagesWithDubiousLinks( $code ) X-Ref |
| Get the messages which include dubious links. param: string $code The language code. return: array The messages which include dubious links in this language. |
| getMessagesWithUnbalanced( $code ) X-Ref |
| Get the messages which include unbalanced brackets. param: string $code The language code. return: array The messages which include unbalanced brackets in this language. |
| getUntranslatedNamespaces( $code ) X-Ref |
| Get the untranslated namespace names. param: string $code The language code. return: array The untranslated namespace names in this language. |
| getProblematicProjectTalks( $code ) X-Ref |
| Get the project talk namespace names with no $1. param: string $code The language code. return: array The problematic project talk namespaces in this language. |
| getUntranslatedMagicWords( $code ) X-Ref |
| Get the untranslated magic words. param: string $code The language code. return: array The untranslated magic words in this language. |
| getObsoleteMagicWords( $code ) X-Ref |
| Get the obsolete magic words. param: string $code The language code. return: array The obsolete magic words in this language. |
| getOverridingMagicWords( $code ) X-Ref |
| Get the magic words that override the original English magic word. param: string $code The language code. return: array The overriding magic words in this language. |
| getCaseMismatchMagicWords( $code ) X-Ref |
| Get the magic words which do not match the case-sensitivity of the original words. param: string $code The language code. return: array The magic words whose case does not match in this language. |
| getUntraslatedSpecialPages( $code ) X-Ref |
| Get the untranslated special page names. param: string $code The language code. return: array The untranslated special page names in this language. |
| getObsoleteSpecialPages( $code ) X-Ref |
| Get the obsolete special page names. param: string $code The language code. return: array The obsolete special page names in this language. |
Class: ExtensionLanguages - X-Ref
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |