Firefox extension

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Bananeweizen (talk | contribs) at 19:54, 4 February 2005 (slowly moving towards 0.7 translation). It may differ significantly from the current version.

This page is meant to coordinate the translation efforts for the Firefox/Mozilla Wikipedia toolbar extension developed by User:Bananeweizen. If you want to help in translation, you can do so in two different ways. If you are familiar with CVS, I would really appreciate it if you become a member of the wikipedia.mozdev.org project and edit the files directly using CVS. That saves me hours of copying translations between CVS and the wiki.

Otherwise please add your language to the following list. Create a new sub page for your language and grab the contents of the English translation. Give it a status (including your signature) which indicates that you are working on the translation so others don't do the same work. When you have finished your translation, please set the status to "finished".

To find out the language code, use the Help->About menu in Firefox and have a look at the version information at the bottom of the dialog. It should look like "de-DE", "en-US" or something like that.

Whenever new strings are needed in more recent versions, they will be added as English strings to every language and the status field will be reset to indicate that some work is needed for that language. When a new major version of the extension is to be released, all current language strings from the pages below will be copied into that release, so you can expect the first inclusion of other languages than English and German in version 0.7.

General remarks about translation

  • Any string must be UTF-8 encoded.
  • You can not add new special characters through translation. Customizable special characters are planned for the next major version and may require an additional translation file then.

What needs to be translated

The to be translated strings currently consist of three parts:

User interface

All static user interface strings are represented as XML file where every string is encoded as XML entity. A single entry in those files is of the form

<!ENTITY wikipedia.link "Internal link">

You can modify anything between the quotation marks.

Strings in code

Strings used directly in the code are given like in a Java properties file. This list includes user interface strings which are build dynamically (like the special characters menu items). A single entry is of the form entry=value with an example like

wikipedia.settings.username.undefined=You need to set your username first.
  • You can modify anything after the equals sign.
  • If you need line breaks in the string, they can be represented as \n.
  • Numbered percent signs like %1 are placeholders which are filled during runtime. They must also occur in your translated string, but you can change their order if necessary (e.g. having %2 appear before %1 is allowed). The actual values are always bound to the same number.

Wikipedia templates

Language specific Wikipedia templates are given as XML file. They allow to insert language specific templates for stubs, copyright violations, deletion requests (or whatever may be common in your Wikipedia) via menu item. They are defined in an XML file and have the form

<?xml version="1.0" encoding="UTF-8" ?>
<templates>
	<template>
		<label>label of menu item to be shown in the templates menu</label>
		<insert>text to be inserted into wiki page on clicking menu item</insert>
		<tooltip>tooltip shown hovering over the menu item</tooltip>
	</template>
</templates>

A (non real word) example for English would be

<?xml version="1.0" encoding="UTF-8" ?>
<templates>
	<template>
		<label>Stub</label>
		<insert>{{Stub}}</insert>
		<tooltip>Add this to articles with less than 200 characters.</tooltip>
	</template>
</templates>
  • You may add as many templates as you want by adding more <template>...</template> tags in between the <templates></templates> tags.
  • The templates will be shown in this order as menu items in the templates menu (in 0.5 there is a bug, so they are only shown after the menu for the right mouse key has been shown the first time).
  • The tooltip tag is optional. So you can either leave the text between the tooltip tags empty or you complete remove the tooltip tags.
  • If the label is set to "-" (a minus sign, without the quotation marks) then a menu separator (a gray horizontal line) will be inserted in the menu. So you can group your items. The other tags are ignored in that case.

Available translations

Current status: Version 0.7 is feature complete. I'm updating all languages (one by one) to include the new strings. Please give me some days to do this.

Wikipedia domain Language Locale code User interface (XML) Code (Properties) Templates (XML) Version and status
de Deutsch (German) de-DE de/UI (CVS only) de/code (CVS only) de/templates (CVS only) 0.7, finished, maintained by extension developer
ca Català (Catalan) ca-AD Firefox extension/ca/UI Firefox extension/ca/code Firefox extension/ca/templates 0.5 finished by j_junyent
en English en-US Firefox extension/en/UI Firefox extension/en/code Firefox extension/en/templates 0.7, should be polished by native speaker
es Español (Spanish) es-AR Firefox extension/es/UI Firefox extension/es/code Firefox extension/es/templates 0.5. Almost finished. Only need to add some new strings, and there is no templates (I don't know which templates are needed). Aburayama
fr Français (french) fr-FR Firefox extension/fr/UI Firefox extension/fr/code Firefox extension/fr/templates 0.5. Finished. ste281 and ©éréales Kille®
it Italiano (Italiano) it-IT Firefox extension/it/UI Firefox extension/it/code Firefox extension/it/templates 0.5.1 Finished. Templates done. Check. LivoDario
ja Japanese ja-JP Firefox extension/ja/UI Firefox extension/ja/code Firefox extension/ja/templates 0.5. Almostly finished. PiaCarrot
nl Nederlands (Dutch) nl-NL Firefox extension/nl/UI Firefox extension/nl/code Firefox extension/nl/templates 0.5. Finished, with some most-used Dutch templates Avanbijleveld
pl Polski (Polish) pl-PL Firefox extension/pl/UI Firefox extension/pl/code Firefox extension/pl/templates 0.5. Finished, only need to add some templates. Goto
pt Português (Portuguese) pt-BR UI or Firefox_extension/pt-br/UI code or Firefox_extension/pt-br/code templates or Firefox_extension/pt-br/templates 0.6. Finished. Hugosenari
ro Română (Romanian) ro-RO Firefox extension/ro/UI Firefox extension/ro/code Firefox extension/ro/templates 0.5. started. Ronline
sk Slovenčina (Slovak) sk-SK Firefox extension/sk/UI Firefox extension/sk/code Firefox extension/sk/templates 0.5. started. (UI> 98%, code 100%, templates 0%) Valasek
zh-cn Simplified Chinese zh-CN Firefox extension/zh-cn/UI Firefox extension/zh-cn/code Firefox extension/zh-cn/templates 0.5. Finished. Xyb
zh-tw Traditional Chinese zh-TW Firefox extension/zh-tw/UI Firefox extension/zh-tw/code Firefox extension/zh-tw/templates 0.5. First done by Xyb, Modified by MilchFlasche, please reconsider:)