A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Manual:$wgExtensionMessagesFiles below:

Manual:$wgExtensionMessagesFiles - MediaWiki

Extension messages files.
Introduced in version: 1.11.0 Removed in version: Still in use Allowed values: (array) Default value: []

This global variable must only be used to specify the paths to internationalization files that define magic words , special page aliases and/or namespace names .

For message files , use $wgMessagesDirs instead and avoid overlap in variable names. If there is an entry in $wgMessagesDirs with the same key as one in $wgExtensionMessagesFiles, $wgMessagesDirs will take precedence over the other.

The ConfirmEdit extension contains a PHP file, ConfirmEdit.alias.php, which defines language-specific aliases for a special page (Special:Captcha). If the extension were to define the variable directly in PHP, it would have something like this:

$wgExtensionMessagesFiles['ConfirmEditAlias'] = __DIR__ . '/ConfirmEdit.alias.php';

Instead of using our global variable directly, modern extensions like ConfirmEdit set the equivalent field ExtensionMessagesFiles in the extension.json file. This field corresponds directly with $wgExtensionMessagesFiles :

	"ExtensionMessagesFiles": {
		"ConfirmEditAlias": "ConfirmEdit.alias.php"
	},

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4