[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64136] Translator comments extracted even with newlines separating
From: |
Tomas Roun |
Subject: |
[bug #64136] Translator comments extracted even with newlines separating them from a gettext call |
Date: |
Mon, 1 May 2023 14:43:30 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64136>
Summary: Translator comments extracted even with newlines
separating them from a gettext call
Group: GNU gettext
Submitter: tomasr8
Submitted: Mon 01 May 2023 06:43:29 PM UTC
Category: Python
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 01 May 2023 06:43:29 PM UTC By: Tomas Roun <tomasr8>
Consider this example
# Comment
_("hello")
Running xgettext:
xgettext -c test.py
I get this result:
#. Comment
#: test2.py:5
msgid "hello"
msgstr ""
I don't think the comment should be considered a translator comment if there
are new lines inbetween the comment and the gettext call itself. For
reference, pybabel does not (IMO correctly) consider this as a translator
comment.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64136>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #64136] Translator comments extracted even with newlines separating them from a gettext call,
Tomas Roun <=