Jump to content

User:Cacycle/wikEd international

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Cacycle (talk | contribs) at 02:10, 3 January 2007 (List of existing translations: + Translated by Mosca.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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 simple version works only on Wikipedia. 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

Simple version (expands to full version upon saving the page):

{{subst:en:wikEd_international_de}}

Full version:

// 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: Especial:Mypage/monobook.js

 /** wikEd ***********************************************************************************
  *    Origem: [[:pt:Wikipedia:Software/Scripts/wikEd.js]]
  *     Ajuda: [[:pt:Wikipedia:Software/Scripts/wikEd]]
  * Descrição: Editor de texto avançado
  *     Autor: [[:en:User:Cacycle]]
  ********************************************************************************************/
 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).