1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Translate "Line N" as a whole

This commit is contained in:
Haoyu Qiu
2024-03-23 18:39:01 +08:00
parent fe01776f05
commit 9dadeac658
2 changed files with 4 additions and 6 deletions

View File

@@ -598,8 +598,7 @@ void ShaderTextEditor::_update_warning_panel() {
warnings_panel->push_color(warnings_panel->get_theme_color(SNAME("warning_color"), EditorStringName(Editor)));
if (line != -1) {
warnings_panel->push_meta(line - 1);
warnings_panel->add_text(TTR("Line") + " " + itos(line));
warnings_panel->add_text(" (" + w.get_name() + "):");
warnings_panel->add_text(vformat(TTR("Line %d (%s):"), line, w.get_name()));
warnings_panel->pop(); // Meta goto.
} else {
warnings_panel->add_text(w.get_name() + ":");