Parent Directory
|
Revision Log
* Thuban/__init__.py (_): Implement the translation function for real using the python gettext module. * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't translate empty strings. * Thuban/UI/application.py (ThubanApplication.read_startup_files): Add a missing space to a warning message * po/README: New. Notes about the management of the translation files. * po/Makefile: New. Makefile to help manage the translation files. * po/es.po: New. Spanish translation by Daniel Calvelo Aros * MANIFEST.in: Include the *.mo files in Resources/Locale and the translations and support files in po/ * setup.py (data_files): Add the *.mo files to the data_files too * README: Add note about the translations when building from CVS
1 | bh | 671 | |
2 | all: | ||
3 | @echo 'Usage:' | ||
4 | @echo ' make pot create thuban.pot' | ||
5 | @echo ' make update-po merge a new thuban.po with the *.po files' | ||
6 | @echo ' make mo create the mo files' | ||
7 | |||
8 | MO_DIR = ../Resources/Locale | ||
9 | PO_DIR = po | ||
10 | DOMAIN = thuban | ||
11 | |||
12 | LIST_POTFILES = grep -l "_(\"" ../Thuban/*.py ../Thuban/*/*.py | ||
13 | |||
14 | |||
15 | pot: | ||
16 | xgettext -k_ -o $(DOMAIN).pot `$(LIST_POTFILES)` | ||
17 | |||
18 | update-po: | ||
19 | for po in *.po; do \ | ||
20 | lingua=`basename $$po .po`; \ | ||
21 | mv $$lingua.po $$lingua.old.po; \ | ||
22 | if msgmerge -o $$lingua.po $$lingua.old.po $(DOMAIN).pot; then\ | ||
23 | rm $$lingua.old.po; \ | ||
24 | else \ | ||
25 | rm -f $$lingua.po; \ | ||
26 | mv $$lingua.old.po $$lingua.po; \ | ||
27 | fi \ | ||
28 | done | ||
29 | |||
30 | |||
31 | mo: | ||
32 | for po in *.po; do\ | ||
33 | lingua=`basename $$po .po`; \ | ||
34 | install -d $(MO_DIR)/$$lingua/LC_MESSAGES/ ; \ | ||
35 | msgfmt -o $(MO_DIR)/$$lingua/LC_MESSAGES/$(DOMAIN).mo $$po ;\ | ||
36 | done | ||
37 | |||
38 |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Author Date Id Revision |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |