Replace po4a-gettextize with po4a-updatepo
as recommended by error message in issue #7149
(cherry picked from commit 41202b9bc5
)
This commit is contained in:
parent
16c2877643
commit
600a0ec98a
2 changed files with 6 additions and 6 deletions
|
@ -115,7 +115,7 @@ if "update-po" in COMMAND_LINE_TARGETS or "pot-update" in COMMAND_LINE_TARGETS o
|
|||
#
|
||||
|
||||
if "update-po4a" in COMMAND_LINE_TARGETS or "pot-update" in COMMAND_LINE_TARGETS:
|
||||
env.Po4aGettextize("wesnoth-manual/wesnoth-manual.pot", "../doc/manual/manual.en.xml", PO4A_FORMAT = "docbook")
|
||||
env.Po4aUpdatePo("wesnoth-manual/wesnoth-manual.pot", "../doc/manual/manual.en.xml", PO4A_FORMAT = "docbook")
|
||||
for lingua in linguas:
|
||||
env.Po4aTranslate("../doc/manual/manual." + lingua + ".xml",
|
||||
["../doc/manual/manual.en.xml", join("wesnoth-manual", lingua + ".po")],
|
||||
|
@ -123,7 +123,7 @@ if "update-po4a" in COMMAND_LINE_TARGETS or "pot-update" in COMMAND_LINE_TARGETS
|
|||
Alias("update-po4a", Alias("manual"))
|
||||
|
||||
manpages = Split("wesnoth.6 wesnothd.6")
|
||||
env.Po4aGettextize("wesnoth-manpages/wesnoth-manpages.pot",
|
||||
env.Po4aUpdatePo("wesnoth-manpages/wesnoth-manpages.pot",
|
||||
[join("../doc/man", man) for man in manpages], PO4A_FORMAT = "man")
|
||||
for lingua in linguas:
|
||||
for man in manpages:
|
||||
|
|
|
@ -46,11 +46,11 @@ def generate(env):
|
|||
return env.MsgInit(target, source, **kw)
|
||||
env.AddMethod(MsgInitMerge)
|
||||
|
||||
env["PO4A_GETTEXTIZE"] = WhereIs("po4a-gettextize")
|
||||
po4a_gettextize = Builder(
|
||||
action = "$PO4A_GETTEXTIZE -f $PO4A_FORMAT ${''.join([' -m ' + str(source) for source in SOURCES])} -p $TARGET",
|
||||
env["PO4A_UPDATEPO"] = WhereIs("po4a-updatepo")
|
||||
po4a_update_po = Builder(
|
||||
action = "$PO4A_UPDATEPO -f $PO4A_FORMAT ${''.join([' -m ' + str(source) for source in SOURCES])} -p $TARGET",
|
||||
)
|
||||
env["BUILDERS"]["Po4aGettextize"] = po4a_gettextize
|
||||
env["BUILDERS"]["Po4aUpdatePo"] = po4a_update_po
|
||||
|
||||
env["PO4A_TRANSLATE"] = WhereIs("po4a-translate")
|
||||
po4a_translate = Builder(
|
||||
|
|
Loading…
Add table
Reference in a new issue