My favorites | Sign in
Logo
             
Search
for
Updated Jan 29, 2009 by nekohayo
Labels: Featured, Phase-Support
Translating  
helping Specto speak your language

Translating the .po files directly and sending them by email to nekohayo a gmail.com is preferred.

Here is a short guide to translating under Linux, it is here as a "quick reference" or reminder for people like Kiddo who always forget.

You will need:

  • specto
  • a good efficiency in your language - it is not encouraged to translate if it is not in your mother tongue
  • a .po file editor. We recommend poedit, but you are free to use whatever suits you. poedit will most likely be available from your distribution packages. For example, ubuntu users can easily install "poedit" with synaptic.

This guide will assume you are using the development (Bazaar) version of Specto.

  1. recreate the template file by executing the script called generate_template.py in the po folder
  2. if your language does not exist yet, create a subfolder in po/ (such as po/fr for French)
  3. open specto.pot with your translation tool (ex.: poedit)
  4. you will now be able to create a .po file that you can put in your directory (for example, po/fr/specto.po)
  5. translate and save your work
  6. poedit automatically creates a .mo file besides the .po file
  7. edit setup.py and find the line where it says i18n_languages = something. Add your locale code (fr for French, de for German, it for Italian, etc) to the list
  8. run installation script again: sudo python setup.py install

If your language already exists in Specto and you want to translate new strings that were added:

  1. run generate_template.py in the po folder
  2. open your .po file (such as po/fr/specto.po), and tell your translation software to update from the .pot template file (poedit has this in the Catalog menu).
  3. translate, save, reinstall.


Sign in to add a comment
Hosted by Google Code