[gnome-logs] Use translated application name in about dialog



commit 15987f8c2a57d77699b0d1660b0390d982ac58c8
Author: David King <davidk gnome org>
Date:   Wed Jun 25 20:07:51 2014 +0100

    Use translated application name in about dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732240

 src/gl-application.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gl-application.c b/src/gl-application.c
index 0d3fcde..b64bc16 100644
--- a/src/gl-application.c
+++ b/src/gl-application.c
@@ -101,7 +101,6 @@ on_about (GSimpleAction *action,
                            "copyright", "Copyright © 2013–2014 Red Hat, Inc.",
                            "license-type", GTK_LICENSE_GPL_3_0,
                            "logo-icon-name", PACKAGE_TARNAME,
-                           "program-name", PACKAGE_NAME,
                            "version", PACKAGE_VERSION,
                            "website", PACKAGE_URL, NULL);
 }
@@ -175,6 +174,9 @@ gl_application_startup (GApplication *application)
     /* Calls gtk_init() with no arguments. */
     G_APPLICATION_CLASS (gl_application_parent_class)->startup (application);
 
+    /* gtk_init() calls setlocale(), so gettext must be called after that. */
+    g_set_application_name (_(PACKAGE_NAME));
+
     builder = gtk_builder_new ();
     gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
     gtk_builder_add_from_resource (builder, "/org/gnome/Logs/appmenu.ui",


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