FullscreenUI: Allow changing UI language

This commit is contained in:
Stenzek
2023-11-29 20:26:36 +10:00
parent e806d939ae
commit 325dcc81ca
12 changed files with 111 additions and 47 deletions

View File

@ -81,7 +81,7 @@ def get_pairs(tokens):
with open(dst_file, "r") as f:
original = f.read()
updated = re.sub(out_pattern, "\\1 " + get_pairs(tokens) + " \\2", original)
updated = re.sub(out_pf_pattern, "\\1 " + get_pairs(pf_tokens) + " \\2", original)
updated = re.sub(out_pf_pattern, "\\1 " + get_pairs(pf_tokens) + " \\2", updated)
if original != updated:
with open(dst_file, "w") as f:
f.write(updated)