Help:Extension:Translate/Configuration

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

Prerequisites

 * must be configured correctly.
 * Make sure  is not set to.

Sample configuration
A more elaborate example of a configuration for Translate extension at translatewiki.net can be found on Configuration.

User rights
Translate extension introduces new user rights:
 * right allows users to edit translations
 * right allows users to update and manage message groups with web interface
 * right allows users to import translation updates from offline tools themselves using web interface (still unstable)
 * right allows users to manage translation of content pages

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 revision r83530.

PHPlot
/** * For Special:TranslationStats PHPlot is needed to produce graphs. * Set this the location of phplot.php. */ $wgTranslatePHPlot = false;

/** * The default font for PHPlot for drawing text. Only used if the automatic * best font selection fails. The automatic best font selector uses language * code to call fc-match program. If you have open_basedir restriction or * safe-mode, using the found font is likely to fail. In this case you need * to change the code to use hard-coded font, or copy fonts to location PHP * can access them, and make sure fc-match returns only those fonts. */ $wgTranslatePHPlotFont = '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf';

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. $wgDebugLogGroups['fcfont'] = '/path/to/writable/logfile';