[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60947] Do not strip unknown PO flags
From: |
Florent Angly |
Subject: |
[bug #60947] Do not strip unknown PO flags |
Date: |
Tue, 20 Jul 2021 02:52:37 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?60947>
Summary: Do not strip unknown PO flags
Project: GNU gettext
Submitted by: fangly
Submitted on: Tue 20 Jul 2021 06:52:35 AM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I am working with an unpublished programming language, which is not in the
list of programming languages supported by gettext
(https://www.gnu.org/software/gettext/manual/html_node/Translators-for-other-Languages.html#Translators-for-other-Languages).
My translation workflow tools add the zoe-format flag to PO messages
containing a Zoe format string, e.g.:
$ cat catalog.po
#, zoe-format, fuzzy
msgid "Hello #{name}"
msgstr "Bonjour #{name}"
But the gettext utilities unfortunately remove all unknown flags:
$ msgcat.exe catalog.po
#, fuzzy
msgid "Hello #{name}"
msgstr "Bonjour #{name}"
I see value in non-standard flags because they can be used in non-standard
workflows to support custom features and unpublished programming languages. To
support this flexibility, I suggest that gettext should leave alone all flags
that it doesn't recognize. This issue was first raised on the Poedit bug
tracker (https://github.com/vslavik/poedit/issues/708), where the author also
liked the idea.
Complementary to not removing unknown PO flags, the documentation could be
amended to describe how to implement support for published or unpublished
programming languages. This would help developers implement new languages.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60947>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #60947] Do not strip unknown PO flags,
Florent Angly <=