MediaWiki  REL1_19
rebuildLanguage.php File Reference

Rewrite the messages array in the files languages/messages/MessagesXx.php. More...

Go to the source code of this file.

Functions

 rebuildLanguage ($languages, $code, $write, $listUnknown, $removeUnknown, $removeDupes, $dupeMsgSource)
 Rewrite a messages array.
 removeDupes ($oldMsgArray, $dupeMsgSource)
 Remove duplicates from a message array.

Variables

 $languages = new languages()
 $wgListUnknownMessages = !isset( $options['no-unknown'] )
 $wgRemoveDuplicateMessages = isset( $options['remove-duplicates'] )
 $wgRemoveUnknownMessages = isset( $options['remove-unknown'] )

Detailed Description

Rewrite the messages array in the files languages/messages/MessagesXx.php.

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.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file rebuildLanguage.php.


Function Documentation

rebuildLanguage ( languages,
code,
write,
listUnknown,
removeUnknown,
removeDupes,
dupeMsgSource 
)

Rewrite a messages array.

Parameters:
$languages
$codeThe language code.
bool$writeWrite to the messages file?
bool$listUnknownList the unknown messages?
bool$removeUnknownRemove the unknown messages?
bool$removeDupesRemove the duplicated messages?
$dupeMsgSourceThe source file intended to remove from the array.

Definition at line 40 of file rebuildLanguage.php.

References $languages, $messages, removeDupes(), and MessageWriter\writeMessagesToFile().

Here is the call graph for this function:

removeDupes ( oldMsgArray,
dupeMsgSource 
)

Remove duplicates from a message array.

Parameters:
$oldMsgArrayThe input message array.
$dupeMsgSourceThe source file path for duplicates.
Returns:
Array $newMsgArray The output message array, with duplicates removed.

Definition at line 56 of file rebuildLanguage.php.

References echo.

Referenced by rebuildLanguage().

Here is the caller graph for this function:


Variable Documentation

$wgListUnknownMessages = !isset( $options['no-unknown'] )

Definition at line 109 of file rebuildLanguage.php.

$wgRemoveDuplicateMessages = isset( $options['remove-duplicates'] )

Definition at line 111 of file rebuildLanguage.php.

$wgRemoveUnknownMessages = isset( $options['remove-unknown'] )

Definition at line 110 of file rebuildLanguage.php.