fix trans

This commit is contained in:
rustdesk
2022-12-27 23:26:11 +08:00
parent ff5228f7d4
commit 75f57cf0fc
32 changed files with 94 additions and 45 deletions

View File

@@ -45,7 +45,8 @@ def expand():
if line_strip.startswith('("'):
k, v = line_split(line_strip)
if k in dict:
line = line.replace(v, dict[k])
# embrased with " to avoid empty v
line = line.replace('"%s"'%v, '"%s"'%dict[k])
else:
line = line.replace(v, "")
fw.write(line)