Merge branch 'blender-v5.0-release'

This commit is contained in:
Bastien Montagne
2025-10-15 16:36:55 +02:00
12 changed files with 20 additions and 11 deletions

View File

@@ -347,7 +347,7 @@ class RIGIFY_OT_jump_to_action_slot(Operator):
self.report({'ERROR'}, "Failed to find Action Slot.")
return {'CANCELLED'}
self.report({'INFO'}, f'Set active action set-up index to {i}.')
self.report({'INFO'}, rpt_("Set active action set-up index to {}.").format(i))
return {'FINISHED'}

View File

@@ -10,6 +10,7 @@ else:
import bpy
from bpy.app.translations import (
pgettext_n as n_,
pgettext_iface as iface_,
contexts as i18n_contexts,
)
@@ -249,9 +250,9 @@ class VIEW3D_PT_vr_info(bpy.types.Panel):
def draw(self, context):
import platform
layout = self.layout
missing_support_string = "Built without VR/OpenXR features"
missing_support_string = n_("Built without VR/OpenXR features")
if platform.system() == "Darwin":
missing_support_string = "VR is not supported on macOS at the moment"
missing_support_string = n_("VR is not supported on macOS at the moment")
layout.label(icon='ERROR', text=missing_support_string)

View File

@@ -1209,6 +1209,7 @@ class Menu(_StructRNA, _GenericUI, metaclass=_RNAMeta):
display_name=None,
add_operator=None,
add_operator_props=None,
translate=True,
):
"""
Populate a menu from a list of paths.
@@ -1270,7 +1271,7 @@ class Menu(_StructRNA, _GenericUI, metaclass=_RNAMeta):
name = display_name(filepath) if display_name else bpy.path.display_name(f)
props = row.operator(
operator,
text=iface_(name),
text=(iface_(name) if translate else name),
translate=False,
)

View File

@@ -289,6 +289,7 @@ class TEXT_MT_templates_py(Menu):
"text.open",
props_default={"internal": True},
filter_ext=lambda ext: (ext.lower() == ".py"),
translate=False,
)