From 5b153a6130de6b905b73b9e1a23b3922c929a0a7 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 13 Mar 2019 11:56:39 +0100 Subject: Ensure proper translation of the about dialog title Note that GTK+ sets a default title of _("About %s") on the dialog window (where %s is replaced by the name of the application, but in order to ensure proper translation of the title, applications should set the title property explicitly when constructing a GtkAboutDialog https://developer.gnome.org/gtk3/stable/GtkAboutDialog.html --- netspeed/src/netspeed.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'netspeed') diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c index 0e5e9a7b..3a673823 100644 --- a/netspeed/src/netspeed.c +++ b/netspeed/src/netspeed.c @@ -16,7 +16,7 @@ * * Netspeed Applet was writen by Jörgen Scheibengruber * - * Mate Netspeed Applet migrated by Stefano Karapetsas + * MATE Netspeed Applet migrated by Stefano Karapetsas */ #ifdef HAVE_CONFIG_H @@ -830,6 +830,7 @@ about_cb(GtkAction *action, gpointer data) "Copyright \xc2\xa9 2002-2003 Jörgen Scheibengruber"; gtk_show_about_dialog (NULL, + "title", _("About MATE Netspeed"), "version", VERSION, "copyright", copyright, "comments", _("A little applet that displays some information on the traffic on the specified network device"), @@ -993,7 +994,7 @@ settings_cb(GtkAction *action, gpointer data) category_label_size_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); - applet->settings = GTK_DIALOG(gtk_dialog_new_with_buttons(_("Mate Netspeed Preferences"), + applet->settings = GTK_DIALOG(gtk_dialog_new_with_buttons(_("MATE Netspeed Preferences"), NULL, GTK_DIALOG_DESTROY_WITH_PARENT, "gtk-help", GTK_RESPONSE_HELP, @@ -1590,7 +1591,7 @@ mate_netspeed_applet_factory(MatePanelApplet *applet_widget, const gchar *iid, g return FALSE; glibtop_init(); - g_set_application_name (_("Mate Netspeed")); + g_set_application_name (_("MATE Netspeed")); icon_theme = gtk_icon_theme_get_default(); -- cgit v1.2.1