[smuxi/experiments/gtk2_builder_pref_dialog: 25/25] Frontend-GNOME: use more descriptive button labels for ServerDialog



commit e93bea24d17bcc344244fbc759dd59ff48f239de
Author: Mirco Bauer <meebey meebey net>
Date:   Thu Oct 17 19:33:03 2013 +0200

    Frontend-GNOME: use more descriptive button labels for ServerDialog
    
    Thanks goes to Hylke Bons for mentioning this

 src/Frontend-GNOME/Views/ServerDialog.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend-GNOME/Views/ServerDialog.cs b/src/Frontend-GNOME/Views/ServerDialog.cs
index 9bf7893..e62117b 100644
--- a/src/Frontend-GNOME/Views/ServerDialog.cs
+++ b/src/Frontend-GNOME/Views/ServerDialog.cs
@@ -61,12 +61,15 @@ namespace Smuxi.Frontend.Gnome
             CheckOkButton();
 
             if (server != null) {
+                f_OkButton.Label = _("Save");
                 try {
                     f_Widget.Load(server);
                 } catch (Exception) {
                     Destroy();
                     throw;
                 }
+            } else {
+                f_OkButton.Label = _("Add");
             }
         }
 
@@ -88,5 +91,10 @@ namespace Smuxi.Frontend.Gnome
         {
             return f_Widget.GetServer();
         }
+
+        static string _(string msg)
+        {
+            return Mono.Unix.Catalog.GetString(msg);
+        }
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]