Skip to content

Commit 79e7c6e

Browse files
committed
Testing translations in mailgw.py, update translations, i18n improved
i18n.py: translation objects get a _file which is the file that catalog was loaded from. Useful for debugging. mailgw.py: fix code to include roundup.i18n and invoke propert method. GNUMakefile: added roundup.pot target. Also building roundup.pot sets the release version and product code in roundup.pot. Release version from roundup.__init__.py. merged roundup.pot changes into all *.po files. Not sure if the version info in the headers of the .po files is supposed to be updated to match roundup.pot or not. test_mailgw.py: test cases for en and de translations tested. Not sure why I neede to set roundupdb._ and mailgw._, but followed setUp method code and it worked.
1 parent fd2c5eb commit 79e7c6e

File tree

17 files changed

+2581
-2486
lines changed

17 files changed

+2581
-2486
lines changed

locale/GNUmakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ template:
4848
../share/roundup/templates/devel/html/*.html \
4949
../share/roundup/templates/minimal/html/*.html \
5050
../share/roundup/templates/responsive/html/*.html
51+
VERSION="`sed -ne \"/__version__/s/.*'\(.*\)'.*/\1/p\" \
52+
../build/lib/roundup/__init__.py`"; \
5153
${XGETTEXT} -j -w 80 -F \
54+
--package-name=Roundup \
55+
--package-version=$$VERSION \
5256
5357
--copyright-holder="See Roundup README.txt" \
5458
-o $(TEMPLATE) $(SOURCES)
@@ -69,3 +73,5 @@ diff:
6973

7074
%.mo: %.po
7175
${MSGFMT} --statistics -o $@ $<
76+
77+
roundup.pot: template

0 commit comments

Comments
 (0)