From 7d6c6aae87f6a9123e30d116a4cd6296eb5086fb Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Mon, 26 Jul 2010 18:21:57 +0200 Subject: [PATCH] update text layout of crash recovery dialog, and make the title "Crash Recovery" translatable. Replace the dialog that info user to review and save the recovered files with WARNING style, because it is not an ERROR. Patch thanks to Yu Chen (jcome) --- synfig-studio/src/gui/app.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/synfig-studio/src/gui/app.cpp b/synfig-studio/src/gui/app.cpp index 0d0d78c..207fcc5 100644 --- a/synfig-studio/src/gui/app.cpp +++ b/synfig-studio/src/gui/app.cpp @@ -1317,10 +1317,9 @@ App::App(int *argc, char ***argv): if(auto_recover->recovery_needed()) { splash_screen.hide(); - if (get_ui_interface()->confirmation("Crash Recovery", + if (get_ui_interface()->confirmation(_("Crash Recovery"), _("Auto recovery file found"), - _("Synfig Studio seems to have crashed\n" - "before you could save all your files.\n" + _("Synfig Studio seems to have crashed before you could save all your files. " "Recover unsaved changes?"), _("Recover"), _("Ignore")) == synfigapp::UIInterface::RESPONSE_OK) @@ -1332,11 +1331,10 @@ App::App(int *argc, char ***argv): else get_ui_interface()->error(_("Unable to recover from previous crash")); else - get_ui_interface()->error( - _("Synfig Studio has attempted to recover\n" - "from a previous crash. The files that it has\n" - "recovered are NOT YET SAVED. It would be a good\n" - "idea to review them and save them now.")); + dialog_warning_blocking(_("Warning"), + _("Synfig Studio has attempted to recover from a previous crash. " + "The files that it has recovered are NOT YET SAVED. It would be a " + "good idea to review them and save them now.")); if (number_recovered) opened_any = true; -- 2.7.4