User:Cacycle/wikEd international: Difference between revisions
→List of existing translations: …using wikEd |
→List of existing translations: fixing typos …using wikEd |
||
Line 41: | Line 41: | ||
* Portuguese: [[:pt:Wikipedia:Software/Scripts/wikEd/tradução]], open for edit. Translated by [[:pt:Usu%C3%A1rio:Mosca|Mosca]]. |
* Portuguese: [[:pt:Wikipedia:Software/Scripts/wikEd/tradução]], open for edit. Translated by [[:pt:Usu%C3%A1rio:Mosca|Mosca]]. |
||
* Slovenian: [[:sl:Uporabnik:Eleassar/wikEd_international_sl.js]], open for edit by admins, please feel free to contact [[:sl:Uporabniški pogovor:Eleassar|Eleassar]]. Translated by [[:sl:Uporabniški:Eleassar|Eleassar]]. |
* Slovenian: [[:sl:Uporabnik:Eleassar/wikEd_international_sl.js]], open for edit by admins, please feel free to contact [[:sl:Uporabniški pogovor:Eleassar|Eleassar]]. Translated by [[:sl:Uporabniški:Eleassar|Eleassar]]. |
||
* Norwegian: [[en:User:Dvyjones/ |
* Norwegian: [[en:User:Dvyjones/wikEd_international_no]], for use on the english wikipedia. Tanslated by [[en:User:Dvyjones]] |
||
== Translation instructions == |
== Translation instructions == |
Revision as of 17:22, 7 February 2007
wikEd |
---|
Installation |
wikEd diff |
Program code |
Project |
Gadgets |
|
Translations |
|
This page explains how to translate and install the MediaWiki editing page extension wikEd.
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 [[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>');
Portuguese
Portuguese Wikipedia monobook.js page: Usuário:YourUsername/monobook.js
document.write('<script type="text/javascript" src="' + 'http://pt.wikipedia.org/enwiki/w/index.php?title=Wikipedia:Software/Scripts/wikEd.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
Please remove the standard wikEd installation code for the Portuguese version.
Slovenian
Slovenian Wikipedia monobook.js page: Uporabniški pogovor:YourUsername/monobook.js
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>');
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, open for edit. Translated by Olliminatore.
- 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, for use on the english wikipedia. Tanslated by en:User:Dvyjones
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';