diff options
author | Jonathan Tellier <jonathan.tellier@gmail.com> | 2009-08-27 21:18:10 +0800 |
---|---|---|
committer | jtellier <jonathan.tellier@collabora.co.uk> | 2009-08-27 21:18:10 +0800 |
commit | c66fa1223a902be9b51cf1568b07870e6f2dd402 (patch) | |
tree | 9c3e0d1518fe041c70aebf0eee58b0230cb5ee21 /src | |
parent | 5a9bf924644f14f67a62717eeca98a0dfbce60d7 (diff) | |
download | gsoc2013-empathy-c66fa1223a902be9b51cf1568b07870e6f2dd402.tar gsoc2013-empathy-c66fa1223a902be9b51cf1568b07870e6f2dd402.tar.gz gsoc2013-empathy-c66fa1223a902be9b51cf1568b07870e6f2dd402.tar.bz2 gsoc2013-empathy-c66fa1223a902be9b51cf1568b07870e6f2dd402.tar.lz gsoc2013-empathy-c66fa1223a902be9b51cf1568b07870e6f2dd402.tar.xz gsoc2013-empathy-c66fa1223a902be9b51cf1568b07870e6f2dd402.tar.zst gsoc2013-empathy-c66fa1223a902be9b51cf1568b07870e6f2dd402.zip |
- Added information intented to translators.
- Fixed leak of the the display name.
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-accounts-dialog.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 0bd58189e..1cb903ec0 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -199,6 +199,9 @@ get_default_display_name (EmpathyAccountSettings *settings) const gchar* server; server = empathy_account_settings_get_string (settings, "server"); + /* To translators: The first parameter is the login id and the + * second one is the server. The resulting string will be something + * like: "MyUserName on chat.freenode.net" */ default_display_name = g_strdup_printf (_("%s on %s"), login_id, server); } @@ -209,6 +212,8 @@ get_default_display_name (EmpathyAccountSettings *settings) } else if (protocol != NULL) { + /* To translators: The parameter is the protocol name. The resulting + * string will be something like: "Jabber Account" */ default_display_name = g_strdup_printf (_("%s Account"), protocol); } else @@ -223,11 +228,16 @@ static void empathy_account_dialog_account_created_cb (EmpathyAccountWidget *widget_object, EmpathyAccountsDialog *dialog) { + gchar *display_name; EmpathyAccountSettings *settings = accounts_dialog_model_get_selected_settings (dialog); + display_name = get_default_display_name (settings); + empathy_account_settings_set_display_name_async (settings, - get_default_display_name (settings), NULL, NULL); + display_name, NULL, NULL); + + g_free (display_name); accounts_dialog_update_settings (dialog, settings); @@ -1182,7 +1192,7 @@ accounts_dialog_button_create_clicked_cb (GtkWidget *button, /* Create account */ /* To translator: %s is the name of the protocol, such as "Google Talk" or - * "Yahoo! + * "Yahoo!" */ str = g_strdup_printf (_("New %s account"), display_name); settings = empathy_account_settings_new (cm->name, proto->name, str); |