Do you speak a language other than English? Are you willing to donate some time translating English sentences? Great!
Perspectives needs both:
- Translations to new languages
- Translating English that remains in the current languages
We're willing to work with you to make translation as easy as possible. Here are some options for how you can help translate Perspectives.
##Options for translating
- Sign up at http://www.babelzilla.org
- Visit the Perspectives WTS page
- Sign up for your language and use the Babelzilla tools to translate!
If you have questions:
- Fork the Perspectives project on GitHub:
- Sign in to GitHub
- Click the 'Fork' button in the top right
- Edit the translation files inside plugin/chrome/locale:
- If needed, create a new folder in plugin/chrome/locale and copy over the
.dtd
and.properties
files from the en-US locale - Translate the strings inside each file
- If needed, create a new folder in plugin/chrome/locale and copy over the
- Send a pull request
- View the strings on GitHub and email us your translations. We can use them to create a new locale.
Prefer to work via IM? Encrypted email? Carrier pidgeon? Just let us know and we can help!
##Useful Links
- List of recognized Firefox locales
- Mozilla Developer Guide to Localization (or change the URL for your language)
- How to test locales (and see
test/Testing Localizations.txt
in the Perspectives git)
If you have any questions please email us and ask.
###How to publish a new localization
-
Make sure all
.dtd
and.properties
files are saved as UTF-8 with no BOM. Otherwise many things fail horribly. The python unit tests should detect this and fail any builds that don't match, so be sure to install python. -
Before publishing a release, register the new locale inside
chrome.manifest
. e.g.
locale perspectives fr chrome/locale/fr/
Don't forget the trailing slash!
- Write a line for the locale inside
install.rdf
:
<locale> perspectives/locale/fr-FR/</locale>
Adding a <Description>
block with a <em:translator>translator name</em:translator>
credit is a good thing.
Also ask your translator nicely to translate the 'description' and 'creator' fields.
-
Make sure to save the file as as UNIX/UTF-8 encoding.
-
Add a credit inside
plugin/chrome/content/credits/translators.txt
(or a credit to 'anonymous', if the translator prefers)