[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61160] po_message_set_format cannot be used to revert to "undecide

From: Alexander Potashev
Subject: [bug #61160] po_message_set_format cannot be used to revert to "undecided"
Date: Wed, 15 Sep 2021 02:17:10 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36


                 Summary: po_message_set_format cannot be used to revert to
                 Project: GNU gettext
            Submitted by: aspotashev
            Submitted on: Wed 15 Sep 2021 06:17:09 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



libgettextpo API doesn't have enough flexibility to edit .po/.pot files: once
a format is set or unset (e.g. "#, kde-format" or "#, no-kde-format"), there's
no way to clear it without recreating a po_message_t.

A workaround could be to recreate a message with po_message_create(). However
it implies that one needs to recreate the whole PO file, since there's no way
to remove messages (no function po_message_remove/po_message_erase that would
do the opposite of po_message_insert.)


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]