You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few places where we do gettext('something about {}'.format('blah')) instead of gettext('something about {}').format('blah') and the misplaced .format call has gettext looking for the formatted string in the message catalogs. When it can't be found, English appears in the user interface.
Steps to Reproduce
make dev
visit the JI admin interface, choose a language other than English, and add a user or edit dellsberg.
try to change the first name to something longer than 100 characters.
Expected Behavior
The flashed error message should be in the selected language.
Description
There are a few places where we do
gettext('something about {}'.format('blah'))
instead ofgettext('something about {}').format('blah')
and the misplaced.format
call hasgettext
looking for the formatted string in the message catalogs. When it can't be found, English appears in the user interface.Steps to Reproduce
make dev
dellsberg
.Expected Behavior
The flashed error message should be in the selected language.
Actual Behavior
It's in English.
Comments
There are at least these occurrences:
securedrop/securedrop/journalist_app/admin.py
Line 139 in 7f4076b
securedrop/securedrop/journalist_app/admin.py
Line 239 in 7f4076b
securedrop/securedrop/journalist_app/admin.py
Line 247 in 7f4076b
securedrop/securedrop/journalist_app/utils.py
Line 368 in 7f4076b
The text was updated successfully, but these errors were encountered: