Jump to content

User:Cacycle/wikEd international: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Installation: rm interlang, + pt
Translation instructions: rm interlang, + pt
Line 46: Line 46:
Save your translation as a subpage in your personal name space and add it to the list of existing translations above.
Save your translation as a subpage in your personal name space and add it to the list of existing translations above.


To load your translation into ''wikEd''' you have to add the following code to your [[Special:Mypage/monobook.js|User:YourUsername/monobook.js]] (or whatever skin used) page:
To load your translation into '''wikEd''' you have to add the following code to your [[Special:Mypage/monobook.js|User:YourUsername/monobook.js]] (or whatever skin used) page:


<pre><nowiki>
<pre><nowiki>

Revision as of 02:24, 3 January 2007

This page explains how to translate and install the MediaWiki editing page extension wikEd.

Installation

  1. 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.
  2. Click Shift-Reload or press Shift-Ctrl-R to update.

German

German Wikipedia page: Benutzer:YourUsername/monobook.js

// install the German translation for [[User:Cacycle/wikEd]]
document.write('<script type="text/javascript" src="'</nowiki>
 + '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 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>');

List of existing translations

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.

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).