You've already forked godot
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:
@@ -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() + ":");
|
||||
|
||||
Reference in New Issue
Block a user