Commit: b31250feba4c89856fd08e62850ddf80b5262ad0
Author: Jesse Yurkovich
Date:   Mon Nov 29 02:04:32 2021 -0800
Branches: blender-v3.0-release
https://developer.blender.org/rBb31250feba4c89856fd08e62850ddf80b5262ad0

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

===================================================================

M       release/scripts/startup/bl_operators/wm.py

===================================================================

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()

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to