bugGNU gettext - Bugs: bug #60947, Do not strip unknown PO flags

 
 

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

bug #60947: Do not strip unknown PO flags

Submitter:  Florent Angly <fangly>
Submitted:  Tue 20 Jul 2021 06:52:35 AM UTC
 
Category:  Translator tools Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Tue 20 Jul 2021 06:52:35 AM UTC, original submission:  

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.

Florent Angly <fangly>

 

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

No files currently attached

 

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 fangly (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-03-25 vslavik Carbon-Copy- Added vslavik
    2021-12-07 haible CategoryNone Translator tools

    Back to the top


    Powered by Savane 3.9