Bug 4472 - Fix a canonical sort order for the PO files
Summary: Fix a canonical sort order for the PO files
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.4.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.2.0
Assignee: Peter Åstrand
Keywords: prosaic
Depends on:
Reported: 2012-11-12 10:59 CET by Peter Åstrand
Modified: 2022-03-22 11:14 CET (History)
0 users

See Also:
Acceptance Criteria:


Description Peter Åstrand cendio 2012-11-12 10:59:53 CET
As it is now, the sorting of the strings in our PO files seems to be a bit random. When you generate new translation tarballs (ie merging with templates etc), many strings are moved around, causing a diff of about 10000 lines. This is bad. It would be much better if a canonical sorting (and even line breaking etc) is defined.
Comment 1 Pierre Ossman cendio 2013-08-28 15:53:22 CEST
msgmerge has a --sort-output, which hopefully does what we want. msgcat also has the same flag, for handling files we get back.
Comment 2 Peter Åstrand cendio 2013-12-18 15:10:03 CET
The main problem seems to be that starting with make 3.82, the output from wildcards are no longer sorted: http://lists.gnu.org/archive/html/info-gnu/2010-07/msg00023.html . This means that the order of the file given to xgettext etc may change. One solution could be to use $(sort ...), but it depends on the locale. 

We've decided to use --sort-output instead. Fixed in 28237.

Note You need to log in before you can comment on or make changes to this bug.