Include translation mapping in nojs windows
The translation map was missing for links opened via the nojs feature, causing a server error. Fixes #507main
parent
5189cdb072
commit
cad1e2ab4d
|
@ -385,7 +385,13 @@ def window():
|
|||
for script in results('script'):
|
||||
script.decompose()
|
||||
|
||||
return render_template('display.html', response=results)
|
||||
return render_template(
|
||||
'display.html',
|
||||
response=results,
|
||||
translation=app.config['TRANSLATIONS'][
|
||||
g.user_config.get_localization_lang()
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
def run_app() -> None:
|
||||
|
|
Loading…
Reference in New Issue