From b31250feba4c89856fd08e62850ddf80b5262ad0 Mon Sep 17 00:00:00 2001 From: Jesse Yurkovich Date: Mon, 29 Nov 2021 02:04:32 -0800 Subject: Fix T93456: Properly translate operator on splash screen Use the translation API to lookup the string before formatting occurs. Differential Revision: https://developer.blender.org/D13400 --- release/scripts/startup/bl_operators/wm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release/scripts/startup') diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 28bb0a58c02..65692062f48 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -2970,7 +2970,7 @@ class WM_MT_splash_quick_setup(Menu): sub = row.row() old_version = bpy.types.PREFERENCES_OT_copy_prev.previous_version() if bpy.types.PREFERENCES_OT_copy_prev.poll(context) and old_version: - sub.operator("preferences.copy_prev", text="Load %d.%d Settings" % old_version) + sub.operator("preferences.copy_prev", text=iface_("Load %d.%d Settings", "Operator") % old_version) sub.operator("wm.save_userpref", text="Save New Settings") else: sub.label() -- cgit v1.2.3