Help:Extension:Translate/Configuration/fr

Le MediaWiki Language Extension Bundle vous fournit tout le code et les étapes d'installation réellement nécessaires pour configurer Translate; cette page détaille quelles options de configuration sont disponibles dans le cas où vous auriez besoin de plus et que la page introduction à l'installation et prérequis ne vous a pas aidé.

Exemple de configuration
Cette configuration se trouve (comment les autres extensions) en modifiant le, dans le dossier racine de MediaWiki.

Droits utilisateur
L'extension Translate introduit des nouveaux droits utilisateur :

Paramètres de configuration
Pour votre confort, la documentation suivante est tirée de. Les options de configuration changent avec le temps, donc en cas de doute, la documentation de votre Translate.php est la meilleure. L'enregistrement suivante date du 2016-04-21.

Traduction de page
If there is a problem with namespace while translating translatable pages (symptoms: definition not shown, page title starts with colon), add these two to LocalSettings.php:

This problem occurs if something unstubs Language class very early, and because we are adding the namespace late to have them conditionally enabled.

Translation page is empty or error 'Unbalanced &lt;translate> tag' shown
Provided that the closing &lt;/translate> tag exists, the source page is too big. This starts happening with some translations if the source page size is near 50 kilobytes. Make the page shorter or increase  by setting ini_set( 'pcre.backtrack_limit', 400000 ); in LocalSettings.php or pcre.backtrack_limit=400000 in your PHP configuration (php.ini).

Polices avec PHPlot
If characters in some languages show up as boxes, first check that you have a suitable font installed. If that doesn't help, enable the font debugging log. You may need to clear your MediaWiki cache first. On some systems PHP is not allowed to access the fonts the  command provides.

$wgDebugLogGroups['fcfont'] = '/path/to/writable/logfile';

En mode TUX (le nouvel interface utilisateur) aucun message n'est affiché
If you have overridden, make sure task   is not excluded from it.

L'outil ne charge pas Special:Translate
If you see something like this with endless "Loading messages...", the ResourceLoader is broken: set  or lower until it works.

If that's not enough, have you remembered to install and enable ?

Saving translation fails with Unknown error: "tpt-unknown-page"
This happens when page has been marked for translation, but the background job has not yet been processed. In this case you can run job queue manually, or even better, setup continuous job running as described in. If that doesn't solve the issue, try running php extensions/Translate/scripts/createMessageIndex.php.