Jump to content

User:Dereckson/translate

From Wikipedia, the free encyclopedia

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?

[edit]

To translate to French

[edit]

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

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

Other versions

[edit]

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

[edit]

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.