diff options
| author | Juan Linietsky | 2016-05-03 22:25:37 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-05-03 22:25:37 -0300 |
| commit | 567cb691ec49844101247bb9dc34bc2722f6af4f (patch) | |
| tree | caa577fdc22feec8869e66b32be34db0c90f8aa8 /tools/editor/plugins/control_editor_plugin.cpp | |
| parent | c7e8def44696da9ddf0b459e166280668c84c4cb (diff) | |
| download | godot-567cb691ec49844101247bb9dc34bc2722f6af4f.tar.gz godot-567cb691ec49844101247bb9dc34bc2722f6af4f.tar.zst godot-567cb691ec49844101247bb9dc34bc2722f6af4f.zip | |
Modified editor strings to be translatable in the future
Diffstat (limited to 'tools/editor/plugins/control_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/control_editor_plugin.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/editor/plugins/control_editor_plugin.cpp b/tools/editor/plugins/control_editor_plugin.cpp index 9dff5e6ce..0958343f2 100644 --- a/tools/editor/plugins/control_editor_plugin.cpp +++ b/tools/editor/plugins/control_editor_plugin.cpp @@ -112,7 +112,7 @@ void ControlEditor::_key_move(const Vector2& p_dir, bool p_snap) { if (p_snap) motion*=snap_val->get_text().to_double(); - undo_redo->create_action("Edit Control"); + undo_redo->create_action(TTR("Edit Control")); for(ControlMap::Element *E=controls.front();E;E=E->next()) { Control *control = E->key(); undo_redo->add_do_method(control,"set_pos",control->get_pos()+motion); @@ -156,7 +156,7 @@ void ControlEditor::_input_event(InputEvent p_event) { if (undo_redo) { - undo_redo->create_action("Edit Control"); + undo_redo->create_action(TTR("Edit Control")); for(ControlMap::Element *E=controls.front();E;E=E->next()) { Control *control = E->key(); undo_redo->add_do_method(control,"set_pos",control->get_pos()); @@ -752,17 +752,17 @@ ControlEditor::ControlEditor(EditorNode *p_editor) { handle_len=10; popup=memnew( PopupMenu ); - popup->add_check_item("Use Snap"); - popup->add_item("Configure Snap.."); + popup->add_check_item(TTR("Use Snap")); + popup->add_item(TTR("Configure Snap..")); add_child(popup); snap_dialog = memnew( ConfirmationDialog ); snap_dialog->get_ok()->hide(); - snap_dialog->get_cancel()->set_text("Close"); + snap_dialog->get_cancel()->set_text(TTR("Close")); add_child(snap_dialog); Label *l = memnew(Label); - l->set_text("Snap:"); + l->set_text(TTR("Snap:")); l->set_pos(Point2(5,5)); snap_dialog->add_child(l); |
