Manual:$wgExtensionMessagesFiles

This page is a translated version of the page Manual:$wgExtensionMessagesFiles and the translation is 33% complete.
Outdated translations are marked like this.
Extensões: $wgExtensionMessagesFiles
Arquivos de mensagens de extensões.
Introduzido na versão:1.11.0
Removido na versão:ainda em uso
Valores permitidos:(array)
Valor padrão:[]

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. Se há uma entrada na variável $wgMessagesDirs com a mesma chave que a presente em $wgExtensionMessagesFiles, então quaisquer variáveis $3 definidas no arquivo $4 serão ignoradas.

Example

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';

extension.json

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"
	},


Ver também