Tweak extensions of intermediate .pot files

This commit is contained in:
Sergey Popov 2010-01-27 01:27:05 +00:00
parent a420ff3c39
commit 4187ce6e8f

View file

@ -54,7 +54,7 @@ if "pot-update" in COMMAND_LINE_TARGETS:
sources = map(lambda x: Dir("#").File(x), domain_sources[domain[7:]])
if sources:
source_pot = env.Command(
join(domain, domain + ".cpp.po"),
join(domain, domain + ".cpp.pot"),
sources,
"""xgettext --force-po --default-domain=%s --directory=. --add-comments=TRANSLATORS: \
--from-code=UTF-8 --sort-by-file --keyword=sgettext \
@ -71,7 +71,7 @@ if "pot-update" in COMMAND_LINE_TARGETS:
cfgs = map(lambda x: File(x, Dir("..")), cfgs)
if cfgs:
wml_pot = env.Command(
join(domain, domain + ".wml.po"),
join(domain, domain + ".wml.pot"),
cfgs,
"utils/wmlxgettext --directory=. --domain=%s $SOURCES > $TARGET" % domain
)