Skip to content

Broken "Subject must be at most…" message in .pot file #1040

Description

@andreyv

cms/locale/cms.pot contains

#, python-format
msgid ""
"Subject must be at most %(max_subject_length)d characters, content at most "
"%(max_text_length)d.max_subject_length"
msgstr ""

Notice garbage at the end of the string. It was added in 3401a2a.

The original message comes from cms/server/contest/communication.py in accept_question():

        raise UnacceptableQuestion(
            N_("Question too long!"),
            N_("Subject must be at most %(max_subject_length)d characters, "
               "content at most %(max_text_length)d."
               % {"max_subject_length": Question.MAX_SUBJECT_LENGTH,
                  "max_text_length": Question.MAX_TEXT_LENGTH}))

Looks like it was added in a5032c8.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions