bugGNU gettext - Bugs: bug #58778, msgmerge messing up ordering in po...

 
 

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

bug #58778: msgmerge messing up ordering in po when sort-by-file

Submitter:  wangqr
Submitted:  Fri 17 Jul 2020 02:46:52 PM UTC
   
 
Category:  Translator tools Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Mon 27 Jul 2020 05:45:23 PM UTC, comment #2: 

The fix is contained in gettext 0.21.

Bruno Haible <haible>
Group administrator
Sat 18 Jul 2020 08:11:01 AM UTC, comment #1: 
Bruno Haible <haible>
Group administrator
Fri 17 Jul 2020 02:46:52 PM UTC, original submission:  

I'm using msgmerge (GNU gettext-tools) 0.20.2 on archlinux. Every time I call msgmerge with --sort-by-file, the commented part will be reversed, causing unnecessary changes in po file.

Here's a minimal example: Download the attached test.po and test.pot. Run

msgmerge --update --backup=none --sort-by-file test.po test.pot

Observe the commented translations change between "b" "c" "d" "e" and "e" "d" "c" "b" after each time the command is invoked.

I expect msgmerge not causing these unnecessary changes each time it is called.

Side note: If there is no source file info, msgmerge will put entries in reverse order as in pot. I think using same order as in pot make more sense to me. Or at least always sort them by msgid if file location is the same.

wangqr

 

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

Attached Files
file #49496:  test.po added by wangqr (133B - application/octet-stream)
file #49497:  test.pot added by wangqr (20B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by wangqr (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2020-07-18 haible StatusNone Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed
    2020-07-17 wangqr Attached File- Added test.po, #49496
        Attached File- Added test.pot, #49497

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code