maint: allow pushing hints pot to transifex without pulling translations first

This commit is contained in:
Yury V. Zaytsev 2023-01-05 21:35:11 +01:00
parent 6da4346c4e
commit e6ee031fc0
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
[po4a_langs] @translations@
[po4a_paths] var.d/$master/mc.hint.pot $lang:var.d/$master/$lang.po
[po4a_paths] var.d/$master/mc.hint.pot @translations@
[options] --master-charset UTF-8 --localized-charset UTF-8 --keep 5 --wrap-po no

View File

@ -19,7 +19,7 @@ def create_po4a_config(sync_dir: Path, script_dir: Path, source_dir: Path, resou
config = get_config_file(script_dir, resource, "po4a.cfg").read_text()
config = config.replace("@srcdir@", str(source_dir))
config = config.replace("@translations@", " ".join(translations))
config = config.replace("@translations@", " ".join(f"{lang}:var.d/$master/{lang}.po" for lang in translations))
config_path = sync_dir / "po4a.cfg"
config_path.write_text(config)