Help:Extension:Translate/Configuration

Here is documentation how to configure the Translate extension, and wich configuration options are available.

Prerequisites

 * must be configured correctly.
 * Usually this means that you need to give write access to webserver to  and uncomment the line   from LocalSettings.php

Sample configuration
This configuration goes to the  in the mediawiki directory.

User rights
Translate extension introduces new user rights:

Configuration variables
The following documentation is copied from  for your convenience. Configuration options change over time, so if in doubt, the documentation in your Translate.php is the best one. For the record this is for 2012-10-02.

Page translation
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.

Page translation: translated version of page is empty
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 pcre.backtrack_limit. ini_set( 'pcre.backtrack_limit', 400000 );

Fonts with 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 fc-list command provides. $wgDebugLogGroups['fcfont'] = '/path/to/writable/logfile';

Translation editor dialog missing
There is a JavaScript error in the page. Check the error console of your browser.