mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-30 11:42:54 +03:00
maint: allow pushing hints pot to transifex without pulling translations first
This commit is contained in:
parent
6da4346c4e
commit
e6ee031fc0
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user