bugGNU gettext - Bugs: bug #61160, po_message_set_format cannot be...

 
 

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

bug #61160: po_message_set_format cannot be used to revert to "undecided"

Submitter:  Alexander Potashev <aspotashev>
Submitted:  Wed 15 Sep 2021 06:17:09 AM UTC
   
 
Category:  Programmer interface Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Wed 15 Sep 2021 06:17:09 AM UTC, original submission:  

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.)

Alexander Potashev <aspotashev>

 

(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 haible (Updated the item)
  • -email is unavailable- added by aspotashev (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-12-07 haible CategoryNone Programmer interface

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code