aboutsummaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorThierry Crozat2010-08-22 18:49:19 +0000
committerThierry Crozat2010-08-22 18:49:19 +0000
commitc89462c2a63f1419f389190c058c0d18a2d09118 (patch)
treecc50dd833e9cbb39ecec6e0ba86758e8d9f35e72 /po
parent66f7e4306c8159a7125d349bdb4208234d08cceb (diff)
downloadscummvm-rg350-c89462c2a63f1419f389190c058c0d18a2d09118.tar.gz
scummvm-rg350-c89462c2a63f1419f389190c058c0d18a2d09118.tar.bz2
scummvm-rg350-c89462c2a63f1419f389190c058c0d18a2d09118.zip
i18n: Implement po file parsing in create_translations tool
Until now the parsing was done by the po2c perl script, which generated a messages.h file. The create_translations executable had then to be recompiled before being executed. This commit removes the po2c perl script. The parsing is now directly done by the create_translations tool. The parsing has also been extended to support the msgctxt strings. This is not dumped yet in translations.dat but will be once I have finished implementing context support for the translations. svn-id: r52284
Diffstat (limited to 'po')
-rw-r--r--po/module.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/po/module.mk b/po/module.mk
index 26e709903f..3690052d54 100644
--- a/po/module.mk
+++ b/po/module.mk
@@ -35,10 +35,8 @@ updatepot:
#$(srcdir)/common/messages.cpp: $(POFILES)
# perl $(srcdir)/tools/po2c $^ > $(srcdir)/common/messages.cpp
-translations-dat:
- perl $(srcdir)/tools/create_translations/po2c $(POFILES) > $(srcdir)/tools/create_translations/messages.h
- make tools/create_translations
- tools/create_translations/create_translations
+translations-dat: tools/create_translations
+ tools/create_translations/create_translations $(POFILES)
mv translations.dat gui/themes/
update-translations: updatepot $(POFILES) translations-dat