Policy about translation (See also #2434)
- You should not translate the name of this addon itself "Tree Style Tab", instead you can add a translated name after that like "Tree Style Tab - ツリー型タブ" (this just repeats "Tree Style Tab" in Japanese).
- This is for better findability on the Mozilla Add-ons website and the addons manager.
- Here is the commit to revert localized addon name to the global name. The term "Tree Style Tab" in these messages means this addon itself.
- You still can translate the title of the sidebar panel "Tree Style Tab" in your language, for more natural user experience.
You can translate TST's messages on GitLocalize.com. If you want to become a moderator of a language, please sign up to the service and contact me.
Even if you don't have an account on GitLocalize.com, the Web Extension Translator will help your translation. Steps:
- Click the "Load from GitHub" button (an octcat icon).
- Input an URL
https://github.com/piroor/treestyletab/tree/trunk
in to the field and click the "OK" button. - Choose your language from the rightside dropdown list.
- Find fields marked with red line - blank (untranslated) or updated messages, and translate them.
- Click the "Submit changes to the developers" button (a right arrow icon).
- Choose your language again and click the "OK" button.
- Then a new issue becomes ready to be created and your translation result is copied to the clipboard. But please don't create an issue for now.
- Log in to the GitHub.
- Go to the resource
webextensions/_locales/(language code)/messages.json
on this repository. For examplewebextensions/_locales/ja/messages.json
for Japanese language. - Click the "Edit" button (an pencil icon). Then you'll see an edit form for the file.
- Select all, delete it, and paste your translation from the clipboard to the form.
- Remove needless prefix and suffix:
'''json
and'''
(three backquotes actually). - Input a commit message like
Update Japanese translation
into the input field below the heading "Propose file change". - Click the "Propose file change" button. Then you'll see difference of the change.
- Click the "Create pull request" button. Then you'll see a form to create a new pull request.
- Fill the title and the comment fields, and click the "Create pull request" button. Then a pull request is really created and a notification message will be sent to me automatically.
There are some helper utilities for translations.
- ChromeExtensionI18nHelper for Sublime Text plug-in: it is designed for Google Chrome extensions, but it is also available WebExtensions-based Firefox addons.
- web-ext-translator: a Java-based web editor for translator UI. Offline version of the Web Extension Translator.
If you want to know changes in the main en
locale, you can compare the latest code with any specific version. For example, changes from the version 3.2.0 is: https://github.com/piroor/treestyletab/compare/3.2.0...master
Sadly GitHub doesn't provide ability to show the difference between two revisions about single file, but you can see that with the raw git
command. For example if you want to see changes of the English resource from the version 3.2.0 to the latest revision:
$ git diff 3.2.0 master -- webextensions/_locales/en/messages.json