From 4d5638dc4650b62b7ecf88059ec50133ba5b8ad9 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Fri, 27 Jul 2018 20:03:51 -0500 Subject: [PATCH] Remove attempt to vary the save dialog labels It's defeated by the fact that the dialog is cached the first time it is created... whatever labels get used on the first construction get used forever. --- src/gnome-chess.vala | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala index 00c4368..0f60d80 100644 --- a/src/gnome-chess.vala +++ b/src/gnome-chess.vala @@ -1423,8 +1423,7 @@ Copyright © 2015–2016 Sahil Sareen"""; } else if (result == Gtk.ResponseType.YES) { - /* Your very last chance to save */ - present_save_dialog (_("_Discard"), _("_Save")); + present_save_dialog (); } else { @@ -2248,8 +2247,7 @@ Copyright © 2015–2016 Sahil Sareen"""; } } - private void present_save_dialog (string cancel_button_label = N_("_Cancel"), - string save_button_label = N_("_Save")) + private void present_save_dialog () { /* Show active dialog */ if (save_dialog == null) @@ -2257,8 +2255,8 @@ Copyright © 2015–2016 Sahil Sareen"""; save_dialog = new Gtk.FileChooserNative (/* Title of save game dialog */ _("Save Chess Game"), window, Gtk.FileChooserAction.SAVE, - _(save_button_label), - _(cancel_button_label)); + _("_Save"), + _("_Cancel")); if (game_file != null && game_file.get_path () != autosave_filename) save_dialog.set_filename (game_file.get_path ());