[gnome-chess] load/save: never show uninternationalized text
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] load/save: never show uninternationalized text
- Date: Thu, 16 Jan 2014 05:08:43 +0000 (UTC)
commit a4c5dd479daccb197ae47feca43070dfa16c4a93
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Jan 15 22:03:31 2014 -0600
load/save: never show uninternationalized text
src/gnome-chess.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 6cc03d3..0d0497d 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1900,7 +1900,8 @@ public class Application : Gtk.Application
}
catch (Error e)
{
- save_dialog_error_label.set_text (_("Failed to save game: %s").printf (e.message));
+ warning ("Failed to save game: %s", e.message);
+ save_dialog_error_label.set_text (_("Failed to save game"));
save_dialog_info_bar.set_message_type (Gtk.MessageType.ERROR);
save_dialog_info_bar.show ();
return;
@@ -2030,7 +2031,8 @@ public class Application : Gtk.Application
}
catch (Error e)
{
- open_dialog_error_label.set_text (_("Failed to open game: %s").printf (e.message));
+ warning ("Failed to open game: %s", e.message);
+ open_dialog_error_label.set_text (_("Failed to open game"));
open_dialog_info_bar.set_message_type (Gtk.MessageType.ERROR);
open_dialog_info_bar.show ();
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]