Skip to content

Fix an invalid localization string in a maketext call.#2977

Merged
Alex-Jordan merged 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:bugfix/localization-bracket
May 17, 2026
Merged

Fix an invalid localization string in a maketext call.#2977
Alex-Jordan merged 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:bugfix/localization-bracket

Conversation

@drgrice1
Copy link
Copy Markdown
Member

Brackets in a string that are intended to be literal brackets need to be escaped.

To test this earn the "Mysterious Package (with Ribbons)" achievement reward, make sure the templates/achievements/surprise_message.txt file does NOT exist, and then open a problem set page. With the WeBWorK-2.21 release candidate branch an exception is thrown.

This particular bug apparently has been there since 2015.

Brackets in a string that are intended to be literal brackets need to be
escaped.

To test this earn the "Mysterious Package (with Ribbons)" achievement
reward, make sure the `templates/achievements/surprise_message.txt` file
does NOT exist, and then open a problem set page.  With the WeBWorK-2.21
release candidate branch an exception is thrown.

This particular bug apparently has been there since 2015.
@Alex-Jordan Alex-Jordan merged commit e833a82 into openwebwork:WeBWorK-2.21 May 17, 2026
2 checks passed
@drgrice1 drgrice1 deleted the bugfix/localization-bracket branch May 17, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants