Fridrich Strba 2023-08-09 05:56:54 +00:00 committed by Git OBS Bridge
parent dbb6cb8b65
commit 67c7b4f8bd

View File

@ -38,10 +38,10 @@
if o.ext == "desktop":
value = encode_desktop_string(value)
- outfile.write(f"{OUTKEY}[{locale}]={value}\n")
+ outfile.write(u"""{}[{}]={}\n""".format(OUTKEY, locale, value))
+ outfile.write("{}[{}]={}\n".format(OUTKEY, locale, value))
else:
- outfile.write(f"\t[{locale}]{OUTKEY}={value}\n")
+ outfile.write(u"""\t[{}]{}={}\n""".format(locale, OUTKEY, value))
+ outfile.write("\t[{}]{}={}\n".format(locale, OUTKEY, value))
template_file.close()