diff --git a/scripts/startup/bl_operators/object.py b/scripts/startup/bl_operators/object.py index cee7901fb2e..991f42fa221 100644 --- a/scripts/startup/bl_operators/object.py +++ b/scripts/startup/bl_operators/object.py @@ -10,7 +10,10 @@ from bpy.props import ( IntProperty, StringProperty, ) -from bpy.app.translations import pgettext_rpt as rpt_ +from bpy.app.translations import ( + pgettext_rpt as rpt_, + contexts as i18n_contexts, +) class SelectPattern(Operator): @@ -22,6 +25,7 @@ class SelectPattern(Operator): pattern: StringProperty( name="Pattern", + translation_context=i18n_contexts.id_text, description="Name filter using '*', '?' and " "'[abc]' unix style wildcards", maxlen=64, diff --git a/scripts/startup/bl_ui/node_add_menu_texture.py b/scripts/startup/bl_ui/node_add_menu_texture.py index 11edb1b262c..2417cd2f5fb 100644 --- a/scripts/startup/bl_ui/node_add_menu_texture.py +++ b/scripts/startup/bl_ui/node_add_menu_texture.py @@ -74,6 +74,7 @@ class NODE_MT_category_texture_distort(Menu): class NODE_MT_category_texture_pattern(Menu): bl_idname = "NODE_MT_category_texture_pattern" bl_label = "Pattern" + bl_translation_context = i18n_contexts.id_texture def draw(self, _context): layout = self.layout diff --git a/source/blender/makesrna/intern/rna_texture.cc b/source/blender/makesrna/intern/rna_texture.cc index 85d15974735..ccd8e92aa4e 100644 --- a/source/blender/makesrna/intern/rna_texture.cc +++ b/source/blender/makesrna/intern/rna_texture.cc @@ -926,6 +926,7 @@ static void rna_def_texture_wood(BlenderRNA *brna) RNA_def_property_enum_sdna(prop, nullptr, "stype"); RNA_def_property_enum_items(prop, prop_wood_stype); RNA_def_property_ui_text(prop, "Pattern", ""); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_TEXTURE); RNA_def_property_update(prop, 0, "rna_Texture_nodes_update"); prop = RNA_def_property(srna, "noise_basis_2", PROP_ENUM, PROP_NONE); @@ -995,6 +996,7 @@ static void rna_def_texture_marble(BlenderRNA *brna) RNA_def_property_enum_sdna(prop, nullptr, "stype"); RNA_def_property_enum_items(prop, prop_marble_stype); RNA_def_property_ui_text(prop, "Pattern", ""); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_TEXTURE); RNA_def_property_update(prop, 0, "rna_Texture_nodes_update"); prop = RNA_def_property(srna, "noise_basis", PROP_ENUM, PROP_NONE); @@ -1129,6 +1131,7 @@ static void rna_def_texture_stucci(BlenderRNA *brna) RNA_def_property_enum_sdna(prop, nullptr, "stype"); RNA_def_property_enum_items(prop, prop_stucci_stype); RNA_def_property_ui_text(prop, "Pattern", ""); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_TEXTURE); RNA_def_property_update(prop, 0, "rna_Texture_update"); }