xgettext cannot deal with jsx self-closing tags

Bug #1856501 reported by Ilya Lukin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gettext (Ubuntu)
In Progress
Low
Unassigned

Bug Description

Bug in xgettext:
https://savannah.gnu.org/bugs/?56848

Fixed through https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=8f8b910322f5905045a8731df7aca5e601c9b082

Can you apply this patch? It really needed.

ProblemType: Bug
Architecture: x86_64
Date: Mon Dec 16 09:30:05 +07 2019
DistroRelease: Ubuntu 18.04
Package: gettext 0.19.8.1-6ubuntu0.3
PackageArchitecture: amd64
SourcePackage: gettext
Uname: Linux 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, Debian is working on a gettext version update which will include that fix

It doesn't seem important enough to justify a SRU backport to Bionic though, could you give a bit more details of why you think it's important and maybe a testcase which can be used to verify the issue and the fix?

Changed in gettext (Ubuntu):
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Ilya Lukin (ilukin) wrote :

It's important because a lot of web-developers are using React[1] (*.jsx), but can't using gettext for localization.

Testcase:
xgettext --from-code=utf-8 --language=JavaScript filename.jsx

Fix already done, see first message.

[1] A JavaScript library for building user interfaces - https://reactjs.org/

Ilya Lukin (ilukin)
information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the detail, could you add a jsx example to the bug that could be used as testcase?

Revision history for this message
Ilya Lukin (ilukin) wrote :

xgettext --from-code=utf-8 --language=JavaScript --keyword=translate Documentation.jsx

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.