SCons recipe: made message catalog initialization actually work.

This commit is contained in:
Sergey Popov 2008-05-14 17:54:14 +00:00
parent a516494431
commit 4d518cf9c8

View file

@ -29,12 +29,13 @@ def generate(env):
env["MSGINIT"] = WhereIs("msginit")
msginit = Builder(
action = "$MSGINIT -i $SOURCE -o $TARGET",
action = "$MSGINIT -i $SOURCE -o $TARGET --no-translator",
src_suffix = ".pot",
suffix = ".po",
single_source = True
)
env["BUILDERS"]["MsgInit"] = msginit
env["ENV"]["LANG"] = os.environ.get("LANG")
def MsgInitMerge(env, target, source):
if os.path.exists(target + ".po"):