Makes more strings in editor translatable

* File type names in file dialogs
* Layout option names
* Visual shader editor UI
This commit is contained in:
Haoyu Qiu 2019-12-16 13:18:44 +08:00
parent d8d96c9fa7
commit 7a9c337dfe
7 changed files with 45 additions and 45 deletions

View file

@ -4756,7 +4756,7 @@ VisualScriptEditor::VisualScriptEditor() {
HBoxContainer *graph_hbc = graph->get_zoom_hbox();
Label *base_lbl = memnew(Label);
base_lbl->set_text("Change Base Type: ");
base_lbl->set_text(TTR("Change Base Type:") + " ");
graph_hbc->add_child(base_lbl);
base_type_select = memnew(Button);
@ -4764,12 +4764,12 @@ VisualScriptEditor::VisualScriptEditor() {
graph_hbc->add_child(base_type_select);
Button *add_nds = memnew(Button);
add_nds->set_text("Add Nodes...");
add_nds->set_text(TTR("Add Nodes..."));
graph_hbc->add_child(add_nds);
add_nds->connect("pressed", this, "_add_node_dialog");
Button *fn_btn = memnew(Button);
fn_btn->set_text("Add Function...");
fn_btn->set_text(TTR("Add Function..."));
graph_hbc->add_child(fn_btn);
fn_btn->connect("pressed", this, "_create_function_dialog");