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:
committed by
Bastien Montagne
parent
78db22fd27
commit
86ea2bd1ce
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user