Skip to content

gettext calls containing formatted strings produce untranslated text #5755

@rmol

Description

@rmol

Description

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.

Actual Behavior

It's in English.

name-too-long-english

Comments

There are at least these occurrences:

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18nAnything related to translation or internationalization of SecureDrop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions