Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Use English als default fallback on translated forms
Browse files Browse the repository at this point in the history
  • Loading branch information
msom committed Apr 5, 2017
1 parent c23fc34 commit 62e135b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changelog
---------

- Use English als default fallback on translated forms.
[msom]

0.38.5 (2017-04-05)
~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion onegov/core/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def get_form(self, form_class, i18n_support=True, csrf_support=True,
form_class = self.app.modules.i18n.get_translation_bound_form(
form_class, translate)

meta['locales'] = {self.locale} if self.locale else {}
meta['locales'] = {self.locale, 'en'} if self.locale else {}

if csrf_support:
meta['csrf'] = True
Expand Down

0 comments on commit 62e135b

Please sign in to comment.