**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
#include <synfigapp/main.h>
+#include "general.h"
+
#endif
using namespace std;
{
if(!studio::App::get_selected_instance())
{
- App::dialog_error_blocking("Cannot save","Nothing to save");
+ App::dialog_error_blocking(_("Cannot save"),_("Nothing to save"));
return;
}
- if(studio::App::get_selected_instance()->save() == studio::Instance::STATUS_ERROR)
- App::dialog_error_blocking("Save - Error","Unable to save file");
+ studio::App::get_selected_instance()->save();
}
void
{
if(!studio::App::get_selected_instance())
{
- App::dialog_error_blocking("Cannot save as","Nothing to save");
+ App::dialog_error_blocking(_("Cannot save as"),_("Nothing to save"));
return;
}
if(!instance)
{
- App::dialog_error_blocking("Cannot close","Nothing to close");
+ App::dialog_error_blocking(_("Cannot close"),_("Nothing to close"));
return;
}
dock_dialogs=manage(new class Gtk::Menu());
- dock_dialogs->items().push_back(Gtk::Menu_Helpers::MenuElem("Canvases, History",sigc::ptr_fun(_create_stock_dialog1)));
- dock_dialogs->items().push_back(Gtk::Menu_Helpers::MenuElem("Layers, Children, Params",sigc::ptr_fun(_create_stock_dialog2)));
+ dock_dialogs->items().push_back(Gtk::Menu_Helpers::MenuElem(_("Canvases, History"),sigc::ptr_fun(_create_stock_dialog1)));
+ dock_dialogs->items().push_back(Gtk::Menu_Helpers::MenuElem(_("Layers, Children, Params"),sigc::ptr_fun(_create_stock_dialog2)));
+ dock_dialogs->items().push_back(Gtk::Menu_Helpers::SeparatorElem());
+ dock_dialogs->items().push_back(Gtk::Menu_Helpers::MenuElem(_("Reset Windows to Original Layout"),sigc::ptr_fun(App::reset_initial_window_configuration)));
dock_dialogs->items().push_back(Gtk::Menu_Helpers::SeparatorElem());
sigc::ptr_fun(studio::App::dialog_about)));
Gtk::MenuBar *menubar1 = manage(new class Gtk::MenuBar());
- menubar1->items().push_back(Gtk::Menu_Helpers::MenuElem("_File",*filemenu));
- menubar1->items().push_back(Gtk::Menu_Helpers::MenuElem("_Help",*helpmenu));
+ menubar1->items().push_back(Gtk::Menu_Helpers::MenuElem(_("_File"),*filemenu));
+ menubar1->items().push_back(Gtk::Menu_Helpers::MenuElem(_("_Help"),*helpmenu));
menubar1->show();
Gtk::Image *icon;
- ADD_TOOLBOX_BUTTON(button_new,"gtk-new","New...");
- ADD_TOOLBOX_BUTTON(button_open,"gtk-open","Open...");
- ADD_TOOLBOX_BUTTON(button_save,"gtk-save","Save");
- ADD_TOOLBOX_BUTTON(button_saveas,"gtk-save-as","Save as...");
- ADD_TOOLBOX_BUTTON(button_save_all,"synfig-saveall","Save All");
- TOOLBOX_BUTTON(button_undo,"gtk-undo","Undo");
- TOOLBOX_BUTTON(button_redo,"gtk-redo","Redo");
- ADD_TOOLBOX_BUTTON(button_about,"synfig-about","About Synfig Studio");
+ ADD_TOOLBOX_BUTTON(button_new,"gtk-new",_("New..."));
+ ADD_TOOLBOX_BUTTON(button_open,"gtk-open",_("Open..."));
+ ADD_TOOLBOX_BUTTON(button_save,"gtk-save",_("Save"));
+ ADD_TOOLBOX_BUTTON(button_saveas,"gtk-save-as",_("Save as..."));
+ ADD_TOOLBOX_BUTTON(button_save_all,"synfig-saveall",_("Save All"));
+ TOOLBOX_BUTTON(button_undo,"gtk-undo",_("Undo"));
+ TOOLBOX_BUTTON(button_redo,"gtk-redo",_("Redo"));
+ ADD_TOOLBOX_BUTTON(button_about,"synfig-about",_("About Synfig Studio"));
button_about->signal_clicked().connect(sigc::ptr_fun(studio::App::dialog_about));
button_new->signal_clicked().connect(sigc::ptr_fun(studio::App::new_instance));
// Set the parameters for this window
add(*table1);
- set_title("Synfig Studio");
+ set_title(_("Synfig Studio"));
set_modal(false);
property_window_position().set_value(Gtk::WIN_POS_NONE);
signal_delete_event().connect(sigc::ptr_fun(App::shutdown_request));
Toolbox::~Toolbox()
{
hide();
- //studio::App::cb.task("Toolbox: I was nailed!");
+ //studio::App::cb.task(_("Toolbox: I was nailed!"));
//studio::App::quit();
if(studio::App::toolbox==this)
{
synfig::String selection_data((gchar *)(selection_data_.get_data()));
- // For some reason, GTK hands us a list of URL's seperated
- // by not only Carrage-Returns, but also Line-Feeds.
+ // For some reason, GTK hands us a list of URLs separated
+ // by not only Carriage-Returns, but also Line-Feeds.
// Line-Feeds will mess us up. Remove all the line-feeds.
while(selection_data.find_first_of('\r')!=synfig::String::npos)
selection_data.erase(selection_data.begin()+selection_data.find_first_of('\r'));