bugGNU gettext - Bugs: bug #56848, xgettext cannot deal with jsx...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56848: xgettext cannot deal with jsx self-closing tags

Submitter:  Matej Marusak <mmarusak>
Submitted:  Mon 02 Sep 2019 08:51:22 AM UTC
   
 
Category:  JavaScript Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Tue 14 Apr 2020 12:25:31 PM UTC, comment #2: 

The fix is contained in gettext 0.20.2.

Bruno Haible <haible>
Group administrator
Sun 29 Sep 2019 12:36:26 PM UTC, comment #1: 
Bruno Haible <haible>
Group administrator
Mon 02 Sep 2019 08:51:22 AM UTC, original submission:  

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

Matej Marusak <mmarusak>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #47436:  reproducer.jsx added by mmarusak (384B - application/octet-stream - Sorry, this is the correct reproducer)
file #47435:  reproducer.jsx added by mmarusak (257B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vslavik
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by mmarusak (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2019-09-29 haible StatusNone Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed
    2019-09-17 vslavik Carbon-Copy- Added -email is unavailable-
    2019-09-02 haible CategoryC JavaScript
    2019-09-02 mmarusak Attached File- Added reproducer.jsx, #47436
    2019-09-02 mmarusak Attached File- Added reproducer.jsx, #47435

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code