[vinagre] Translate the application name
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Translate the application name
- Date: Wed, 22 Jun 2011 06:40:50 +0000 (UTC)
commit a4dbcb628dd313bcf1a616131a4b4da0521f3ccb
Author: David King <amigadave amigadave com>
Date: Wed Jun 22 08:29:33 2011 +0200
Translate the application name
g_set_application_name() was called before gettext was initialised, so
the application name, found in the about dialog and the window title,
was not translated. Moving the function call to after the gettext
initialisation fixes the problem, fixing bug 653126.
vinagre/vinagre-main.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vinagre/vinagre-main.c b/vinagre/vinagre-main.c
index a2affa0..1e52e33 100644
--- a/vinagre/vinagre-main.c
+++ b/vinagre/vinagre-main.c
@@ -118,17 +118,17 @@ int main (int argc, char **argv) {
GHashTableIter iter;
int res;
- g_set_prgname ("vinagre");
- g_type_init ();
- g_set_application_name (_("Remote Desktop Viewer"));
- optionstate.new_window = FALSE;
-
/* i18n */
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+ g_set_prgname (PACKAGE_TARNAME);
+ g_type_init ();
+ g_set_application_name (_("Remote Desktop Viewer"));
+ optionstate.new_window = FALSE;
+
/* Setup command line options */
context = g_option_context_new (_("- Remote Desktop Viewer"));
g_option_context_add_main_entries (context, all_options, GETTEXT_PACKAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]