Skip to content

Commit 1299e51

Browse files
committed
FIX: do not create .po~ backup files
1 parent 57ec434 commit 1299e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge_pot_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def process_locale_directory(locale_dir: str, pot_file: str) -> None:
2323
try:
2424
# Run msgfmt command
2525
exe = "C:\\Program Files\\gettext-iconv\\bin\\msgmerge.exe" if platform_system() == "Windows" else "msgmerge"
26-
cmd = [exe, "--update", "--no-fuzzy-matching", po_file, pot_file]
26+
cmd = [exe, "--update", "--no-fuzzy-matching", "--backup=none", po_file, pot_file]
2727
# pylint: disable=duplicate-code
2828
subprocess.run(cmd, check=True, capture_output=True, text=True) # noqa: S603
2929
msg = f"Successfully processed {locale_dir}"

0 commit comments

Comments
 (0)