diff options
author | Damien Picard <pioverfour> | 2022-08-09 13:42:16 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-08-09 13:42:33 +0300 |
commit | e1974ae30e468c678c496907f0234b835bdb6123 (patch) | |
tree | cc36dd5843cf5dcfe168d9c9bfd28560d49ce816 /release/scripts/startup | |
parent | 630b961f234e4b1b9839a7d427d68d3f028e528f (diff) |
I18n: make more parts of the UI translatable
- "Name collisions" label in mesh properties
- "Threshold" labels in Vertex Weight Edit modifier
- "Particle System" label in Particle Instance modifier
- Slot number in the Shader Editor
- Status bar keymap items during modal operations:
add TIP_() macro to status bar interface template
- On dumping messages, sort preset files so their messages are stable
between runs
Ref. T43295
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D15607
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_mesh.py | 4 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index 80b9b773d9b..8f2141ba6fc 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -3,6 +3,8 @@ import bpy from bpy.types import Menu, Panel, UIList from rna_prop_ui import PropertyPanel +from bpy.app.translations import pgettext_tip as tip_ + class MESH_MT_vertex_group_context_menu(Menu): bl_label = "Vertex Group Specials" @@ -592,7 +594,7 @@ class DATA_PT_mesh_attributes(MeshButtonsPanel, Panel): if not colliding_names: return - layout.label(text="Name collisions: " + ", ".join(set(colliding_names)), icon='ERROR') + layout.label(text=tip_("Name collisions: ") + ", ".join(set(colliding_names)), icon='ERROR') class ColorAttributesListBase(): diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 427d0696c20..dab06cc4993 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -375,8 +375,8 @@ class NODE_PT_material_slots(Panel): def draw_header(self, context): ob = context.object self.bl_label = ( - "Slot " + str(ob.active_material_index + 1) if ob.material_slots else - "Slot" + iface_("Slot %d") % (ob.active_material_index + 1) if ob.material_slots else + iface_("Slot") ) # Duplicate part of 'EEVEE_MATERIAL_PT_context_material'. |