Extension:Live Translate

Live Translate is a simple extension that allows live translation of wiki pages using Google Translate. It also enables you to define a dictionary of "special words" and their translations which will then be used to do the translating instead of Google Translate.

Feature overview

 * Live translation of page contents using Google Translate.
 * Ability to define translations of special words in-wiki that will then be left alone by Google Translate.

Installation
Once you have downloaded the code, place the LiveTranslate directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

After this you need to run MediaWikis update script which can be found at /maintenance/update.php.

Usage
Live Translate adds a translate button to the right top corner of wiki pages together with a dropdown menu that allows you to select the target language. Hitting the translate button will result into the text in the wiki page to be translate to the selected destination language. The source language will be assumed to be your wikis main language, or when present, the language specified by a language code in the url such as "Main Page/de".

Defining a translation dictionary
You can define a dictionary of "special words" for which you provide translations and that should be left alone by Google Translate. By default the page for this dictionary is "Live Translate Dictionary", but this can be changed if needed. The content of the page should be a CSV list where the first row contains the language codes and the successive ones the translations. Example:

en, nl, de Hello word, Hallo wereld, Hallo welt Awesome, Geweldig, Große

Version 0.1
2010-12-x



Internationalization
Live Translate is fully internationalized. Translation of Live Translate messages is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.

Authors
Live Translate has been written by Jeroen De Dauw as WikiWorks consultant for Texas Instruments.