summaryrefslogtreecommitdiff
path: root/tools/editor/resources_dock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/resources_dock.cpp')
-rw-r--r--tools/editor/resources_dock.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/editor/resources_dock.cpp b/tools/editor/resources_dock.cpp
index 5e44162c93..10292ed10d 100644
--- a/tools/editor/resources_dock.cpp
+++ b/tools/editor/resources_dock.cpp
@@ -133,7 +133,7 @@ void ResourcesDock::save_resource(const String& p_path,const Ref<Resource>& p_re
Error err = ResourceSaver::save(path,p_resource,flg|ResourceSaver::FLAG_REPLACE_SUBRESOURCE_PATHS);
if (err!=OK) {
- accept->set_text("Error saving resource!");
+ accept->set_text(TTR("Error saving resource!"));
accept->popup_centered_minsize();
return;
}
@@ -351,21 +351,21 @@ ResourcesDock::ResourcesDock(EditorNode *p_editor) {
Button *b;
b = memnew( ToolButton );
- b->set_tooltip("Create New Resource");
+ b->set_tooltip(TTR("Create New Resource"));
b->connect("pressed",this,"_tool_selected",make_binds(TOOL_NEW));
hbc->add_child( b );
button_new=b;
b = memnew( ToolButton );
- b->set_tooltip("Open Resource");
+ b->set_tooltip(TTR("Open Resource"));
b->connect("pressed",this,"_tool_selected",make_binds(TOOL_OPEN));
hbc->add_child( b );
button_open=b;
MenuButton *mb = memnew( MenuButton );
- mb->set_tooltip("Save Resource");
- mb->get_popup()->add_item("Save Resource",TOOL_SAVE);
- mb->get_popup()->add_item("Save Resource As..",TOOL_SAVE_AS);
+ mb->set_tooltip(TTR("Save Resource"));
+ mb->get_popup()->add_item(TTR("Save Resource"),TOOL_SAVE);
+ mb->get_popup()->add_item(TTR("Save Resource As.."),TOOL_SAVE_AS);
mb->get_popup()->connect("item_pressed",this,"_tool_selected" );
hbc->add_child( mb );
button_save=mb;
@@ -373,10 +373,10 @@ ResourcesDock::ResourcesDock(EditorNode *p_editor) {
hbc->add_spacer();
mb = memnew( MenuButton );
- mb->set_tooltip("Resource Tools");
- mb->get_popup()->add_item("Make Local",TOOL_MAKE_LOCAL);
- mb->get_popup()->add_item("Copy",TOOL_COPY);
- mb->get_popup()->add_item("Paste",TOOL_PASTE);
+ mb->set_tooltip(TTR("Resource Tools"));
+ mb->get_popup()->add_item(TTR("Make Local"),TOOL_MAKE_LOCAL);
+ mb->get_popup()->add_item(TTR("Copy"),TOOL_COPY);
+ mb->get_popup()->add_item(TTR("Paste"),TOOL_PASTE);
mb->get_popup()->connect("item_pressed",this,"_tool_selected" );
hbc->add_child( mb );
button_tools=mb;