Jump to content

User:Dereckson/translate

From wikishia

This script allows to add a translate link to the tabs, linking to Translate tool.

This tool allows loads the source text, then replaces all the internal links with an interwiki to the target language.

How to install it?

To translate to French

Add in your common.js, vector.js or monobook.js file:

 importScript('User:Dereckson/translate.js');

Other versions

Copy on your vector.js or monobbk.js file the User:Dereckson/translate.js content.

You need to replace fr by the target project into the following line:

targetLanguage: 'fr',

Sample

If you wish to translate a page which contains to French:

The [[apple]] is a [[fruit]], the [[pineapple]] too.

You'll get the result:

The [[pomme]] is a [[fruit]], the [[ananas]] too.