MediaWiki
REL1_19
|
Static Public Member Functions | |
static | makeComments ($messages, $ignored, $optional) |
Generates an array of comments for messages. | |
static | writeMessagesArray ($messages, $ignoredComments=false, $prefix=false, $removeUnknown=false) |
Write a messages array as a PHP text. | |
static | writeMessagesBlock ($blockComment, $messages, $messageComments=array(), $prefix= '') |
Write a block of messages to PHP. | |
static | writeMessagesToFile ($messages, $code, $write, $listUnknown, $removeUnknown) |
Write a messages array as a PHP text and write it to the messages file. | |
Static Public Attributes | |
static | $blockComments |
static | $ignoredComment = "do not translate or duplicate this message to other languages" |
static | $ignoredMessages |
static | $messageStructure |
static | $optionalComment = 'only translate this message to other languages if you have to change it' |
static | $optionalMessages |
Definition at line 27 of file writeMessagesArray.inc.
static MessageWriter::makeComments | ( | $ | messages, |
$ | ignored, | ||
$ | optional | ||
) | [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 160 of file writeMessagesArray.inc.
References $ignoredComment, $messages, and $optionalComment.
Referenced by writeMessagesArray().
static MessageWriter::writeMessagesArray | ( | $ | messages, |
$ | ignoredComments = false , |
||
$ | prefix = false , |
||
$ | removeUnknown = false |
||
) | [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 94 of file writeMessagesArray.inc.
References $dir, $ignoredMessages, $messages, $optionalMessages, $wgBlockComments, $wgIgnoredMessages, $wgMessageStructure, $wgOptionalMessages, makeComments(), and writeMessagesBlock().
Referenced by writeMessagesToFile().
static MessageWriter::writeMessagesBlock | ( | $ | blockComment, |
$ | messages, | ||
$ | messageComments = array() , |
||
$ | prefix = '' |
||
) | [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 186 of file writeMessagesArray.inc.
References $messages.
Referenced by writeMessagesArray().
static MessageWriter::writeMessagesToFile | ( | $ | messages, |
$ | code, | ||
$ | write, | ||
$ | listUnknown, | ||
$ | removeUnknown | ||
) | [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 |
Definition at line 45 of file writeMessagesArray.inc.
References $messages, echo, Language\getMessagesFileName(), and writeMessagesArray().
Referenced by rebuildLanguage().
MessageWriter::$blockComments [static] |
Definition at line 32 of file writeMessagesArray.inc.
MessageWriter::$ignoredComment = "do not translate or duplicate this message to other languages" [static] |
Definition at line 29 of file writeMessagesArray.inc.
Referenced by makeComments().
MessageWriter::$ignoredMessages [static] |
Definition at line 33 of file writeMessagesArray.inc.
Referenced by writeMessagesArray().
MessageWriter::$messageStructure [static] |
Definition at line 31 of file writeMessagesArray.inc.
MessageWriter::$optionalComment = 'only translate this message to other languages if you have to change it' [static] |
Definition at line 28 of file writeMessagesArray.inc.
Referenced by makeComments().
MessageWriter::$optionalMessages [static] |
Definition at line 34 of file writeMessagesArray.inc.
Referenced by writeMessagesArray().