From 50d7c4917b035653cbed010ae68bc6da55fb6489 Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Sat, 28 Jun 2025 17:06:15 +0200 Subject: [PATCH] I18n: Disambiguate "Line" "Line" can mean several things, but in this cases it means a line of text. Reported by Ye Gui in #43295. Pull Request: https://projects.blender.org/blender/blender/pulls/141147 --- scripts/startup/bl_ui/space_text.py | 2 +- source/blender/editors/space_text/text_ops.cc | 1 + .../blender/nodes/geometry/nodes/node_geo_string_to_curves.cc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/startup/bl_ui/space_text.py b/scripts/startup/bl_ui/space_text.py index 192b7708bd0..eb7a65f8806 100644 --- a/scripts/startup/bl_ui/space_text.py +++ b/scripts/startup/bl_ui/space_text.py @@ -329,7 +329,7 @@ class TEXT_MT_select(Menu): layout = self.layout layout.operator("text.select_all", text="All") - layout.operator("text.select_line", text="Line") + layout.operator("text.select_line", text="Line", text_ctxt=i18n_contexts.id_text) layout.operator("text.select_word", text="Word") layout.separator() diff --git a/source/blender/editors/space_text/text_ops.cc b/source/blender/editors/space_text/text_ops.cc index 8a9d33c8225..726df18b1f7 100644 --- a/source/blender/editors/space_text/text_ops.cc +++ b/source/blender/editors/space_text/text_ops.cc @@ -4115,6 +4115,7 @@ void TEXT_OT_jump_to_file_at_point(wmOperatorType *ot) RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); prop = RNA_def_int(ot->srna, "line", 0, 0, INT_MAX, "Line", "Line to jump to", 1, 10000); RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_TEXT); prop = RNA_def_int(ot->srna, "column", 0, 0, INT_MAX, "Column", "Column to jump to", 1, 10000); RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); } diff --git a/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc b/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc index 56583cc7d84..9722f040669 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc @@ -45,7 +45,7 @@ static void node_declare(NodeDeclarationBuilder &b) auto &remainder = b.add_output("Remainder").make_available([](bNode &node) { node_storage(node).overflow = GEO_NODE_STRING_TO_CURVES_MODE_TRUNCATE; }); - b.add_output("Line").field_on_all(); + b.add_output("Line").field_on_all().translation_context(BLT_I18NCONTEXT_ID_TEXT); b.add_output("Pivot Point").field_on_all(); const bNode *node = b.node_or_null();