[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [bug #50920] support Javascript template strings in xgette

From: Bruno Haible
Subject: [bug-gettext] [bug #50920] support Javascript template strings in xgettext
Date: Sun, 7 Apr 2019 20:29:02 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #13, bug #50920 (project gettext):


Thanks for your patches. I did not use them because they don't provide the
result that I'd like to have:

1) For
var s7 = _(tag`A template literal with a tag`);
it extracts an msgid "A template literal with a tag". I prefer not to extract
that, because we don't know anything about what the tag function does.

2) For
var s10 = `abc${foo({},_('should be extracted'))}xyz`;
it does not extract an msgid "should be extracted". But the expression between
${ and the matching(!) closing brace is a normal expression; _() calls in it
should be handled.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]