MediaWiki REL1_32
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::class
 
 $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

$maintClass = MergeMessageFileList::class

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"
$wgMessagesDirs['ReplaceText']
$wgExtensionMessagesFiles['ExtensionNameMagic']
Definition magicword.txt:43

Definition at line 187 of file mergeMessageFileList.php.

Referenced by ChangesListSpecialPage\__construct(), Wikimedia\Rdbms\LikeMatch\__construct(), PPNode_DOM\__toString(), DatabaseOracle\addIdentifierQuotes(), Wikimedia\Rdbms\Database\addIdentifierQuotes(), Wikimedia\Rdbms\DatabaseMssql\addIdentifierQuotes(), Wikimedia\Rdbms\DatabaseMysqlBase\addIdentifierQuotes(), DatabaseTestHelper\addIdentifierQuotes(), DatabaseOracle\addQuotes(), Wikimedia\Rdbms\Database\addQuotes(), Wikimedia\Rdbms\DatabaseMssql\addQuotes(), Wikimedia\Rdbms\DatabaseMysqlBase\addQuotes(), Wikimedia\Rdbms\DatabasePostgres\addQuotes(), Wikimedia\Rdbms\DatabaseSqlite\addQuotes(), ParserOutput\addWarning(), SpecialBlock\alterForm(), Wikimedia\Rdbms\Database\buildLike(), Xml\buildTable(), Xml\buildTableRow(), CoreParserFunctions\canonicalurl(), CoreParserFunctions\canonicalurle(), Language\caseFold(), ApiMain\checkConditionalRequestHeaders(), Cite\checkRefsNoReferences(), Language\checkTitleEncoding(), ParserTestRunner\chomp(), WikiPage\commitRollback(), ConvertUserOptions\convertOptionBatch(), CategoryTree\createCountString(), SectionProfiler\debug(), SectionProfiler\debugGroup(), RunJobs\debugInternal(), SwiftFileBackend\doExecuteOpHandlesInternal(), MysqlUpdater\doUnsignedSyncronisation(), LinkHolderArray\doVariants(), MediaWiki\Tidy\RemexMungerData\dump(), MediaWiki\Tidy\RemexCompatFormatter\element(), ApiMain\encodeRequestLogValue(), WebInstallerPage\endForm(), MysqlInstaller\escapeLikeInternal(), Wikimedia\Rdbms\Database\escapeLikeInternal(), Wikimedia\Rdbms\DatabaseMssql\escapeLikeInternal(), TransformationalImageHandler\escapeMagickProperty(), SpecialListUsers\execute(), ApiRevisionDelete\execute(), WebInstallerLanguage\execute(), WebInstallerRestart\execute(), Xml\fieldset(), Language\firstChar(), Language\formatNum(), HistoryPager\formatRow(), TablePager\formatRow(), AllMessagesTablePager\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(), CategoryTree\getOptionsAsJsStructure(), WebInstaller\getPageListItem(), Title\getPrefixedDBkey(), Title\getPrefixedText(), Title\getPrefixedURL(), WebInstaller\getRadioSet(), PPFuzzTest\getReport(), MediaWiki\Revision\RevisionSlots\getRolesWithDifferentContent(), ChangesList\getRollback(), MssqlInstaller\getSettingsForm(), MysqlInstaller\getSettingsForm(), PostgresInstaller\getSettingsForm(), HistoryPager\getStartBody(), TablePager\getStartBody(), ChangesList\getTags(), FileJournal\getTimestampedUUID(), DatabaseInstaller\getWebUserBox(), Wikimedia\Rdbms\LoadMonitorMySQL\getWeightScale(), Status\getWikiText(), Cite\guardedReferences(), MediaWiki\OutputHandler\handle(), MediaWiki\OutputHandler\handleGzip(), MediaWiki\Revision\RevisionSlots\hasSameContent(), MediaWiki\Storage\RevisionSlotsUpdate\hasSameUpdates(), 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(), User\loadFromDatabase(), CoreParserFunctions\localurl(), CoreParserFunctions\localurle(), ApiBase\logFeatureUsage(), Skin\logoText(), Skin\mainPageLink(), Wikimedia\Rdbms\DatabasePostgres\makeConnectionString(), FormatMetadata\makeFormattedData(), Linker\makeImageLink(), PPFuzzTester\makeInputText(), Linker\makeThumbLink2(), MediaWiki\OutputHandler\mangleFlashPolicy(), Parser\markerSkipCallback(), JavaScriptMinifier\minify(), Wikimedia\Rdbms\DatabaseMysqli\mysqlRealEscapeString(), Title\nameOf(), LanguageAr\normalize(), LanguageMl\normalize(), Language\normalize(), LanguageZh_hans\normalizeForSearch(), LanguageBe_tarask\normalizeForSearch(), LanguageYue\normalizeForSearch(), LanguageZh\normalizeForSearch(), CreditsAction\onView(), SpecialWatchlist\outputChangesList(), JSParser\parse(), LanguageConverter\parseCachedTable(), Language\parseFormattedNumber(), JSMinPlus\parseTree(), RebuildTextIndex\populateSearchIndex(), SearchHighlighter\position(), SpecialBlock\preText(), Language\recodeForEdit(), Language\recodeInput(), DatabaseOracle\removeIdentifierQuotes(), ApiErrorFormatterTest\removeModuleTag(), CategoryTree\renderChildren(), CategoryTree\renderNodeInfo(), CategoryTree\renderParents(), Parser\replaceExternalLinks(), LinkHolderArray\replaceInternal(), Parser\replaceInternalLinks(), Parser\replaceInternalLinks2(), Wikimedia\Rdbms\DatabaseSqlite\replaceVars(), DatabaseSqliteMock\replaceVars(), Language\romanNumeral(), LanguageJa\segmentByWord(), LanguageYue\segmentByWord(), LanguageZh_hans\segmentByWord(), Maintenance\setBatchSize(), SpecialAllPages\showChunk(), LogEventsList\showLogExtract(), ApiResult\size(), Parser\splitWhitespace(), Language\sprintfDate(), WebInstaller\startPageWrapper(), DatabaseOracle\strencode(), Wikimedia\Rdbms\DatabaseMssql\strencode(), Wikimedia\Rdbms\DatabaseMysqlBase\strencode(), Wikimedia\Rdbms\DatabasePostgres\strencode(), Wikimedia\Rdbms\DatabaseSqlite\strencode(), DatabaseTestHelper\strencode(), Installer\subscribeToMediaWikiAnnounce(), SearchSuggestionSetTest\testAppend(), LanguageTest\testCheckTitleEncoding(), WatchedItemStoreUnitTest\testCountVisitingWatchersMultiple(), WatchedItemStoreUnitTest\testCountVisitingWatchersMultiple_withMissingTargets(), WatchedItemQueryServiceUnitTest\testGetWatchedItemsForUser_fromUntilStartFromOptions(), DatabaseMysqlBaseTest\testIndexAliases(), SearchSuggestionSetTest\testInsertBest(), LanguageTest\testListToText(), SearchEnginePrefixTest\testSearchBackend(), MediaWiki\Auth\AuthManagerTest\testSecuritySensitiveOperationStatus(), DatabaseMysqlBaseTest\testTableAliases(), Job\toString(), CoreParserFunctions\uc(), CoreParserFunctions\ucfirst(), CoreParserFunctions\urlencode(), CoreParserFunctions\urlFunction(), BenchUtf8TitleCheck\use_mb_check_encoding(), BenchUtf8TitleCheck\use_regexp(), BenchUtf8TitleCheck\use_regexp_non_capturing(), BenchUtf8TitleCheck\use_regexp_once_only(), XmlTypeCheck\validateFromInput(), wfUrlencode(), wfVarDump(), OutputPage\wrapWikiMsg(), and DiffHistoryBlob\xdiffAdler32().

◆ else

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

Definition at line 206 of file mergeMessageFileList.php.

◆ MW_NO_EXTENSION_MESSAGES

const MW_NO_EXTENSION_MESSAGES 1

Definition at line 26 of file mergeMessageFileList.php.