[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [bug #49678] xgettext fails to extract strings from Perl c
From: |
Guido Flohr |
Subject: |
[bug-gettext] [bug #49678] xgettext fails to extract strings from Perl code |
Date: |
Sat, 26 Nov 2016 09:32:39 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #2, bug #49678 (project gettext):
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49678>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/