[easytag] Make the application name translatable
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Make the application name translatable
- Date: Thu, 6 Nov 2014 16:08:47 +0000 (UTC)
commit fcfd471746ac34741ab47e6d724026aab6072f5b
Author: David King <amigadave amigadave com>
Date: Wed Nov 5 17:41:25 2014 +0000
Make the application name translatable
data/easytag.desktop.in | 2 +-
src/about.c | 1 -
src/application.c | 4 +++-
src/application_window.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/data/easytag.desktop.in b/data/easytag.desktop.in
index f39c464..66fe64b 100644
--- a/data/easytag.desktop.in
+++ b/data/easytag.desktop.in
@@ -1,5 +1,5 @@
[Desktop Entry]
-Name=EasyTAG
+_Name=EasyTAG
_GenericName=Audio File Metadata Editor
_Comment=Edit audio file metadata
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list
MUST also end with a semicolon!
diff --git a/src/about.c b/src/about.c
index 76f5ca8..6cd010d 100644
--- a/src/about.c
+++ b/src/about.c
@@ -102,7 +102,6 @@ et_show_about_dialog (GtkWindow *parent)
"documenters", documenters,
"license-type", GTK_LICENSE_GPL_2_0,
"logo-icon-name", PACKAGE_TARNAME,
- "program-name", PACKAGE_NAME,
"translator-credits", translators,
"version", PACKAGE_VERSION,
"website", PACKAGE_URL,
diff --git a/src/application.c b/src/application.c
index b2bf5c2..c5c051b 100644
--- a/src/application.c
+++ b/src/application.c
@@ -335,7 +335,7 @@ et_application_local_command_line (GApplication *application,
if ((strcmp (argv[i], "--version") == 0)
|| (strcmp (argv[i], "-v") == 0))
{
- g_print (PACKAGE_NAME " " PACKAGE_VERSION "\n");
+ g_print (PACKAGE_TARNAME " " PACKAGE_VERSION "\n");
g_print (_("Website: %s"), PACKAGE_URL "\n");
exit (0);
}
@@ -535,6 +535,8 @@ et_application_startup (GApplication *application)
G_APPLICATION_CLASS (et_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_add_from_resource (builder, "/org/gnome/EasyTAG/menus.ui",
&error);
diff --git a/src/application_window.c b/src/application_window.c
index 02f78a9..0db3294 100644
--- a/src/application_window.c
+++ b/src/application_window.c
@@ -1640,7 +1640,7 @@ et_application_window_init (EtApplicationWindow *self)
window = GTK_WINDOW (self);
gtk_window_set_icon_name (window, PACKAGE_TARNAME);
- gtk_window_set_title (window, PACKAGE_NAME);
+ gtk_window_set_title (window, _(PACKAGE_NAME));
g_signal_connect (self, "configure-event",
G_CALLBACK (on_configure_event), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]