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
This commit is contained in:
parent
d2e6087335
commit
b31250feba
Notes:
blender-bot
2023-05-03 10:14:48 +02:00
Referenced by issue #93456, Quick Setup window displays English text for "Load %d.%d Settings" button even if a translation is available
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue