misc: restore possibility to set language from HTTP header (#29108)

This commit is contained in:
Frédéric Péters 2018-12-17 10:31:16 +01:00
parent f1595b87dc
commit 903e8c2d90
1 changed files with 5 additions and 3 deletions

View File

@ -75,9 +75,11 @@ class SettingsDirectory(AccessControlled, Directory):
form.add(SingleSelectWidget, 'language', title = _('Language'),
value = language_cfg.get('language'),
options = [ (None, _('System Default')),
(str('en'), _('English')),
(str('fr'), _('French')) ] )
options = [(None, _('System Default')),
('HTTP', _('From HTTP Accept-Language header')),
('en', _('English')),
('fr', _('French'))
])
form.add_submit('submit', _('Submit'))
form.add_submit('cancel', _('Cancel'))