#15331 closed Uncategorized (duplicate)
xgettext skips some translation strings in javascript files when using the "condition ? true_result : false_result" pattern
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Internationalization | Version: | 1.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Javascript example code:
gettext("foo"); true ? true : false; gettext("bar"); true ? true : false; gettext("baz"); true ? true : false; // ? gettext("quz"); "?"; gettext("foobar");
"bar" is ignored when running "manage.py makemessages". Apparently this is related to the presence of "?" commonly used in the "condition ? true_result : false_result" pattern.
This bug is similar to #4695
Change History (3)
comment:1 by , 14 years ago
Summary: | xgettext skips some translation strings in javascript files → xgettext skips some translation strings in javascript files when using the "condition ? true_result : false_result" pattern |
---|
comment:2 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:3 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Uncategorized |
See the patches on #7704 for a fix.
Note:
See TracTickets
for help on using tickets.
Duplicate of #14045.