Jump to content

Extension:Firefox toolbar: Difference between revisions

From mediawiki.org
Content deleted Content added
imported>Delete
No edit summary
Guillom (talk | contribs)
m rv
Line 1: Line 1:
'''Note: For those who do not know, I ([[en:User:Bugs5382|Shane]] or [[User:Bugs5382]]) has taken over this project. With the new version v0.8.0 there will be no more template translating, but the DTD files will still need to be translated. Also this page will be updated once I get the new new version is out. I enabled 0.7.1 as the stable tree for Firefox 1.5. Any questions, please post on the [http://wikipedia.mozdev.org mailing list]. Please post all bug reports to this [http://wikipedia.mozdev.org/bugs.html page]. Thanks! --[[User:Bugs5382|Bugs5382]] 03:35, 12 April 2006 (UTC)'''


----


This page is meant to coordinate the translation efforts for the [http://wikipedia.mozdev.org 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 [http://wikipedia.mozdev.org 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.
*Leave the order of the strings as it is and don't remove comments (you may translate comments, if wanted). That makes comparison of different language files easier. All translations with a changed order of strings will not be included in the extension.

== 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
<code><pre>
<!ENTITY wikipedia.link "Internal link">
</pre></code>
*You can modify anything between the quotation marks.
*You may translate the comments in between the <code>&lt;!-- ... --&gt;</code> patterns (but leaving them as is makes comparison of language files easier). Don't remove the comments completely!

=== 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 <code>entry=value</code> with an example like
<code><pre>
wikipedia.settings.username.undefined=You need to set your username first.
</pre></code>
*You can modify anything after the equals sign.
*If you need line breaks in the string, they can be represented as <code>\n</code>.
*Numbered percent signs like <code>%1</code> 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 <code>%2</code> appear before <code>%1</code> is allowed). The actual values are always bound to the same number.
*Please leave comments (starting with a <code>#</code> character) as they are.

=== 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
<code><pre>
<?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>
</pre></code>
A (non real word) example for English would be
<code><pre>
<?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>
</pre></code>
*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. You may translate the newly added strings for that version.''' Version 0.7.0.1 on the project homepage includes all of the translations for version 0.5, so you can check how your former translations are doing.

{| border="1"
!Wikipedia domain
!Language
!Locale code
!User interface (XML)
!Code (Properties)
!Templates (XML)
!Version and status
|-
|de
|Deutsch (German)
|de-DE
|[http://www.mozdev.org/source/browse/wikipedia/src/extension/chrome/locale/de-DE/wikipedia/wikipedia.dtd de/UI (CVS only)]
|[http://www.mozdev.org/source/browse/wikipedia/src/extension/chrome/locale/de-DE/wikipedia/wikipediastrings.properties de/code (CVS only)]
|[http://www.mozdev.org/source/browse/wikipedia/src/extension/chrome/locale/de-DE/wikipedia/templates.xml 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.7 finished by [[User:Martorell|Joanot]]
|-
|cs
|Česky (Czech)
|cs-CZ
|[[Firefox extension/cs/UI]]
|[[Firefox extension/cs/code]]
|[[Firefox extension/cs/templates]]
| 0.7, Finished translation, now emendation [[User:Cwok|Cwok]]
|-
|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.7, Finished! [[User:Trickyraven|Trickyraven]]
|-
|fr
|Français (french)
|fr-FR
|[[Firefox extension/fr/UI]]
|[[Firefox extension/fr/code]]
|[[Firefox extension/fr/templates]]
|0.7 started translation [[User:Ste281|Ste281]]
|-
|it
|Italiano (Italiano)
|it-IT
|[[Firefox extension/it/UI]]
|[[Firefox extension/it/code]]
|[[Firefox extension/it/templates]]
|0.7 needs ''proofreading''
|-
|[[/ja|ja]]
|Japanese
|ja-JP
|[[Firefox extension/ja/UI]]
|[[Firefox extension/ja/code]]
|[[Firefox extension/ja/templates]]
|0.7 ''almostly finished - [[User:PiaCarrot|Pia]][[User_talk:PiaCarrot|Carrot]]''
|-
|nl
|Nederlands (Dutch)
|nl-NL
|[[Firefox extension/nl/UI]]
|[[Firefox extension/nl/code]]
|[[Firefox extension/nl/templates]]
|0.7 ''Finished''
|-
|nb
|Norsk Bokmål (Norwegian Bokmål)
|nb-NO
|[[Firefox extension/nb/UI]]
|[[Firefox extension/nb/code]]
|[[Firefox extension/nb/templates]]
|0.7 ''started - needs translation''
|-
|pl
|Polski (Polish)
|pl-PL
|[[Firefox extension/pl/UI]]
|[[Firefox extension/pl/code]]
|[[Firefox extension/pl/templates]]
|0.8 ''Some problems'' [[User:Nux|Nux]]
|-
|pt
|Português (Portuguese)
|pt-BR
|[[Firefox_extension/pt-br/UI]]
|[[Firefox_extension/pt-br/code]]
|[[Firefox_extension/pt-br/templates]]
|0.7 ''Finished''
|-
|ro
|Română (Romanian)
|ro-RO
|[[Firefox extension/ro/UI]]
|[[Firefox extension/ro/code]]
|[[Firefox extension/ro/templates]]
|0.7 ''needs translation''
|-
|ru
|Russian
|ru-RU
|[[Firefox extension/ru/UI]]
|[[Firefox extension/ru/code]]
|[[Firefox extension/ru/templates]]
|0.7 ''Finished by Zero''
|-
|sk
|Slovenčina (Slovak)
|sk-SK
|[[Firefox extension/sk/UI]]
|[[Firefox extension/sk/code]]
|[[Firefox extension/sk/templates]]
|0.7 ''Finished''
|-
|sr
|Serbian (Српски)
|sr-SR
|[[Firefox extension/sr/UI]]
|[[Firefox extension/sr/code]]
|[[Firefox extension/sr/templates]]
|0.7 ''Finished''
|-
|uk-ua
|Ukrainian
|uk-UA
|[[Firefox extension/uk-ua/UI]]
|[[Firefox extension/uk-ua/code]]
|[[Firefox extension/uk-ua/templates]]
|0.7 started translation [[User:Cheba|Cheba]]
|-
|zh-cn
|简体中文 (Simplified Chinese)
|zh-CN
|[[Firefox extension/zh-cn/UI]]
|[[Firefox extension/zh-cn/code]]
|[[Firefox extension/zh-cn/templates]]
|0.7''Finished!''翻译完成 - [[w:zh:user:vipuser|vipuser]]
|-
|zh-tw
|繁體中文 (Traditional Chinese)
|zh-TW
|[[Firefox extension/zh-tw/UI]]
|[[Firefox extension/zh-tw/code]]
|[[Firefox extension/zh-tw/templates]]
|0.7 ''Finished!''翻譯完成 - [[w:zh:user:vipuser|vipuser]]
|-
|bg
|Bulgarian
|bg-BG
|[[Firefox extension/bg/UI]]
|[[Firefox extension/bg/code]]
|[[Firefox extension/bg/templates]]
|0.7, started by [[User:Marudina|Marudina]]
|-
|br
|Brezhoneg (Breton)
|br-FR
|[[Firefox extension/br/UI]]
|[[Firefox extension/br/code]]
|[[Firefox extension/br/templates]]
| 0.7 ''Finished'' - by [[User:Fulup|Fulup]]
|}

[[Category:MediaWiki tools]]
[[Category:Firefox Extensions|*]]

Revision as of 18:52, 1 September 2006

Note: For those who do not know, I ( or User:Bugs5382) has taken over this project. With the new version v0.8.0 there will be no more template translating, but the DTD files will still need to be translated. Also this page will be updated once I get the new new version is out. I enabled 0.7.1 as the stable tree for Firefox 1.5. Any questions, please post on the mailing list. Please post all bug reports to this page. Thanks! --Bugs5382 03:35, 12 April 2006 (UTC)




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.
  • Leave the order of the strings as it is and don't remove comments (you may translate comments, if wanted). That makes comparison of different language files easier. All translations with a changed order of strings will not be included in the extension.

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.
  • You may translate the comments in between the <!-- ... --> patterns (but leaving them as is makes comparison of language files easier). Don't remove the comments completely!

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.
  • Please leave comments (starting with a # character) as they are.

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. You may translate the newly added strings for that version. Version 0.7.0.1 on the project homepage includes all of the translations for version 0.5, so you can check how your former translations are doing.

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.7 finished by Joanot
cs Česky (Czech) cs-CZ Firefox extension/cs/UI Firefox extension/cs/code Firefox extension/cs/templates 0.7, Finished translation, now emendation Cwok
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.7, Finished! Trickyraven
fr Français (french) fr-FR Firefox extension/fr/UI Firefox extension/fr/code Firefox extension/fr/templates 0.7 started translation Ste281
it Italiano (Italiano) it-IT Firefox extension/it/UI Firefox extension/it/code Firefox extension/it/templates 0.7 needs proofreading
ja Japanese ja-JP Firefox extension/ja/UI Firefox extension/ja/code Firefox extension/ja/templates 0.7 almostly finished - PiaCarrot
nl Nederlands (Dutch) nl-NL Firefox extension/nl/UI Firefox extension/nl/code Firefox extension/nl/templates 0.7 Finished
nb Norsk Bokmål (Norwegian Bokmål) nb-NO Firefox extension/nb/UI Firefox extension/nb/code Firefox extension/nb/templates 0.7 started - needs translation
pl Polski (Polish) pl-PL Firefox extension/pl/UI Firefox extension/pl/code Firefox extension/pl/templates 0.8 Some problems Nux
pt Português (Portuguese) pt-BR Firefox_extension/pt-br/UI Firefox_extension/pt-br/code Firefox_extension/pt-br/templates 0.7 Finished
ro Română (Romanian) ro-RO Firefox extension/ro/UI Firefox extension/ro/code Firefox extension/ro/templates 0.7 needs translation
ru Russian ru-RU Firefox extension/ru/UI Firefox extension/ru/code Firefox extension/ru/templates 0.7 Finished by Zero
sk Slovenčina (Slovak) sk-SK Firefox extension/sk/UI Firefox extension/sk/code Firefox extension/sk/templates 0.7 Finished
sr Serbian (Српски) sr-SR Firefox extension/sr/UI Firefox extension/sr/code Firefox extension/sr/templates 0.7 Finished
uk-ua Ukrainian uk-UA Firefox extension/uk-ua/UI Firefox extension/uk-ua/code Firefox extension/uk-ua/templates 0.7 started translation Cheba
zh-cn 简体中文 (Simplified Chinese) zh-CN Firefox extension/zh-cn/UI Firefox extension/zh-cn/code Firefox extension/zh-cn/templates 0.7Finished!翻译完成 - vipuser
zh-tw 繁體中文 (Traditional Chinese) zh-TW Firefox extension/zh-tw/UI Firefox extension/zh-tw/code Firefox extension/zh-tw/templates 0.7 Finished!翻譯完成 - vipuser
bg Bulgarian bg-BG Firefox extension/bg/UI Firefox extension/bg/code Firefox extension/bg/templates 0.7, started by Marudina
br Brezhoneg (Breton) br-FR Firefox extension/br/UI Firefox extension/br/code Firefox extension/br/templates 0.7 Finished - by Fulup