GNU gettext - Bugs: bug #49678, xgettext fails to extract strings...
You are not allowed to post comments on this tracker with your current authentication level.
bug #49678: xgettext fails to extract strings from Perl code
Submitter: | Philipp Thomas <phitho> | ||
Submitted: | Wed 23 Nov 2016 10:14:51 AM UTC | ||
Category: | Perl | Severity: | 3 - Normal |
Item Group: | None | Status: | Confirmed |
Privacy: | Public | Assigned to: | gflohr |
Open/Closed: | Open |
Sat 26 Nov 2016 09:32:39 AM UTC, comment #2: |
Guido Flohr <gflohr> |
Sat 26 Nov 2016 05:15:59 AM UTC, comment #1: Guido, could you take a look at this?
|
Daiki Ueno <ueno> |
Wed 23 Nov 2016 10:14:51 AM UTC, original submission:
When running
|
Philipp Thomas <phitho> |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-11-27 | haible | Category | None | Perl | |
2016-11-26 | gflohr | Status | None | Confirmed | |
2016-11-26 | ueno | Assigned to | None | gflohr | |
2016-11-23 | phitho | Carbon-Copy | - | Added josef reidinger <jreidinger@suse.com> | |
2016-11-23 | phitho | Attached File | - | Added test.pm, #39056 |
Powered by Savane 3.13-4448.
Corresponding source code
Philipp, I'm working on exactly that problem. In the meantime, you can avoid the error with a simple workaround. Write
($dbDefaults{'serviceEnabled'}->value)?_("Yes"):_("No")
instead of
$dbDefaults{'serviceEnabled'}->value?_("Yes"):_("No")
In other words: Whenever you run into the problem, please reformulate your code so that there is a closing parentheses immediately preceding the ternary operator. Otherwise xgettext may misinterpret the question mark as a regex delimiter.