[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #59378] xgettext doesn't extract comments for strings on new line
From: |
Adam YS |
Subject: |
[bug #59378] xgettext doesn't extract comments for strings on new line |
Date: |
Thu, 29 Oct 2020 05:06:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:81.0) Gecko/20100101 Firefox/81.0 |
URL:
<https://savannah.gnu.org/bugs/?59378>
Summary: xgettext doesn't extract comments for strings on new
line
Project: GNU gettext
Submitted by: adamys
Submitted on: Thu 29 Oct 2020 09:06:45 AM UTC
Category: C#
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
We noticed that some comments left in the code for translators are missing.
The issue seems to be specific to strings declared on a new line:
// TRANSLATOR NOTE: Foobar
L.String(
"foobar");
For the reference, the following works correctly:
// TRANSLATOR NOTE: Foobar
L.String("foobar");
Here's a minimal repro for it:
1. Download attached repro.sh and repro.cs into the same folder
2. Run repro.sh
3. Observe the generated repro.pot
Expected outcome:
#. TRANSLATOR NOTE: Foobar
#: repro.cs:3
#, csharp-format
msgid "{0} of {1}"
msgstr ""
Actual outcome:
#: repro.cs:3
#, csharp-format
msgid "{0} of {1}"
msgstr ""
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 29 Oct 2020 09:06:45 AM UTC Name: repro.cs Size: 49B By: adamys
<http://savannah.gnu.org/bugs/download.php?file_id=50158>
-------------------------------------------------------
Date: Thu 29 Oct 2020 09:06:45 AM UTC Name: repro.sh Size: 373B By: adamys
<http://savannah.gnu.org/bugs/download.php?file_id=50159>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59378>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #59378] xgettext doesn't extract comments for strings on new line,
Adam YS <=