|
MediaWiki
REL1_19
|
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'] ) | |
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.
| rebuildLanguage | ( | $ | languages, |
| $ | code, | ||
| $ | write, | ||
| $ | listUnknown, | ||
| $ | removeUnknown, | ||
| $ | removeDupes, | ||
| $ | dupeMsgSource | ||
| ) |
Rewrite a messages array.
| $languages | ||
| $code | The language code. | |
| bool | $write | Write to the messages file? |
| bool | $listUnknown | List the unknown messages? |
| bool | $removeUnknown | Remove the unknown messages? |
| bool | $removeDupes | Remove the duplicated messages? |
| $dupeMsgSource | The source file intended to remove from the array. |
Definition at line 40 of file rebuildLanguage.php.
References $languages, $messages, removeDupes(), and MessageWriter\writeMessagesToFile().

| removeDupes | ( | $ | oldMsgArray, |
| $ | dupeMsgSource | ||
| ) |
Remove duplicates from a message array.
| $oldMsgArray | The input message array. |
| $dupeMsgSource | The source file path for duplicates. |
Definition at line 56 of file rebuildLanguage.php.
References echo.
Referenced by rebuildLanguage().

Definition at line 114 of file rebuildLanguage.php.
Referenced by AllmessagesTablePager\buildForm(), WebInstaller_Language\execute(), LanguageConverter\getHeaderVariant(), WebInstaller_Language\getLanguageSelector(), Xml\languageSelector(), ApiParse\languagesHtml(), Preferences\profilePreferences(), and rebuildLanguage().
| $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.