Jump to content

User:Cacycle/wikEd international: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
 
(34 intermediate revisions by 12 users not shown)
Line 11: Line 11:


{| class="wikitable" border="1"
{| class="wikitable" border="1"
! Language || Code || Link || Translator home || English user page
! Language || Code || Link || Translator home || English user page || Comment
|-
|-
| English || en || [[User:Cacycle/wikEd international en.js]] || [[User:Cacycle|Cacycle]] || [[User:Cacycle|Cacycle]]
| English || en || [[User:Cacycle/wikEd international en.js]] || [[User:Cacycle|Cacycle]] || [[User:Cacycle|Cacycle]] ||
|-
|-
| Arabic || ar || [[User:ترجمان05/wikEd international ar.js]] || [[:ar:User:ترجمان05|ترجمان05]] || [[User:ترجمان05|ترجمان05]]
| Afrikaans || af || [[User:Arnobarnard/wikEd international af.js]] || [[:af:User:Arnobarnard|Arnobarnard]] || [[User:Arnobarnard|Arnobarnard]] ||
|-
|-
| Chinese (simplified) || zh || [[User:Shibo77/wikEd international zh.js]] || [[:zh:User:Shibo77|Shibo77]] || [[User:Shibo77|Shibo77]]
| Arabic || ar || [[User:ترجمان05/wikEd international ar.js]] || [[:ar:User:ترجمان05|ترجمان05]] || [[User:ترجمان05|ترجمان05]] ||
|-
|-

| Chinese (traditional) || zh-hant || [[User:Quest for Truth/wikEd international zh-hant.js]] || – || [[User:Quest for Truth]]
| Bengali || bn || [[User:আফতাবুজ্জামান/wikEd international bn.js]] || [[:bn:ব্যবহারকারী:আফতাবুজ্জামান|আফতাবুজ্জামান]] || [[user:আফতাবুজ্জামান|আফতাবুজ্জামান]] ||
|-
|-
| Czech || cs || [[User:Sevela.p/wikEd international cs.js]] || [[:cs:User:Sevela.p|Sevela.p]] || [[User:Sevela.p|Sevela.p]]
| Chinese (simplified) || zh, zh-hans || [[User:CAS222222221/wikEd international zh.js]] || [[:zh:User:CAS222222221|CAS222222221]] || [[User:CAS222222221|CAS222222221]] || [[User:Shibo77/wikEd international zh.js|previous version]] was maintained by [[User:Shibo77|Shibo77]] ([[:zh:User:Shibo77|Shibo77]])
|-
|-
| Dutch || nl || [[User:Jeronevw/wikEd international nl.js]] || || [[User:Jeronevw|Jeronevw]]
| Chinese (traditional) || zh-hant || [[User:Liflon/wikEd international zh-hant.js]]|| [[:zh:User:Liflon|Liflon]] || [[User:Liflon|Liflon]] || [[User:Quest for Truth/wikEd international zh-hant.js|previous version]] was maintained by [[User:Quest for Truth|Quest for Truth]]
|-
|-
| Esperanto || eo || [[User:ArnoLagrange/wikEd-eo.js]] || [[:eo:Vikipediisto:Tlustulimu|Tlustulimu]] || [[User:Tlustulimu|Tlustulimu]] and [[User:ArnoLagrange|Arno Lagrange]]
| Croatian || hr || [[User:SpeedyGonsales/wikEd_international_hr.js]] || [[:hr:User:SpeedyGonsales|SpeedyGonsales]] || [[User:SpeedyGonsales|SpeedyGonsales]] ||
|-
|-
| Finnish || fi || [[User:Ejs-80/wikEd international fi.js]] || [[:fi:Käyttäjä:Ejs-80|Ejs-80]] || [[User:Ejs-80|Ejs-80]]
| Czech || cs || [[User:Sevela.p/wikEd international cs.js]] || [[:cs:User:Sevela.p|Sevela.p]] || [[User:Sevela.p|Sevela.p]] ||
|-
|-
| French || fr || [[User:Leag/wikEd-fr.js]], [[:fr:Utilisateur:Leag/wikEd |main page]], [[:fr:Utilisateur:Leag/wikEd aide|help page]] || [[:fr:Utilisateur:Leag|Leag]] || [[User:Leag|Leag]]
| Dutch || nl || [[User:Jeronevw/wikEd international nl.js]] || || [[User:Jeronevw|Jeronevw]] ||
|-
|-
| German || de || [[User:Matthias M./wikEd international de.js]] || [[:de:Benutzer:Matthias M.|Matthias_M.]] || [[User:Matthias M.|Matthias_M.]]
| Esperanto || eo || [[User:Tlustulimu/wikEd international eo.js]] || [[:eo:Vikipediisto:Tlustulimu|Tlustulimu]] || [[User:Tlustulimu|Tlustulimu]] || [[User:ArnoLagrange/wikEd-eo.js|previous version]] was maintained by [[User:ArnoLagrange|Arno Lagrange]]
|-
|-
| Hebrew || he || [[User:שמוליק/wikEd_international he.js]] || [[:he:משתמש:שמוליק|שמוליק]] || [[User:שמוליק|שמוליק]]
| Finnish || fi || [[User:Ejs-80/wikEd international fi.js]] || [[:fi:Käyttäjä:Ejs-80|Ejs-80]] || [[User:Ejs-80|Ejs-80]] ||
|-
|-
| Hungarian || hu || [[User:Csörföly D/wikEd-hu.js]] || [[:hu:User:Csörföly D|Csörföly D]] || [[User:Csörföly D|Csörföly D]]
| French || fr || [[User:Leag/wikEd-fr.js]], [[:fr:Utilisateur:Leag/wikEd |main page]], [[:fr:Utilisateur:Leag/wikEd aide|help page]] || [[:fr:Utilisateur:Leag|Leag]] || [[User:Leag|Leag]] ||
|-
|-
| Italian || it || [[User:Jalo/wikEd international it.js]], [[:it:Wikipedia:Monobook.js/WikEd|main page]], [[:it:Wikipedia:Monobook.js/WikEd/Manuale|help page]] || [[:it:Utente:Jalo|Jalo]] || [[User:Jalo|Jalo]]
| Galician|| gl || [[User:Toliño/wikEd international gl.js]] || || [[User:Toliño|Toliño]] ||
|-
|-
| Japanese || ja || [[User:Hatukanezumi/wikEd international ja.js]], [[:ja:Help:wikEd|help page]] || [[:ja:User talk:Hatukanezumi|Hatukanezumi]] || [[User:Hatukanezumi|Hatukanezumi]]
| German || de || [[User:PerfektesChaos/wikEd international de.js]] || [[:de:User:PerfektesChaos|PerfektesChaos]] || [[User:PerfektesChaos|PerfektesChaos]] || [[User:Matthias M./wikEd international de.js|previous version]] was maintained by [[:de:Benutzer:Matthias M.|Matthias_M.]] ([[User:Matthias M.|Matthias_M.]])
|-
|-
| Korean || ko || [[User:Ilovesabbath/wikEd international ko.js]] || [[:ko:User:Ilovesabbath|Ilovesabbath]] || [[User:Ilovesabbath|Ilovesabbath]]
| Hebrew || he || [[User:שמוליק/wikEd_international he.js]] || [[:he:משתמש:שמוליק|שמוליק]] || [[User:שמוליק|שמוליק]] ||
|-
|-
| Lower Sorbian || dsb || [[User:Michalwiki/wikEd international dsb.js]] || [[:dsb:Wužiwar:Michawiki|Michawiki]] || [[User:Michalwiki|Michalwiki]]
| Hungarian || hu || [[User:Tsch81/wikEd-hu.js]] || [[:hu:User:Szerkesztő:Tsch81]] || [[User:Tsch81|Tsch81]] || user Csörföly D renamed to Tsch81
|-
|-
| Malay || ms || [[User:Aviator/wikEd international ms.js]] || [[:ms:Pengguna:Aviator|Aviator]] || [[User:Aviator|Aviator]]
| Italian || it || [[User:Jalo/wikEd international it.js]], [[:it:Wikipedia:Monobook.js/WikEd|main page]], [[:it:Wikipedia:Monobook.js/WikEd/Manuale|help page]] || [[:it:Utente:Jalo|Jalo]] || [[User:Jalo|Jalo]] ||
|-
|-
| Norwegian || no || [[User:Dvyjones/wikEd international no.js]] || [[:no:User:Dvyjones|Dvyjones]] || [[User:Dvyjones|Dvyjones]]
| Japanese || ja || [[User:Hatukanezumi/wikEd international ja.js]], [[:ja:Help:wikEd|help page]] || [[:ja:User:Hatukanezumi|Hatukanezumi]] || [[User:Hatukanezumi|Hatukanezumi]] ||
|-
|-
| New Norwegian || nn || [[User:Frokor/wikEd international nn.js]] || [[:nn:User:Frokor|Froko]] || [[User:Frokor|Frokor]]
| Kazakh || kk || [[User:Arystanbek/wikEd international kk.js]] || [[:kk:User:Arystanbek|Arystanbek]] || [[User:Arystanbek|Arystanbek]] || work in progress
|-
|-
| Polish || pl || [[User:Konradek/wikEd international pl.js]] || [[:pl:Wikipedysta:Konradek|konradek]] || [[User:Konradek|konradek]]
| Korean || ko || [[User:Ilovesabbath/wikEd international ko.js]] || [[:ko:User:Ilovesabbath|Ilovesabbath]] || [[User:Ilovesabbath|Ilovesabbath]] ||
|-
|-
| Portuguese || pt || [[User:Mosca/wikEd international pt.js]] || [[:pt:Usu%C3%A1rio:Mosca|Mosca]] || [[User:Mosca|Mosca]]
| Lower Sorbian || dsb || [[User:Michalwiki/wikEd international dsb.js]] || [[:dsb:Wužiwar:Michawiki|Michawiki]] || [[User:Michalwiki|Michalwiki]] ||
|-
|-
| Romanian || ro || [[User:Roamataa/wikEd international ro.js]] || || [[User:Roamataa|Roamataa]]
| Malay || ms || [[User:Aviator/wikEd international ms.js]] || [[:ms:Pengguna:Aviator|Aviator]] || [[User:Aviator|Aviator]] ||
|-
|-
| Russian || ru || [[User:IGW/wikEd international ru.js]] || [[:ru:User:IGW|IGW]] || [[User:IGW|IGW]]
| Minangkabau || min || [[User:Iwan Novirion/wikEd international min.js]] || [[:ms:Pengguna:Iwan Novirion|Iwan Novirion]] || [[User:Iwan Novirion|Iwan Novirion]] || work in progress
|-
|-
| Sicilian || scn || [[User:Meloscn/wikEd international scn.js]] || [[:scn:Utenti:Melos|Melos]] || [[User:Meloscn|Meloscn]]
| Norwegian || no || [[User:Dvyjones/wikEd international no.js]] || [[:no:User:Dvyjones|Dvyjones]] || [[User:Dvyjones|Dvyjones]] ||
|-
|-
| Slovak || sk || [[User:Helix84/wikEd international sk.js]] || [[:sk:User:Helix84|Helix84]] || [[User:Helix84|Helix84]]
| New Norwegian || nn || [[User:Frokor/wikEd international nn.js]] || [[:nn:User:Frokor|Froko]] || [[User:Frokor|Frokor]] ||
|-
|-
| Slovenian || sl || [[User:Eleassar/wikEd international sl.js]] || [[:sl:Uporabniški:Eleassar|Eleassar]] || [[User:Eleassar|Eleassar]]
| Persian (Farsi)|| fa || [[User:Reza1615/wikEd international fa.js]] || [[:fa:User:Reza1615|Reza1615]] || [[User:Reza1615|Reza1615]] || also [[:fa:User:ZxxZxxZ|ZxxZxxZ]]
|-
|-
| Spanish || es || [[User:Axelei/wikEd international es.js]] || [[:es:Usuario:Krusher|Krusher]] || [[User:Axelei|Axelei]]
| Polish || pl || [[User:Konradek/wikEd international pl.js]] || [[:pl:Wikipedysta:Konradek|konradek]] || [[User:Konradek|konradek]] ||
|-
|-
| Swedish || sv || [[User:Where next Columbus?/wikEd international sv.js]] || [[:sv:Användare:Where next Columbus?|Where next Columbus?]] || [[User:Where next Columbus?|Where next Columbus?]]
| Portuguese || pt || [[User:He7d3r/Tools/wikEd international pt.js]] || [[:wikibooks:pt:User:He7d3r|He7d3r]] || [[User:He7d3r|User:He7d3r]] || [[User:Mosca/wikEd international pt.js|previous version]] was maintained by [[User:Mosca|Mosca]]
|-
|-
| Turkish || tr || [[User:Vito Genovese/wikEd international tr.js]] || [[:tr:User:Vito Genovese|Vito Genovese]] || [[User:Vito Genovese|Vito Genovese]]
| Romanian || ro || [[User:Roamataa/wikEd international ro.js]] || || [[User:Roamataa|Roamataa]] ||
|-
|-
| Upper Sorbian || hsb || [[User:Michalwiki/wikEd international hsb.js]] || [[:hsb:Wužiwar:Michawiki|Michawiki]] || [[User:Michalwiki|Michalwiki]]
| Russian || ru || [[User:IGW/wikEd international ru.js]] || [[:ru:User:IGW|IGW]] || [[User:IGW|IGW]] ||
|-
|-
| Vietnamese || vi || [[User:Vinhtantran/wikEd international vi.js]] || [[:vi:User:Vinhtantran|Trần Vĩnh Tân]] || [[User:Vinhtantran|Vinhtantran]]
| Sicilian || scn || [[User:Meloscn/wikEd international scn.js]] || [[:scn:Utenti:Melos|Melos]] || [[User:Meloscn|Meloscn]] ||
|-
| Slovak || sk || [[User:Helix84/wikEd international sk.js]] || [[:sk:User:Helix84|Helix84]] || [[User:Helix84|Helix84]] ||
|-
| Slovenian || sl || [[User:Eleassar/wikEd international sl.js]] || [[:sl:Uporabniški:Eleassar|Eleassar]] || [[User:Eleassar|Eleassar]] ||
|-
| Spanish || es || [[User:Doblecaña/wikEd_international_es.js]] || [[:es:Usuario:Doblecaña|Doblecaña]] || [[User:Doblecaña|Doblecaña]] || [[User:Axelei/wikEd international es.js|previous version]] was maintained by [[:es:Usuario:Krusher|Krusher]] ([[User:Axelei|Axelei]])
|-
| Swedish || sv || [[User:Where next Columbus?/wikEd international sv.js]] || [[:sv:Användare:Where next Columbus?|Where next Columbus?]] || [[User:Where next Columbus?|Where next Columbus?]] ||
|-
| Turkish || tr || [[User:Vito Genovese/wikEd international tr.js]] || [[:tr:User:Vito Genovese|Vito Genovese]] || [[User:Vito Genovese|Vito Genovese]] ||
|-
| Upper Sorbian || hsb || [[User:Michalwiki/wikEd international hsb.js]] || [[:hsb:Wužiwar:Michawiki|Michawiki]] || [[User:Michalwiki|Michalwiki]] ||
|-
| Urdu || ur || [[User:Obaid Raza/wikEd international ur.js]] || [[:ur:صارف:Obaid Raza|Obaid Raza]] ||[[user:Obaid Raza|Obaid Raza]] ||
|-
| Vietnamese || vi || [[User:Vinhtantran/wikEd international vi.js]] || [[:vi:User:Vinhtantran|Trần Vĩnh Tân]] || [[User:Vinhtantran|Vinhtantran]] ||
|}
|}


== Installation ==
== Installation ==


In general, it is not required to explicitly install a translation. '''wikEd''' automatically detects the language settings by checking the variables <code>wgUserLanguage</code> (user preferences) and <code>wgContentLanguage</code> (wiki default language) and loads one of the above existing translations.
In general, it is not required to explicitly install a translation. '''wikEd''' automatically detects the language settings by checking the variables <code>wgUserLanguage</code> (user preferences) and <code>wgContentLanguage</code> (wiki default language) and loads one of the above existing translations.


It is possible to force another translation by adding the following line to your [[Special:Mypage/monobook.js|User:YourUsername/monobook.js]] (or whatever skin used, see [[Wikipedia:Skin|here]] for details) page:
It is possible to force another translation by adding the following line to your [[Special:Mypage/common.js|User:YourUsername/common.js]] page:


var wikEdLanguageDefault = 'en';
var wikEdConfig = {};
wikEdConfig.languageDefault = 'en';


Replace 'en' for English with the respective language code and click ''Shift-Reload'' to update after saving your edit. This also works to explicitly define the language for older MediaWiki installations which do not send their language settings.
Replace 'en' for English with the respective language code and click ''Shift-Reload'' to update after saving your edit. This also works to explicitly define the language for older MediaWiki installations which do not send their language settings.


On wikis that have no connection to the internet you have to install the following code on your [[Special:Mypage/monobook.js|User:YourUsername/monobook.js]] (or whatever skin used, see [[Wikipedia:Skin|here]] for details) page:
On wikis that have no connection to the internet you have to install the following code on your [[Special:Mypage/common.js|User:YourUsername/common.js]] page:


<nowiki>var wikEdTranslations = {</nowiki>
<nowiki>var wikEdConfig = {};</nowiki>
<nowiki>wikEdConfig.translations = {</nowiki>
<nowiki> 'en': 'http://en.wikipedia.org/enwiki/w/index.php?action=raw&ctype=text/javascript&title=User:Cacycle/wikEd_international_en.js'</nowiki>
<nowiki> 'en': 'http://en.wikipedia.org/enwiki/w/index.php?action=raw&ctype=text/javascript&title=User:Cacycle/wikEd_international_en.js'</nowiki>
<nowiki>};</nowiki>
<nowiki>};</nowiki>
Line 95: Line 114:


Alternatively, you can add a translation the old fashioned way as follows:
Alternatively, you can add a translation the old fashioned way as follows:

<nowiki>// install the English translation for [[en:User:Cacycle/wikEd]]</nowiki>
<nowiki>mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd_international_en.js'</nowiki>
<nowiki>+ '&action=raw&ctype=text/javascript');</nowiki>
<nowiki>var wikEdConfig = {};</nowiki>
<nowiki>wikEdConfig.loadTranslation = false; // do not try to automatically load a translation</nowiki>

On older non-Wikipedia wiki installations please use instead:


<nowiki>// install the English translation for [[en:User:Cacycle/wikEd]]</nowiki>
<nowiki>// install the English translation for [[en:User:Cacycle/wikEd]]</nowiki>
<nowiki>document.write('<script type="text/javascript" src="'</nowiki>
<nowiki>document.write('<script type="text/javascript" src="'</nowiki>
<nowiki> + 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd_international_en.js'</nowiki>
<nowiki>+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd_international_en.js'</nowiki>
<nowiki> + '&action=raw&ctype=text/javascript"><\/script>');</nowiki>
<nowiki>+ '&action=raw&ctype=text/javascript"><\/script>');</nowiki>
<nowiki>var wikEdLoadTranslation = false; // do not try to automatically load a translation</nowiki>
<nowiki>var wikEdConfig = {};</nowiki>
<nowiki>wikEdConfig.loadTranslation = false; // do not try to automatically load a translation</nowiki>


Replace <code><nowiki>http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd_international_en.js</nowiki></code> with the respective translation address and click ''Shift-Reload'' to update after saving your edit.
Replace <code><nowiki>http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd_international_en.js</nowiki></code> with the respective translation address and click ''Shift-Reload'' to update after saving your edit.
Line 120: Line 148:
#* '''Missing translations''' are displayed in their English built-in version
#* '''Missing translations''' are displayed in their English built-in version
# Save the translation under the following link: [[:en:Special:Mypage/wikEd_international_xx.js|User:''YourUsername''/wikEd_international_xx.js]] (replace xx by the language code of your translation). If you do not already have an user account on the English Wikipedia please [http://en.wikipedia.org/enwiki/w/index.php?title=Special:Userlogin&type=signup create one]. It is essential that the translation page name is in your personal userspace and ends in ''.js'' for security reasons so that only you and administrators can edit it. For the same reason you must use a [[strong password]] for your account! If you start from an existing translation, please link to that original source in your edit summary.
# Save the translation under the following link: [[:en:Special:Mypage/wikEd_international_xx.js|User:''YourUsername''/wikEd_international_xx.js]] (replace xx by the language code of your translation). If you do not already have an user account on the English Wikipedia please [http://en.wikipedia.org/enwiki/w/index.php?title=Special:Userlogin&type=signup create one]. It is essential that the translation page name is in your personal userspace and ends in ''.js'' for security reasons so that only you and administrators can edit it. For the same reason you must use a [[strong password]] for your account! If you start from an existing translation, please link to that original source in your edit summary.
# Load your translation into '''wikEd''' by adding the following code to your [[Special:Mypage/monobook.js|User:''YourUsername''/monobook.js]] (or whatever skin used) page:
# Load your translation into '''wikEd''' by adding the following code to your [[Special:Mypage/common.js|User:''YourUsername''/common.js]] page:
<nowiki>// install the (Language) translation for [[:en:User:Cacycle/wikEd]]</nowiki></code>
<nowiki>// install the (Language) translation for [[:en:User:Cacycle/wikEd]]</nowiki>
<nowiki>mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:YourUsername/wikEd_international_xx.js'</nowiki>
<nowiki>document.write('<script type="text/javascript" src="'</nowiki></code>
<nowiki> + 'http://en.wikipedia.org/enwiki/w/index.php?title=User:YourUsername/wikEd_international_xx.js'</nowiki></code>
<nowiki> + '&action=raw&ctype=text/javascript');</nowiki>
:: On older non-Wikipedia wiki installations please use instead:
<nowiki> + '&action=raw&ctype=text/javascript"></script>');</nowiki></code>
<nowiki>// install the (Language) translation for [[:en:User:Cacycle/wikEd]]</nowiki>
<nowiki>document.write('<script type="text/javascript" src="'</nowiki>
<nowiki> + 'http://en.wikipedia.org/enwiki/w/index.php?title=User:YourUsername/wikEd_international_xx.js'</nowiki>
<nowiki> + '&action=raw&ctype=text/javascript"></script>');</nowiki>
:: Replace ''User:YourUsername/wikEd_international_xx.js'' by the actual page name of the translation (or replace the whole web address if your translation is not on Wikipedia)
:: Replace ''User:YourUsername/wikEd_international_xx.js'' by the actual page name of the translation (or replace the whole web address if your translation is not on Wikipedia)
: 4. Update your installation by pressing ''Shift-Reload''
: 4. Update your installation by pressing ''Shift-Reload''
: 5. Check for JavaScript errors in your browser's error console (under Tools). Commonly, errors are caused by missing or wrong commas, semicolons, or parentheses.
: 5. Check for JavaScript errors in your browser's error console (under Tools). Commonly, errors are caused by missing or wrong commas, semicolons, or parentheses.
: 6. Optionally: You can check for missing translations by temporarily adding the following code to your [[Special:Mypage/monobook.js|User:''YourUsername''/monobook.js]] page:
: 6. Optionally: You can check for missing translations by temporarily adding the following code to your [[Special:Mypage/common.js|User:''YourUsername''/common.js]] page:
<nowiki>var wikEdConfig = {};</nowiki>
var wikEdShowMissingTranslations = true;
<nowiki>wikEdConfig.showMissingTranslations = true;</nowiki>
: 7. Please post a note to the [[User talk:Cacycle/wikEd|wikEd discussion page]] in order to add the translation link into the program code and to update this page
: 7. Please post a note to the [[User talk:Cacycle/wikEd|wikEd discussion page]] in order to add the translation link into the program code and to update this page


Line 138: Line 171:
== Language-specific settings ==
== Language-specific settings ==


The following language-specific settings can be added to your [[Special:Mypage/monobook.js|User:YourUsername/monobook.js]] page (or whatever skin used, see [[Wikipedia:Skin|here]] for details). Click ''Shift-Reload'' to update after saving your edit.
The following language-specific settings can be added to your [[Special:Mypage/common.js|User:YourUsername/common.js]] page. Click ''Shift-Reload'' to update after saving your edit.


* Use French rules for the punctuation fixing button <span style="background: #d4d0cc; border: 1px outset; padding-bottom: 2px;">[[Image:WikEd_fix_punct.png|16px|Fix punctuation]]</span>:
* Use French rules for the punctuation fixing button <span style="background: #d4d0cc; border: 1px outset; padding-bottom: 2px;">[[Image:WikEd_fix_punct.png|16px|Fix punctuation]]</span>:


var wikEdFixPunctFrench = true;
var wikEdConfig = {};
wikEdConfig.fixPunctFrench = true;


== AutoWikiBrowser RegExTypoFixer ==
== AutoWikiBrowser RegExTypoFixer ==


Common typos can be fixed using [[Wikipedia:AutoWikiBrowser|AutoWikiBrowser]] [[User:Mboverload/RegExTypoFix|RegExTypoFix]] rules. '''wikEd''' uses the [[Wikipedia:AutoWikiBrowser/Typos|English RegExTypoFix rules]] by default. To enable the feature and to switch to a different translation add the following lines to your [[Special:Mypage/monobook.js|User:''YourUsername''/monobook.js]] page:
Common typos can be fixed using [[Wikipedia:AutoWikiBrowser|AutoWikiBrowser]] [[User:Mboverload/RegExTypoFix|RegExTypoFix]] rules. '''wikEd''' uses the [[Wikipedia:AutoWikiBrowser/Typos|English RegExTypoFix rules]] by default. To enable the feature and to switch to a different translation add the following lines to your [[Special:Mypage/common.js|User:''YourUsername''/common.js]] page:

<nowiki>var wikEdConfig = {};</nowiki>
<nowiki>wikEdConfig.regExTypoFix = true;</nowiki>
<nowiki>wikEdConfig.regExTypoFixURL = 'http://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia:AutoWikiBrowser/Typos&action=raw';</nowiki>


[[Category:WikEd|Internationalization]]
<nowiki>var wikEdRegExTypoFix = true;</nowiki>
[[Category:Wikipedia tool documentation|WikEd international]]
<nowiki>var wikEdRegExTypoFixURL = 'http://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia:AutoWikiBrowser/Typos&action=raw';</nowiki>

Latest revision as of 19:53, 26 April 2021

Please support wikEd

Please support wikEd by helping to fix the following browser and MediaWiki issues.

  • Firefox:
    • 579763, 579760 Cursor/caret disappears (07-2010)
    • 1016372 Space lost when deleting text (05-2014)
    • 926230 Space at end of line not styled (10-2013)
    • 543204 Focus after search (01-2010)
    • 926164 Editor deletes blank before inserted block element when converting to text (10-2013)
    • 458524 Automatic syntax highlighting would interfere with undo/redo. The only reason why wikEd does not have automatic syntax highlighting. (10-2008)
  • Webkit/Chrome:
    • None.

This page explains how to install and to create translations for the MediaWiki editor wikEd.

List of existing translations

The following existing translations are automatically loaded, following the default language of the respective wiki. Please see below for how to continue a no longer maintained translation.

Language Code Link Translator home English user page Comment
English en User:Cacycle/wikEd international en.js Cacycle Cacycle
Afrikaans af User:Arnobarnard/wikEd international af.js Arnobarnard Arnobarnard
Arabic ar User:ترجمان05/wikEd international ar.js ترجمان05 ترجمان05
Bengali bn User:আফতাবুজ্জামান/wikEd international bn.js আফতাবুজ্জামান আফতাবুজ্জামান
Chinese (simplified) zh, zh-hans User:CAS222222221/wikEd international zh.js CAS222222221 CAS222222221 previous version was maintained by Shibo77 (Shibo77)
Chinese (traditional) zh-hant User:Liflon/wikEd international zh-hant.js Liflon Liflon previous version was maintained by Quest for Truth
Croatian hr User:SpeedyGonsales/wikEd_international_hr.js SpeedyGonsales SpeedyGonsales
Czech cs User:Sevela.p/wikEd international cs.js Sevela.p Sevela.p
Dutch nl User:Jeronevw/wikEd international nl.js Jeronevw
Esperanto eo User:Tlustulimu/wikEd international eo.js Tlustulimu Tlustulimu previous version was maintained by Arno Lagrange
Finnish fi User:Ejs-80/wikEd international fi.js Ejs-80 Ejs-80
French fr User:Leag/wikEd-fr.js, main page, help page Leag Leag
Galician gl User:Toliño/wikEd international gl.js Toliño
German de User:PerfektesChaos/wikEd international de.js PerfektesChaos PerfektesChaos previous version was maintained by Matthias_M. (Matthias_M.)
Hebrew he User:שמוליק/wikEd_international he.js שמוליק שמוליק
Hungarian hu User:Tsch81/wikEd-hu.js hu:User:Szerkesztő:Tsch81 Tsch81 user Csörföly D renamed to Tsch81
Italian it User:Jalo/wikEd international it.js, main page, help page Jalo Jalo
Japanese ja User:Hatukanezumi/wikEd international ja.js, help page Hatukanezumi Hatukanezumi
Kazakh kk User:Arystanbek/wikEd international kk.js Arystanbek Arystanbek work in progress
Korean ko User:Ilovesabbath/wikEd international ko.js Ilovesabbath Ilovesabbath
Lower Sorbian dsb User:Michalwiki/wikEd international dsb.js Michawiki Michalwiki
Malay ms User:Aviator/wikEd international ms.js Aviator Aviator
Minangkabau min User:Iwan Novirion/wikEd international min.js Iwan Novirion Iwan Novirion work in progress
Norwegian no User:Dvyjones/wikEd international no.js Dvyjones Dvyjones
New Norwegian nn User:Frokor/wikEd international nn.js Froko Frokor
Persian (Farsi) fa User:Reza1615/wikEd international fa.js Reza1615 Reza1615 also ZxxZxxZ
Polish pl User:Konradek/wikEd international pl.js konradek konradek
Portuguese pt User:He7d3r/Tools/wikEd international pt.js He7d3r User:He7d3r previous version was maintained by Mosca
Romanian ro User:Roamataa/wikEd international ro.js Roamataa
Russian ru User:IGW/wikEd international ru.js IGW IGW
Sicilian scn User:Meloscn/wikEd international scn.js Melos Meloscn
Slovak sk User:Helix84/wikEd international sk.js Helix84 Helix84
Slovenian sl User:Eleassar/wikEd international sl.js Eleassar Eleassar
Spanish es User:Doblecaña/wikEd_international_es.js Doblecaña Doblecaña previous version was maintained by Krusher (Axelei)
Swedish sv User:Where next Columbus?/wikEd international sv.js Where next Columbus? Where next Columbus?
Turkish tr User:Vito Genovese/wikEd international tr.js Vito Genovese Vito Genovese
Upper Sorbian hsb User:Michalwiki/wikEd international hsb.js Michawiki Michalwiki
Urdu ur User:Obaid Raza/wikEd international ur.js Obaid Raza Obaid Raza
Vietnamese vi User:Vinhtantran/wikEd international vi.js Trần Vĩnh Tân Vinhtantran

Installation

In general, it is not required to explicitly install a translation. wikEd automatically detects the language settings by checking the variables wgUserLanguage (user preferences) and wgContentLanguage (wiki default language) and loads one of the above existing translations.

It is possible to force another translation by adding the following line to your User:YourUsername/common.js page:

var wikEdConfig = {};
wikEdConfig.languageDefault = 'en';

Replace 'en' for English with the respective language code and click Shift-Reload to update after saving your edit. This also works to explicitly define the language for older MediaWiki installations which do not send their language settings.

On wikis that have no connection to the internet you have to install the following code on your User:YourUsername/common.js page:

var wikEdConfig = {};
wikEdConfig.translations = {
  'en': 'http://en.wikipedia.org/enwiki/w/index.php?action=raw&ctype=text/javascript&title=User:Cacycle/wikEd_international_en.js'
};

Replace 'en' with the respective default language of the wiki (check the source of a wiki page for wgContentLanguage) replace the translation address. Click Shift-Reload to update after saving your edit.

Alternatively, you can add a translation the old fashioned way as follows:

// install the English translation for [[en:User:Cacycle/wikEd]]
mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd_international_en.js'
+ '&action=raw&ctype=text/javascript');
var wikEdConfig = {};
wikEdConfig.loadTranslation = false; // do not try to automatically load a translation

On older non-Wikipedia wiki installations please use instead:

// install the English translation for [[en:User:Cacycle/wikEd]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd_international_en.js'
+ '&action=raw&ctype=text/javascript"><\/script>');
var wikEdConfig = {};
wikEdConfig.loadTranslation = false; // do not try to automatically load a translation

Replace http://en.wikipedia.org/enwiki/w/index.php?title=User:Cacycle/wikEd_international_en.js with the respective translation address and click Shift-Reload to update after saving your edit.

Translation guide

You are encouraged to translate wikEd into other languages. Here is a how-to:

  1. Copy the English example translation from User:Cacycle/wikEd_international_en.js. You can also continue a no longer maintained translation.
    • Please do not translate the comment lines starting with "//" in order to make maintenance easier
    • Please turn wikEd off on the the translation page in order to preserve the indention tabs
    • 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
  2. Save the translation under the following link: User:YourUsername/wikEd_international_xx.js (replace xx by the language code of your translation). If you do not already have an user account on the English Wikipedia please create one. It is essential that the translation page name is in your personal userspace and ends in .js for security reasons so that only you and administrators can edit it. For the same reason you must use a strong password for your account! If you start from an existing translation, please link to that original source in your edit summary.
  3. Load your translation into wikEd by adding the following code to your User:YourUsername/common.js page:
// install the (Language) translation for [[:en:User:Cacycle/wikEd]]
mw.loader.load('//en.wikipedia.org/enwiki/w/index.php?title=User:YourUsername/wikEd_international_xx.js'
 + '&action=raw&ctype=text/javascript');
On older non-Wikipedia wiki installations please use instead:
// install the (Language) translation for [[:en:User:Cacycle/wikEd]]
document.write('<script type="text/javascript" src="'
 + 'http://en.wikipedia.org/enwiki/w/index.php?title=User:YourUsername/wikEd_international_xx.js'
 + '&action=raw&ctype=text/javascript"></script>');
Replace User:YourUsername/wikEd_international_xx.js by the actual page name of the translation (or replace the whole web address if your translation is not on Wikipedia)
4. Update your installation by pressing Shift-Reload
5. Check for JavaScript errors in your browser's error console (under Tools). Commonly, errors are caused by missing or wrong commas, semicolons, or parentheses.
6. Optionally: You can check for missing translations by temporarily adding the following code to your User:YourUsername/common.js page:
var wikEdConfig = {};
wikEdConfig.showMissingTranslations = true;
7. Please post a note to the wikEd discussion page in order to add the translation link into the program code and to update this page

Updates and changes

Usually Cacycle will add changes directly to the translation pages in English so that you can update your translation. Please check into your English Wikipedia account from time to time for updates to be translated.

Language-specific settings

The following language-specific settings can be added to your User:YourUsername/common.js page. Click Shift-Reload to update after saving your edit.

  • Use French rules for the punctuation fixing button Fix punctuation:
var wikEdConfig = {};
wikEdConfig.fixPunctFrench = true;

AutoWikiBrowser RegExTypoFixer

Common typos can be fixed using AutoWikiBrowser RegExTypoFix rules. wikEd uses the English RegExTypoFix rules by default. To enable the feature and to switch to a different translation add the following lines to your User:YourUsername/common.js page:

var wikEdConfig = {};
wikEdConfig.regExTypoFix = true;
wikEdConfig.regExTypoFixURL = 'http://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia:AutoWikiBrowser/Typos&action=raw';