Explicitly use python3 in translations.

Ubuntu 20.04 no longer has the python link or python2 by default.
This commit is contained in:
Pentarctagon 2020-05-03 13:33:21 -05:00 committed by loonycyborg
parent 35bd3ac39e
commit a64ed84a48
2 changed files with 2 additions and 2 deletions

View file

@ -168,7 +168,7 @@ if(ENABLE_POT_UPDATE_TARGET)
add_custom_command(
# Same idea with a dummy file as in pot-update: we never make it, and run the command each time.
OUTPUT ${PROJECT_SOURCE_DIR}/po/po_stat.dummy
COMMAND python utils/po_stat.py
COMMAND python3 utils/po_stat.py
--update-cfg
--textdomains=wesnoth,wesnoth-editor,wesnoth-help,wesnoth-lib,wesnoth-multiplayer,wesnoth-tutorial,wesnoth-units
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}

View file

@ -91,7 +91,7 @@ if "pot-update" in COMMAND_LINE_TARGETS:
env.Command(new_pot, source_pot, ["msgcat --sort-by-file $SOURCES -o $TARGET", Delete(source_pot)])
env.Command(pot, new_pot, Action(update_pot))
env.Alias("pot-update", "../translations", "python utils/po_stat.py --update-cfg --textdomains=wesnoth,wesnoth-editor,wesnoth-help,wesnoth-lib,wesnoth-multiplayer,wesnoth-tutorial,wesnoth-units")
env.Alias("pot-update", "../translations", "python3 utils/po_stat.py --update-cfg --textdomains=wesnoth,wesnoth-editor,wesnoth-help,wesnoth-lib,wesnoth-multiplayer,wesnoth-tutorial,wesnoth-units")
if "update-po" in COMMAND_LINE_TARGETS or "pot-update" in COMMAND_LINE_TARGETS or "update-po4a" in COMMAND_LINE_TARGETS:
for domain in textdomains: