chris1610 / satchmo (http://satchmoproject.com/)
Satchmo is an ecommerce framework built on the Django framework.
$ hg clone http://bitbucket.org/chris1610/satchmo/
How to translate Satchmo
Translating Satchmo
- Download the latest development version from svn, see GetCode.
- Change directory to satchmo and type:
python make-messages.py -l de
... but replace "de" with the language code for the message file you want to create. The language code, in this case, is in locale format. For example, it’s pt_BR for Brazilian Portuguese and de_AT for Austrian German. For the command to work you need to have python and xgettext installed.
This will extract strings that need to be translated from the Satchmo code and templates. Upon completion of this command these strings and references to where they are used are stored in the file `satchmo/locale/de/LC_MESSAGES/django.po` (again, replace "de" with your own locale).
If the `django.po` file already exists the above command will update it and add new strings if any are discovered.
- Translate the ''django.po'' file of your locale using a translation editor:
- poedit
- kbabel
- gtranslator
- Submit a ticket with your translation
Translating dependancies
Unless a translation to your language is already available you may also need to translate packages on which Satchmo depends:
Such translations are to be submitted to the corresponding project and not to the Satchmo project.
Notes
Although Django provides a `make-messages.py` script it does not support the PDF generation templates used in Satchmo. For that reason you should use the customized `make-messages.py` script that comes with Satchmo instead of the Django one.
