MediaWiki  1.30.0
mergeMessageFileList.php File Reference

Merge $wgExtensionMessagesFiles from various extensions to produce a single array containing all message files. More...

Go to the source code of this file.

Classes

class  MergeMessageFileList
 Maintenance script that merges $wgExtensionMessagesFiles from various extensions to produce a single array containing all message files. More...
 

Variables

 $dirs
 
 $maintClass = 'MergeMessageFileList'
 
 $mmfl = false
 
 $queue = []
 
 $s
 
foreach( $dirs as $dir) if(isset( $mmfl['output'])) else
 
const MW_NO_EXTENSION_MESSAGES 1
 

Detailed Description

Merge $wgExtensionMessagesFiles from various extensions to produce a single array containing all message 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.

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 mergeMessageFileList.php.

Variable Documentation

◆ $dirs

◆ $maintClass

Definition at line 29 of file mergeMessageFileList.php.

◆ $mmfl

$mmfl = false

Definition at line 30 of file mergeMessageFileList.php.

Referenced by MergeMessageFileList\execute().

◆ $queue

◆ $s

$s
Initial value:
=
"<" . "?php\n" .
"## This file is generated by mergeMessageFileList.php. Do not edit it directly.\n\n" .
"if ( defined( 'MW_NO_EXTENSION_MESSAGES' ) ) return;\n\n" .
'$wgExtensionMessagesFiles = ' . var_export( $wgExtensionMessagesFiles, true ) . ";\n\n" .
'$wgMessagesDirs = ' . var_export( $wgMessagesDirs, true ) . ";\n\n"

Definition at line 188 of file mergeMessageFileList.php.

Referenced by Wikimedia\Rdbms\LikeMatch\__construct(), MediaWiki\Tidy\BalanceActiveFormattingElements\__toString(), PPNode_DOM\__toString(), DatabaseTestHelper\addIdentifierQuotes(), Wikimedia\Rdbms\DatabaseMysqlBase\addIdentifierQuotes(), DatabaseOracle\addIdentifierQuotes(), Wikimedia\Rdbms\DatabaseMssql\addIdentifierQuotes(), Wikimedia\Rdbms\Database\addIdentifierQuotes(), Wikimedia\Rdbms\DatabaseMysqlBase\addQuotes(), Wikimedia\Rdbms\DatabaseSqlite\addQuotes(), DatabaseOracle\addQuotes(), Wikimedia\Rdbms\DatabaseMssql\addQuotes(), Wikimedia\Rdbms\DatabasePostgres\addQuotes(), Wikimedia\Rdbms\Database\addQuotes(), ParserOutput\addWarning(), SpecialBlock\alterForm(), Wikimedia\Rdbms\Database\buildLike(), Xml\buildTable(), Xml\buildTableRow(), CoreParserFunctions\canonicalurl(), CoreParserFunctions\canonicalurle(), Language\caseFold(), ApiMain\checkConditionalRequestHeaders(), Language\checkTitleEncoding(), WikiPage\commitRollback(), ConvertUserOptions\convertOptionBatch(), SectionProfiler\debug(), SectionProfiler\debugGroup(), RunJobs\debugInternal(), SwiftFileBackend\doExecuteOpHandlesInternal(), MysqlUpdater\doUnsignedSyncronisation(), LinkHolderArray\doVariants(), MediaWiki\Tidy\RemexCompatFormatter\element(), ApiMain\encodeRequestLogValue(), MysqlInstaller\escapeLikeInternal(), Wikimedia\Rdbms\DatabaseMssql\escapeLikeInternal(), Wikimedia\Rdbms\Database\escapeLikeInternal(), TransformationalImageHandler\escapeMagickProperty(), WebInstallerLanguage\execute(), WebInstallerRestart\execute(), ApiRevisionDelete\execute(), SpecialListUsers\execute(), Xml\fieldset(), Language\firstChar(), Language\formatNum(), TablePager\formatRow(), AllMessagesTablePager\formatRow(), HistoryPager\formatRow(), Language\formatTimePeriod(), CoreParserFunctions\fullurl(), CoreParserFunctions\fullurle(), SpecialLog\getActionButtons(), ChangesList\getArticleLink(), ImageHistoryPseudoPager\getBody(), IndexPager\getBody(), Skin\getCategoryLinks(), CreditsAction\getContributors(), InfoAction\getContributors(), CreditsAction\getCredits(), AllMessagesTablePager\getCustomisedStatuses(), Title\getEditURL(), HistoryPager\getEndBody(), MWGrants\getGrantsWikiText(), TablePager\getHiddenFields(), Status\getMessage(), WatchedItemQueryServiceUnitTest\getMockDb(), WebInstaller\getPageListItem(), Title\getPrefixedDBkey(), Title\getPrefixedText(), Title\getPrefixedURL(), WebInstaller\getRadioSet(), PPFuzzTest\getReport(), ChangesList\getRollback(), PostgresInstaller\getSettingsForm(), MssqlInstaller\getSettingsForm(), MysqlInstaller\getSettingsForm(), TablePager\getStartBody(), HistoryPager\getStartBody(), ChangesList\getTags(), FileJournal\getTimestampedUUID(), DatabaseInstaller\getWebUserBox(), Wikimedia\Rdbms\LoadMonitorMySQL\getWeightScale(), Status\getWikiText(), ZipDirectoryReader\hexDump(), HistoryPager\historyLine(), StringUtils\hungryDelimiterReplace(), User\idForName(), User\idFromName(), Html\infoBox(), ChangesList\insertArticleLink(), ChangesList\insertDateHeader(), ChangesList\insertDiffHist(), ChangesList\insertLog(), ChangesList\insertRollback(), ChangesList\insertTags(), ChangesList\insertTimestamp(), ChangesList\insertUserRelatedLinks(), DatabaseOracle\isQuotedIdentifier(), Language\isWellFormedLanguageTag(), Skin\lastModified(), CoreParserFunctions\lc(), CoreParserFunctions\lcfirst(), Language\listToText(), MimeAnalyzer\loadFiles(), User\loadFromDatabase(), CoreParserFunctions\localurl(), CoreParserFunctions\localurle(), ApiBase\logFeatureUsage(), Skin\logoText(), Skin\mainPageLink(), Wikimedia\Rdbms\DatabasePostgres\makeConnectionString(), FormatMetadata\makeFormattedData(), Linker\makeImageLink(), PPFuzzTester\makeInputText(), Linker\makeThumbLink2(), JavaScriptMinifier\minify(), Wikimedia\Rdbms\DatabaseMysql\mysqlRealEscapeString(), Wikimedia\Rdbms\DatabaseMysqli\mysqlRealEscapeString(), Title\nameOf(), LanguageAr\normalize(), LanguageMl\normalize(), Language\normalize(), LanguageBe_tarask\normalizeForSearch(), LanguageYue\normalizeForSearch(), LanguageZh_hans\normalizeForSearch(), LanguageZh\normalizeForSearch(), CreditsAction\onView(), SpecialWatchlist\outputChangesList(), JSParser\parse(), Language\parseFormattedNumber(), JSMinPlus\parseTree(), RebuildTextIndex\populateSearchIndex(), SearchHighlighter\position(), SpecialBlock\preText(), Language\recodeForEdit(), Language\recodeInput(), DatabaseOracle\removeIdentifierQuotes(), ApiErrorFormatterTest\removeModuleTag(), LinkHolderArray\replaceInternal(), DatabaseSqliteMock\replaceVars(), Wikimedia\Rdbms\DatabaseSqlite\replaceVars(), Language\romanNumeral(), LanguageJa\segmentByWord(), LanguageYue\segmentByWord(), LanguageZh_hans\segmentByWord(), Maintenance\setBatchSize(), DerivativeContext\setConfig(), DerivativeContext\setSkin(), RequestContext\setSkin(), SpecialAllPages\showChunk(), LogEventsList\showLogExtract(), ApiResult\size(), Language\sprintfDate(), WebInstaller\startPageWrapper(), DatabaseTestHelper\strencode(), Wikimedia\Rdbms\DatabaseMysqlBase\strencode(), Wikimedia\Rdbms\DatabaseSqlite\strencode(), DatabaseOracle\strencode(), Wikimedia\Rdbms\DatabaseMssql\strencode(), Wikimedia\Rdbms\DatabasePostgres\strencode(), Installer\subscribeToMediaWikiAnnounce(), SearchSuggestionSetTest\testAppend(), LanguageTest\testCheckTitleEncoding(), WatchedItemStoreUnitTest\testCountVisitingWatchersMultiple(), WatchedItemStoreUnitTest\testCountVisitingWatchersMultiple_withMissingTargets(), ApiFormatPhpTest\testCrossDomainMangling(), WatchedItemQueryServiceUnitTest\testGetWatchedItemsForUser_fromUntilStartFromOptions(), SearchSuggestionSetTest\testInsertBest(), LanguageTest\testListToText(), SearchEnginePrefixTest\testSearchBackend(), MediaWiki\Auth\AuthManagerTest\testSecuritySensitiveOperationStatus(), Job\toString(), CoreParserFunctions\uc(), CoreParserFunctions\ucfirst(), CoreParserFunctions\urlencode(), CoreParserFunctions\urlFunction(), XmlTypeCheck\validateFromInput(), wfGzipHandler(), wfHtmlValidationHandler(), wfMangleFlashPolicy(), wfOutputHandler(), OutputPage\wrapWikiMsg(), and DiffHistoryBlob\xdiffAdler32().

◆ else

foreach ($dirs as $dir) if (isset($mmfl[ 'output'])) else
Initial value:
{
echo $s

Definition at line 207 of file mergeMessageFileList.php.

◆ MW_NO_EXTENSION_MESSAGES

const MW_NO_EXTENSION_MESSAGES 1

Definition at line 26 of file mergeMessageFileList.php.

$wgMessagesDirs
$wgMessagesDirs
Extension messages directories.
Definition: DefaultSettings.php:7218
$s
$s
Definition: mergeMessageFileList.php:188
$IP
$IP
Definition: update.php:3
$wgExtensionMessagesFiles
$wgExtensionMessagesFiles['ExtensionNameMagic']
Definition: magicword.txt:43