summaryrefslogtreecommitdiff
path: root/netspeed
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-03-13 11:56:39 +0100
committerraveit65 <[email protected]>2019-03-20 15:55:32 +0100
commit177f1081b3b52753bec2fbb560f40e1c9faaae52 (patch)
tree29a78a7bc801177149e1b4465fcf0f9fe9b06b5a /netspeed
parentc2db44280ef7aebdca6c62a6f39f0bbe2c1200da (diff)
downloadmate-applets-177f1081b3b52753bec2fbb560f40e1c9faaae52.tar.bz2
mate-applets-177f1081b3b52753bec2fbb560f40e1c9faaae52.tar.xz
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
Diffstat (limited to 'netspeed')
-rw-r--r--netspeed/src/netspeed.c7
1 files changed, 4 insertions, 3 deletions
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 <[email protected]>
*
- * Mate Netspeed Applet migrated by Stefano Karapetsas <[email protected]>
+ * MATE Netspeed Applet migrated by Stefano Karapetsas <[email protected]>
*/
#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();