Skip to content

Commit

Permalink
Merge pull request #44684 from Chaosus/vs_ttr
Browse files Browse the repository at this point in the history
Makes strings translatable on context menu in visual shader
  • Loading branch information
Chaosus authored Dec 25, 2020
2 parents 7d972b8 + 8c23639 commit 0f509b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions editor/plugins/visual_shader_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2997,12 +2997,12 @@ VisualShaderEditor::VisualShaderEditor() {

popup_menu = memnew(PopupMenu);
add_child(popup_menu);
popup_menu->add_item("Add Node", NodeMenuOptions::ADD);
popup_menu->add_item(TTR("Add Node"), NodeMenuOptions::ADD);
popup_menu->add_separator();
popup_menu->add_item("Copy", NodeMenuOptions::COPY);
popup_menu->add_item("Paste", NodeMenuOptions::PASTE);
popup_menu->add_item("Delete", NodeMenuOptions::DELETE);
popup_menu->add_item("Duplicate", NodeMenuOptions::DUPLICATE);
popup_menu->add_item(TTR("Copy"), NodeMenuOptions::COPY);
popup_menu->add_item(TTR("Paste"), NodeMenuOptions::PASTE);
popup_menu->add_item(TTR("Delete"), NodeMenuOptions::DELETE);
popup_menu->add_item(TTR("Duplicate"), NodeMenuOptions::DUPLICATE);
popup_menu->connect("id_pressed", callable_mp(this, &VisualShaderEditor::_node_menu_id_pressed));

///////////////////////////////////////
Expand Down

0 comments on commit 0f509b0

Please sign in to comment.