[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [bug #56440] xgettext: search in comments
From: |
Bruno Haible |
Subject: |
[bug-gettext] [bug #56440] xgettext: search in comments |
Date: |
Mon, 10 Jun 2019 12:54:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0 |
Update of bug #56440 (project gettext):
Category: None => Programmer tools
Status: None => Not a Bug
Assigned to: None => haible
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
> we have a lot of strings defined in static contexts where gettext can't
run.
This case is discussed in
https://www.gnu.org/software/gettext/manual/html_node/Special-cases.html .
Define a gettext_noop function (in JavaScript, for example, in the global
context) that returns its argument unmodified.
With this approach:
- You will not have to write down each string twice in the source code.
- You will not have to lie to xgettext about the language to parse.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56440>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/