From 86ea2bd1cef88051b2e3def285bef31acc32f6e4 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Tue, 7 Oct 2025 16:28:22 +0200 Subject: [PATCH] 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. --- scripts/modules/bl_i18n_utils/bl_extract_messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modules/bl_i18n_utils/bl_extract_messages.py b/scripts/modules/bl_i18n_utils/bl_extract_messages.py index 863b5ce2958..9a07914c7c6 100644 --- a/scripts/modules/bl_i18n_utils/bl_extract_messages.py +++ b/scripts/modules/bl_i18n_utils/bl_extract_messages.py @@ -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,