changeset 7e1c04f97b7d in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset&node=7e1c04f97b7d
description:
Copy templates to client directories
diffstat:
import_weblate.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (25 lines):
diff -r 3998dc400671 -r 7e1c04f97b7d import_weblate.py
--- a/import_weblate.py Sun May 02 10:20:28 2021 +0200
+++ b/import_weblate.py Sun May 02 10:29:21 2021 +0200
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import glob
import os
+import shutil
from optparse import OptionParser
import polib
@@ -48,6 +49,13 @@
with open(output, 'w') as f:
f.write(str(pofile))
+ shutil.copyfile(
+ os.path.join(repository, 'templates/tryton.pot'),
+ os.path.join(directory, 'tryton/tryton/data/locale/tryton.pot'))
+ shutil.copyfile(
+ os.path.join(repository, 'templates/sao.pot'),
+ os.path.join(directory, 'sao/locale/messages.pot'))
+
if __name__ == '__main__':
parser = OptionParser('%prog repository tryton_directory')