[Xfce4-commits] <postler:master> Confirming search removal should say search, not account

Christian Dywan noreply at xfce.org
Wed Apr 6 03:50:01 CEST 2011


Updating branch refs/heads/master
         to fe04e66884709581010c899b5ce441f2489858e2 (commit)
       from 07c369424a3442afdd930cdfc8465620cda5d4a2 (commit)

commit fe04e66884709581010c899b5ce441f2489858e2
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Apr 6 03:11:04 2011 +0200

    Confirming search removal should say search, not account

 postler/postler-accountsetup.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/postler/postler-accountsetup.vala b/postler/postler-accountsetup.vala
index 1b4bde7..46617ce 100644
--- a/postler/postler-accountsetup.vala
+++ b/postler/postler-accountsetup.vala
@@ -312,10 +312,12 @@ public class Postler.AccountSetup : Gtk.Dialog {
     public static AccountSetup edit_account (AccountInfo info) {
          var setup = new AccountSetup (info);
 
+        unowned string remove_message = _("You are about to remove the account \"%s\".");
         unowned string remove_label = _("Remove Account");
         unowned string update_label = _("Update Account");
         if (info.type == AccountType.SEARCH) {
             setup.title = _("Saved Search Properties");
+            remove_message = _("You are about to remove the saved search \"%s\".");
             remove_label = _("Remove Saved Search");
             update_label = _("Update Saved Search");
         }
@@ -331,7 +333,7 @@ public class Postler.AccountSetup : Gtk.Dialog {
             var toplevel = setup.get_toplevel () as Gtk.Window;
             var dialog = new Gtk.MessageDialog (toplevel, 0,
                 Gtk.MessageType.WARNING, Gtk.ButtonsType.NONE,
-                _("You are about to remove the account \"%s\"."), info.name);
+                remove_message, info.name);
                 dialog.add_buttons (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
                     remove_label, Gtk.ResponseType.OK);
                 dialog.set_default_response (Gtk.ResponseType.CANCEL);



More information about the Xfce4-commits mailing list