[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [bug #56848] xgettext cannot deal with jsx self-closing ta
From: |
Matej Marusak |
Subject: |
[bug-gettext] [bug #56848] xgettext cannot deal with jsx self-closing tags |
Date: |
Mon, 2 Sep 2019 04:51:25 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL:
<https://savannah.gnu.org/bugs/?56848>
Summary: xgettext cannot deal with jsx self-closing tags
Project: GNU gettext
Submitted by: mmarusak
Submitted on: Mon 02 Sep 2019 08:51:22 AM UTC
Category: C
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When having self-closing jsx tags, xgettext cannot parse all string for
translation.
`/usr/bin/xgettext --output=- --language=JavaScript --keyword=
--keyword=ngettext:1,2,3t reproducer.jsx`
does not find any string for translation. When I remove the first `Foo` class
(or just the `div` in it) then it correctly finds the string for translation.
On Fedora 30:
$ rpm -qf /usr/bin/xgettext
gettext-0.19.8.1-22.fc30.x86_64
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 02 Sep 2019 08:51:22 AM UTC Name: reproducer.jsx Size: 257B By:
mmarusak
<http://savannah.gnu.org/bugs/download.php?file_id=47435>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56848>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug-gettext] [bug #56848] xgettext cannot deal with jsx self-closing tags,
Matej Marusak <=