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
This commit is contained in:
Damien Picard
2025-06-28 17:06:15 +02:00
committed by Gitea
parent 8b39f577fe
commit 50d7c4917b
3 changed files with 3 additions and 2 deletions

View File

@@ -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()

View File

@@ -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);
}

View File

@@ -45,7 +45,7 @@ static void node_declare(NodeDeclarationBuilder &b)
auto &remainder = b.add_output<decl::String>("Remainder").make_available([](bNode &node) {
node_storage(node).overflow = GEO_NODE_STRING_TO_CURVES_MODE_TRUNCATE;
});
b.add_output<decl::Int>("Line").field_on_all();
b.add_output<decl::Int>("Line").field_on_all().translation_context(BLT_I18NCONTEXT_ID_TEXT);
b.add_output<decl::Vector>("Pivot Point").field_on_all();
const bNode *node = b.node_or_null();