Ui,Translate: remove bytearray format string
Py 3.4 does not support bytearray format strings for % operator: b"%s" % s
This commit is contained in:
parent
ec6fd48b86
commit
7e57a8f71e
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class UiRequestPlugin(object):
|
|||
if not lang_file_exist or inner_path not in content_json.get("translate", []):
|
||||
for part in file_generator:
|
||||
if inner_path.endswith(".html"):
|
||||
yield part.replace(b"lang={lang}", b"lang=%s" % translate.lang.encode("utf8")) # lang get parameter to .js file to avoid cache
|
||||
yield part.replace(b"lang={lang}", b"lang=" + translate.lang.encode("utf8")) # lang get parameter to .js file to avoid cache
|
||||
else:
|
||||
yield part
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue