Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#15331 closed Uncategorized (duplicate)

xgettext skips some translation strings in javascript files when using the "condition ? true_result : false_result" pattern

Reported by: aarranz@… 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 anonymous, 14 years ago

Summary: xgettext skips some translation strings in javascript filesxgettext skips some translation strings in javascript files when using the "condition ? true_result : false_result" pattern

comment:2 by Ramiro Morales, 14 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #14045.

comment:3 by Ned Batchelder, 14 years ago

Severity: Normal
Type: Uncategorized

See the patches on #7704 for a fix.

Note: See TracTickets for help on using tickets.
Back to Top