bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] [bug #50920] Javascript interpolated strings in xgettext


From: Philip Chimento
Subject: [bug-gettext] [bug #50920] Javascript interpolated strings in xgettext
Date: Wed, 3 May 2017 15:08:57 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36

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

You might be misunderstanding my motivation for filing this bug report.
Believe me I know the problems of format strings getting mangled by
translators no matter the programming language, so that's not what the bug
report was about

However, Javascript's interpolated strings are not supported in xgettext at
all, even if you use only simple variable names or no interpolation at all:

echo '_(`hello`)' | xgettext - --language=javascript -o -

I think xgettext should recognize _(`hello`) as a string marked for
translation, even if it is bad practice to use complicated interpolation
expressions in it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50920>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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