I18n: Sort sockets in translation extraction, for stable .po files

Socket names and descriptions were not sorted, which could result in
changes between invocations of the translation extraction script.
This commit is contained in:
Damien Picard
2025-10-07 16:28:22 +02:00
committed by Bastien Montagne
parent 78db22fd27
commit 86ea2bd1ce

View File

@@ -1107,7 +1107,7 @@ def dump_asset_messages(msgs, reports, settings):
)
if "sockets" in asset:
for socket_name, socket_description in asset["sockets"]:
for socket_name, socket_description in sorted(asset["sockets"]):
msgsrc = f"Socket name from node group {name}, file {asset_file}"
process_msg(
msgs, settings.DEFAULT_CONTEXT, socket_name, msgsrc,