mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 19:50:24 +00:00
scons: massage {wml,cpp}.pot files with msgcat instead of just moving them
This commit is contained in:
parent
d891023737
commit
fccb00b92d
@ -86,9 +86,9 @@ if "pot-update" in COMMAND_LINE_TARGETS:
|
||||
]
|
||||
)
|
||||
elif cfgs:
|
||||
env.Command(new_pot, wml_pot, Move("$TARGET", "$SOURCE"))
|
||||
env.Command(new_pot, wml_pot, ["msgcat --sort-by-file $SOURCES -o $TARGET", Delete(wml_pot)])
|
||||
else:
|
||||
env.Command(new_pot, source_pot, Move("$TARGET", "$SOURCE"))
|
||||
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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user