[ekiga/ds-gtk-application] Accounts: Fixed account edition form.



commit eed61d1fbc38dd515bcd0e457c3e3ff56b560637
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Sep 28 17:04:55 2014 +0200

    Accounts: Fixed account edition form.

 lib/engine/components/opal/opal-account.cpp |   37 +++++++++++++++++---------
 1 files changed, 24 insertions(+), 13 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 95bda05..a92ad38 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -627,24 +627,35 @@ Opal::Account::edit ()
 
   str << get_timeout ();
 
-  request->title (_("Edit account"));
-
-  request->instructions (_("Please update the following fields:"));
-
-  request->text ("name", _("Name:"), get_name (), _("Account name, e.g. MyAccount"));
+  /* Translators: This is Edit name of the Account
+   * e.g. Editing Ekiga.net Account.
+   */
+  char *title = g_strdup_printf (_("Editing %s Account"), get_name ().c_str ());
+  request->title (title);
+  g_free (title);
+
+  request->text ("name", _("Name"), get_name (),
+                 _("Ekiga.Net Account"));
   if (get_protocol_name () == "SIP")
-    request->text ("host", _("Registrar:"), get_host (), _("The registrar, e.g. ekiga.net"));
+    request->text ("host", _("Registrar"), get_host (),
+                   _("ekiga.net"));
   else
-    request->text ("host", _("Gatekeeper:"), get_host (), _("The gatekeeper, e.g. ekiga.net"));
-  request->text ("user", _("User:"), get_username (), _("The user name, e.g. jim"));
+    request->text ("host", _("Gatekeeper"), get_host (),
+                   _("ekiga.net"));
+  request->text ("user", _("User"), get_username (),
+                 _("jon"));
   if (get_protocol_name () == "SIP")
     /* Translators:
      * SIP knows two usernames: The name for the client ("User") and the name
-     * for the authentication procedure ("Authentication user") */
-    request->text ("authentication_user", _("Authentication user:"), get_authentication_username (), _("The 
user name used during authentication, if different than the user name; leave empty if you do not have one"));
-  request->private_text ("password", _("Password:"), get_password (), _("Password associated to the user"));
-  request->text ("timeout", _("Timeout:"), str.str (), _("Time in seconds after which the account 
registration is automatically retried"));
-  request->boolean ("enabled", _("Enable account"), is_enabled ());
+     * for the authentication procedure ("Authentication user"), aka Login
+     * to make it understandable
+     */
+    request->text ("authentication_user", _("Login"), get_authentication_username (),
+                   _("jon.doe"));
+  request->private_text ("password", _("Password"), get_password (),
+                         _("1234"));
+  request->text ("timeout", _("Timeout"), str.str (), _("3600"));
+  request->boolean ("enabled", _("Enable Account"), is_enabled ());
 
   Ekiga::Account::questions (request);
 }


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