Skip to content

Commit

Permalink
use proper lang arg (hedyorg#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
Felienne authored Nov 25, 2021
1 parent 622d643 commit 51f9bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,10 +842,10 @@ def view_program(id):
# Everything below this line has nothing to do with this page and it's silly
# that every page needs to put in so much effort to re-set it
arguments_dict['menu'] = True
arguments_dict['auth'] = TRANSLATIONS.get_translations(lang, 'Auth')
arguments_dict['auth'] = TRANSLATIONS.get_translations(g.lang, 'Auth')
arguments_dict['username'] = user.get('username', None)
arguments_dict['is_teacher'] = is_teacher(user)
arguments_dict.update(**TRANSLATIONS.get_translations(lang, 'ui'))
arguments_dict.update(**TRANSLATIONS.get_translations(g.lang, 'ui'))

return render_template("view-program-page.html", **arguments_dict)

Expand Down

0 comments on commit 51f9bf5

Please sign in to comment.