Help:Extension:Translate/Group configuration/MediaWiki/fr

Ce document indique comment configurer des groupes d'extensions MediaWiki en utilisant simplement le fichier texte de configuration. Il est utile si vous possédez des centaines d'extensions.

Cette configuration se trouve dans  du répertoire MediaWiki.

Fichier de configuration
Voici un exemple de fichier de configuration :

Simple Extension

Complex Extension desc = Some text here. ignored = sidebar, robots.txt optional = grouppage-recursive-export prefix = wmf- | sidebar, grouppage-Staff, group-Staff, group-Staff-member aliasfile = ComplexExtension.alias.php magicfile = ComplexExtension.magic.php

La syntaxe générale est : NomDeLextension suivi de la liste des clés et des valeurs et d'une ligne vide précédant l'extension suivante.

- Nom de l'extension en ayant supprimé les espaces.

Les clés disponibles sont :


 * aliasfile
 * Location of file containing special page alias translations for this extension relative to


 * desc
 * Description of the extension shown to translators


 * descmsg
 * A page in MediaWiki namespace containing the description of the extension shown to translators


 * file
 * Location of the file containing messages for this extension. Default value depends on the format:


 * php: ExtensionName/ExtensionName.i18n.php
 * json: ExtensionName/i18n/%CODE%.json
 * format
 * File format used by the extension. Supported values are  and  . Default:


 * id
 * Message group id. Default value is ExtensionName in lowercase prefixed with ext- . For example, "Complex Extension" has default id of "ext-complexextension"


 * ignored
 * List of comma separated message keys which will not be shown for the translators. This key can be present in multiple times to split the list into multiple lines.


 * magicfile
 * Location of file containing magic word translations for this extension relative to $wgTranslateExtensionDirectory


 * optional
 * List of comma separated message keys which will be shown to translators only if they select to see optional messages. Optional messages are not counted as untranslated messages, but translated optional messages are counted as translated. This key can be present multiple times.


 * prefix
 * To handle conflicting message keys, you can prefix given messages. The syntax is first to have the prefix separated by pipe from comma separated list of message keys. This key can be present multiple times.


 * var
 * Name of the php variable holding the messages. Defaults to $messages.