Bug 435368 - Unstable order of messages in *_json_.pot files
Summary: Unstable order of messages in *_json_.pot files
Status: RESOLVED FIXED
Alias: None
Product: i18n
Classification: Translations
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-04 22:43 UTC by Alexander Potashev
Modified: 2021-04-05 20:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2021-04-04 22:43:48 UTC
SUMMARY
The order of messages in POT templates generated from JSON files is unstable. Maybe sorting by JSON file path would help.

(Hint: "find" returns a list of randomly ordered paths, see https://invent.kde.org/sysadmin/l10n-scripty/-/blob/master/handle_json_files.sh#L33)


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alexander Potashev 2021-04-04 22:44:26 UTC
Example of scripty making unwanted changes to .pot files in SVN: https://websvn.kde.org/?view=revision&revision=1597251
Comment 2 Alexander Potashev 2021-04-04 22:45:10 UTC
s/unwanted/unnecessary/
Comment 3 Bug Janitor Service 2021-04-05 09:37:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/sysadmin/l10n-scripty/-/merge_requests/9
Comment 4 Albert Astals Cid 2021-04-05 19:23:45 UTC
Git commit d8d22f37b2c122a44049da4ee21b97e05ff91d62 by Albert Astals Cid.
Committed on 05/04/2021 at 09:36.
Pushed by ltoscano into branch 'master'.

Make json file list stable by sorting it

M  +1    -1    handle_json_files.sh

https://invent.kde.org/sysadmin/l10n-scripty/commit/d8d22f37b2c122a44049da4ee21b97e05ff91d62
Comment 5 Albert Astals Cid 2021-04-05 20:46:44 UTC
Git commit a7c832beeb31756095230275348748c22689850e by Albert Astals Cid.
Committed on 05/04/2021 at 20:46.
Pushed by aacid into branch 'stable_l10n-kf5'.

Make json file list stable by sorting it
(cherry picked from commit d8d22f37b2c122a44049da4ee21b97e05ff91d62)

M  +1    -1    handle_json_files.sh

https://invent.kde.org/sysadmin/l10n-scripty/commit/a7c832beeb31756095230275348748c22689850e
Comment 6 Albert Astals Cid 2021-04-05 20:47:10 UTC
Git commit 8fbe373341df335fdd6d0b7044348886063ac5ad by Albert Astals Cid.
Committed on 05/04/2021 at 20:46.
Pushed by aacid into branch 'stable_l10n-kf5-plasma-lts'.

Make json file list stable by sorting it
(cherry picked from commit d8d22f37b2c122a44049da4ee21b97e05ff91d62)

M  +1    -1    handle_json_files.sh

https://invent.kde.org/sysadmin/l10n-scripty/commit/8fbe373341df335fdd6d0b7044348886063ac5ad