From 378387c903d72d902359a3923cef2c64b12a824f Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 12 Aug 2013 17:35:41 +0200 Subject: I18N: Move specification of engine specific files to enginedir/POTFILES. This allows to keep the engines to specfiy the files for translation close to the engine sources itself. Thanks to criezy for his suggestion on this approach. --- po/module.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'po/module.mk') diff --git a/po/module.mk b/po/module.mk index a9295656db..88bf7d5d12 100644 --- a/po/module.mk +++ b/po/module.mk @@ -2,8 +2,10 @@ POTFILE := $(srcdir)/po/scummvm.pot POFILES := $(wildcard $(srcdir)/po/*.po) CPFILES := $(wildcard $(srcdir)/po/*.cp) +ENGINE_INPUT_POTFILES := $(wildcard $(srcdir)/engines/*/POTFILES) updatepot: - xgettext -f $(srcdir)/po/POTFILES -D $(srcdir) -d scummvm --c++ -k_ -k_s -k_c:1,2c -k_sc:1,2c --add-comments=I18N\ + cat $(srcdir)/po/POTFILES $(ENGINE_INPUT_POTFILES) | \ + xgettext -f - -D $(srcdir) -d scummvm --c++ -k_ -k_s -k_c:1,2c -k_sc:1,2c --add-comments=I18N\ -kDECLARE_TRANSLATION_ADDITIONAL_CONTEXT:1,2c -o $(POTFILE) \ --copyright-holder="ScummVM Team" --package-name=ScummVM \ --package-version=$(VERSION) --msgid-bugs-address=scummvm-devel@lists.sf.net -o $(POTFILE)_ -- cgit v1.2.3