MediaWiki
1.23.0
|
Static Public Member Functions | |
static | makeComments ( $messages, $ignored, $optional) |
Generates an array of comments for messages. More... | |
static | writeMessagesArray ( $messages, $ignoredComments=false, $prefix=false, $removeUnknown=false) |
Write a messages array as a PHP text. More... | |
static | writeMessagesBlock ( $blockComment, $messages, $messageComments=array(), $prefix='') |
Write a block of messages to PHP. More... | |
static | writeMessagesToFile ( $messages, $code, $write, $listUnknown, $removeUnknown, $messagesFolder=false) |
Write a messages array as a PHP text and write it to the messages file. More... | |
Static Protected Attributes | |
static | $blockComments |
static | $ignoredComment = "do not translate or duplicate this message to other languages" |
static | $ignoredMessages |
static | $messageStructure |
static | $optionalComment |
static | $optionalMessages |
Definition at line 27 of file writeMessagesArray.inc.
|
static |
Generates an array of comments for messages.
$messages | Array: key of messages. |
$ignored | Array: list of ingored message keys. |
$optional | Array: list of optional message keys. |
Definition at line 189 of file writeMessagesArray.inc.
References $ignoredComment, $messages, $optionalComment, array(), and as.
Referenced by writeMessagesArray().
|
static |
Write a messages array as a PHP text.
$messages | Array: the messages array. |
$ignoredComments | Boolean: show comments about ignored and optional messages? (For English.) |
$prefix | String: base path for messages.inc and messageTypes.inc files or false for default path (this directory) |
$removeUnknown | Boolean: whether to remove unkown messages |
Definition at line 119 of file writeMessagesArray.inc.
References $dir, $ignoredMessages, $messages, $optionalMessages, $wgBlockComments, $wgIgnoredMessages, $wgMessageStructure, $wgOptionalMessages, array(), as, makeComments(), and writeMessagesBlock().
Referenced by writeMessagesToFile().
|
static |
Write a block of messages to PHP.
$blockComment | String: the comment of whole block. |
$messages | Array: the block messages. |
$messageComments | Array: optional comments for messages in this block. |
$prefix | String: prefix for every line, for indenting purposes. |
Definition at line 215 of file writeMessagesArray.inc.
References $messages, $value, and as.
Referenced by writeMessagesArray().
|
static |
Write a messages array as a PHP text and write it to the messages file.
$messages | Array: the messages array. |
$code | String: the language code. |
$write | Boolean: write to the messages file? |
$listUnknown | Boolean: list the unknown messages? |
$removeUnknown | Boolean: whether to remove unkown messages |
$messagesFolder | String: path to a folder to store the MediaWiki messages. Defaults to the current install. |
Definition at line 48 of file writeMessagesArray.inc.
References $messages, $messagesFolder, $value, as, Language\getFileName(), Language\getMessagesFileName(), and writeMessagesArray().
Referenced by rebuildLanguage().
|
staticprotected |
Definition at line 33 of file writeMessagesArray.inc.
|
staticprotected |
Definition at line 30 of file writeMessagesArray.inc.
Referenced by makeComments().
|
staticprotected |
Definition at line 34 of file writeMessagesArray.inc.
Referenced by writeMessagesArray().
|
staticprotected |
Definition at line 32 of file writeMessagesArray.inc.
|
staticprotected |
Definition at line 28 of file writeMessagesArray.inc.
Referenced by makeComments().
|
staticprotected |
Definition at line 35 of file writeMessagesArray.inc.
Referenced by writeMessagesArray().