Fix lang html variable on config page
This commit is contained in:
parent
e77d63294e
commit
a620bf2174
2 changed files with 4 additions and 1 deletions
|
@ -126,6 +126,10 @@ class Translate(dict):
|
|||
else:
|
||||
pattern = '"(' + "|".join(patterns) + ')"'
|
||||
data = re.sub(pattern, replacer, data)
|
||||
|
||||
if mode == "html":
|
||||
data = data.replace("lang={lang}", "lang=%s" % self.lang) # lang get parameter to .js file to avoid cache
|
||||
|
||||
return data
|
||||
|
||||
translate = Translate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue