User:Cacycle/wikEd international
wikEd |
---|
Installation |
wikEd diff |
Program code |
Project |
Gadgets |
|
Translations |
|
This page explains how to translate and install the MediaWiki editing page extension wikEd.
List of existing translations
- English: en:User:Cacycle/wikEd_international_en.js, example and starting point for translations
- German: de:User:Olliminatore/wikEd_international_de. Translated by Olliminatore.
- Italian: it:Wikipedia:Monobook.js/WikEd/Traduzione, main page, help page. Translated by Jalo.
- Portuguese: pt:Wikipedia:Software/Scripts/wikEd/tradução, open for edit. Translated by Mosca.
- Slovenian: sl:Uporabnik:Eleassar/wikEd_international_sl.js, open for edit by admins, please feel free to contact Eleassar. Translated by Eleassar.
- Norwegian: en:User:Dvyjones/wikEd_international_no. Translated by Dvyjones.
Installation
- Add one of the following code fragments to your User:YourUsername/monobook.js (English Wikipedia) or the respective language-specific page name. If you use another skin then you have to replace monobook.js — e.g. by classic.js if you use the Classic skin. The code must be placed before the wikEd installation block.
- Click Shift-Reload or press Shift-Ctrl-R to update.
German
German Wikipedia monobook.js page: Benutzer:YourUsername/monobook.js
// install the German translation for [[en:User:Cacycle/wikEd]] document.write('<script type="text/javascript" src="' + 'http://de.wikipedia.org/enwiki/w/index.php?title=Benutzer:Olliminatore/wikEd_international_de' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Italian
Italian Wikipedia monobook.js page: Utente:YourUsername/monobook.js
// install the Italian translation for [[en:User:Cacycle/wikEd]] document.write('<script type="text/javascript" src="' + 'http://it.wikipedia.org/enwiki/w/index.php?title=Wikipedia:Monobook.js/WikEd/Traduzione + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Norwegian
Norwegian Wikipedia monobook.js page: Bruker:YourUsername/monobook.js
// install the Norwegian translation for [[en:User:Cacycle/wikEd]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Dvyjones/wikEd_international_no' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Portuguese
Portuguese Wikipedia monobook.js page: Usuário:YourUsername/monobook.js
// install the Portuguese translation for [[:en:User:Cacycle/wikEd]] document.write('<script type="text/javascript" src="' + 'http://pt.wikipedia.org/enwiki/w/index.php?title=Wikipedia:Software/Scripts/wikEd/tradução' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Slovenian
Slovenian Wikipedia monobook.js page: Uporabniški pogovor:YourUsername/monobook.js
// install the Slovenian translation for [[:en:User:Cacycle/wikEd]] document.write('<script type="text/javascript" src="' + 'http://sl.wikipedia.org/enwiki/w/index.php?title=Uporabnik:Eleassar/wikEd_international_sl.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Translation instructions
Copy the English example translation from User:Cacycle/wikEd_international_en.js.
- The first string is the internal text name and must not be changed.
- The second string after the colon is the text to be translated.
- The button alt text is displayed only when the button images are not available, it should be as short as possible.
- The button title text is the popup tooltip text hat appears upon hovering over a button.
- Every line beside the last one ends with a comma.
- Every ' character has to be written as \'.
- Do not change the {wikEd...} parts as these are dynamically replaced.
- Missing translations are displayed in their English built-in version.
Save your translation as a subpage in your personal name space and add it to the list of existing translations above. Do not let the page name end in ".js" if the page should be open for editing by other users.
To load your translation into wikEd you have to add the following code to your User:YourUsername/monobook.js (or whatever skin used) page:
// install a [[User:Cacycle/wikEd international]] translation document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/enwiki/w/index.php?title=TRANSLATION-PAGE' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Replace TRANSLATION-PAGE by the Wikipedia article name of your translation (or replace the whole web address if your translation is not on Wikipedia).
AutoWikiBrowser RegExTypoFixer
Common typos can be fixed using AutoWikiBrowser RegExTypoFix rules. wikEd uses the English RegExTypoFix script by default. To enable the feature and to switch to a different translation add the following lines to your monobook.js page before the wikEd installation code and change the address:
var wikEdLoadRegExTypoFix = true; var wikEdRegExTypoFixSrc = 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEdTypoFix.js&action=raw&ctype=text/javascript&dontcountme=s';