[translate] Pontoon should recognize new style Python format strings

RESOLVED FIXED

Status

Webtools
Pontoon
P3
normal
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: mythmon, Assigned: jotes, Mentored)

Tracking

(Blocks: 1 bug)

Trunk

Firefox Tracking Flags

(firefox45 affected)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
Created attachment 8686688 [details]
shot_16182.png

Pontoon seems to have special support for old style Python formatting strings, like "%(author)s has posted a new thread" but not new style Python formatting strings, like "Reply to thread: {title}". It would be great if Pontoon recognized both styles.

I've attached a screenshot of what I'm seeing the Pontoon UI.
Indeed, thanks for reporting!
Blocks: 1221552
Priority: -- → P3
Summary: Pontoon should recognize new style Python format strings → [translate] Pontoon should recognize new style Python format strings
Mentor: m@owca.info
(Assignee)

Updated

2 years ago
Assignee: nobody → jot

Comment 2

2 years ago
Commits pushed to master at https://github.com/mozilla/pontoon

https://github.com/mozilla/pontoon/commit/43b223744085b02c0b63ae98cdec93b67955a8cb
Fix bug 1224273. Added support for python format strings in the mark_placeable

https://github.com/mozilla/pontoon/commit/89e035810b7ccc6e0773afb335dc58cd4b10b83d
Merge pull request #348 from jotes/bug_1224273_new_format_strings

Fix bug 1224273. Added support for python format strings in the mark_…

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.