diff options
author | rbuj <[email protected]> | 2019-03-13 11:56:39 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-03-20 15:55:32 +0100 |
commit | 177f1081b3b52753bec2fbb560f40e1c9faaae52 (patch) | |
tree | 29a78a7bc801177149e1b4465fcf0f9fe9b06b5a | |
parent | c2db44280ef7aebdca6c62a6f39f0bbe2c1200da (diff) | |
download | mate-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
-rw-r--r-- | accessx-status/applet.c | 1 | ||||
-rw-r--r-- | battstat/battstat_applet.c | 1 | ||||
-rw-r--r-- | charpick/charpick.c | 1 | ||||
-rw-r--r-- | command/command.c | 1 | ||||
-rw-r--r-- | cpufreq/src/cpufreq-applet.c | 1 | ||||
-rw-r--r-- | drivemount/drivemount.c | 1 | ||||
-rw-r--r-- | geyes/geyes.c | 1 | ||||
-rw-r--r-- | mateweather/mateweather-about.c | 1 | ||||
-rw-r--r-- | multiload/main.c | 1 | ||||
-rw-r--r-- | netspeed/src/netspeed.c | 7 | ||||
-rw-r--r-- | stickynotes/stickynotes_applet_callbacks.c | 1 | ||||
-rw-r--r-- | timerapplet/timerapplet.c | 1 | ||||
-rw-r--r-- | trashapplet/src/trashapplet.c | 1 |
13 files changed, 16 insertions, 3 deletions
diff --git a/accessx-status/applet.c b/accessx-status/applet.c index 652a99ca..e131e1bb 100644 --- a/accessx-status/applet.c +++ b/accessx-status/applet.c @@ -92,6 +92,7 @@ static void about_cb(GtkAction* action, AccessxStatusApplet* sapplet) "Copyright \xc2\xa9 2003 Sun Microsystems"; gtk_show_about_dialog(NULL, + "title", _("About AccessX Status"), "version", VERSION, "comments", _("Shows the state of AccessX features such as latched modifiers"), "copyright", copyright, diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c index 9cc791ea..bbb74ef5 100644 --- a/battstat/battstat_applet.c +++ b/battstat/battstat_applet.c @@ -831,6 +831,7 @@ about_cb( GtkAction *action, ProgressData *battstat ) /* false */ _("Legacy backend enabled.")); gtk_show_about_dialog( NULL, + "title", _("About Battery Charge Monitor"), "version", VERSION, "copyright", copyright, "comments", comments, diff --git a/charpick/charpick.c b/charpick/charpick.c index 17ce55d0..6983bccf 100644 --- a/charpick/charpick.c +++ b/charpick/charpick.c @@ -577,6 +577,7 @@ about (GtkAction *action, }; gtk_show_about_dialog (NULL, + "title", _("About Character Palette"), "version", VERSION, "copyright", copyright, "comments", _("Mate Panel applet for selecting strange " diff --git a/command/command.c b/command/command.c index 6c499922..7e147f69 100644 --- a/command/command.c +++ b/command/command.c @@ -109,6 +109,7 @@ command_about_callback (GtkAction *action, CommandApplet *command_applet) "Copyright \xc2\xa9 2013-2014 Stefano Karapetsas"; gtk_show_about_dialog(NULL, + "title", _("About Command Applet"), "version", VERSION, "copyright", copyright, "authors", authors, diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c index 940965e5..d9461a5b 100644 --- a/cpufreq/src/cpufreq-applet.c +++ b/cpufreq/src/cpufreq-applet.c @@ -478,6 +478,7 @@ cpufreq_applet_about_cb (GtkAction *action, }; gtk_show_about_dialog (NULL, + "title", _("About CPU Frequency Scaling Monitor"), "version", VERSION, "copyright", copyright, "comments", _("This utility shows the current CPU " diff --git a/drivemount/drivemount.c b/drivemount/drivemount.c index 5f525667..cf951a42 100644 --- a/drivemount/drivemount.c +++ b/drivemount/drivemount.c @@ -113,6 +113,7 @@ display_about_dialog (GtkAction *action, }; gtk_show_about_dialog (NULL, + "title", _("About Disk Mounter"), "version", VERSION, "copyright", copyright, "comments", _("Applet for mounting and unmounting block volumes."), diff --git a/geyes/geyes.c b/geyes/geyes.c index 52e257b0..98f196d6 100644 --- a/geyes/geyes.c +++ b/geyes/geyes.c @@ -172,6 +172,7 @@ about_cb (GtkAction *action, }; gtk_show_about_dialog (NULL, + "title", _("About Eyes"), "version", VERSION, "comments", _("A goofy set of eyes for the MATE " "panel. They follow your mouse."), diff --git a/mateweather/mateweather-about.c b/mateweather/mateweather-about.c index 42beb87c..eed30198 100644 --- a/mateweather/mateweather-about.c +++ b/mateweather/mateweather-about.c @@ -48,6 +48,7 @@ void mateweather_about_run(MateWeatherApplet* gw_applet) }; gtk_show_about_dialog(NULL, + "title", _("About Weather Report"), "version", VERSION, "copyright", copyright, "comments", _("A panel application for monitoring local weather conditions."), diff --git a/multiload/main.c b/multiload/main.c index d7029dc9..81efb5af 100644 --- a/multiload/main.c +++ b/multiload/main.c @@ -54,6 +54,7 @@ about_cb (GtkAction *action, }; gtk_show_about_dialog (NULL, + "title", _("About System Monitor"), "version", VERSION, "copyright", copyright, "comments", _("A system load monitor capable of displaying graphs " 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(); diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c index a5e1281f..8e971d7c 100644 --- a/stickynotes/stickynotes_applet_callbacks.c +++ b/stickynotes/stickynotes_applet_callbacks.c @@ -374,6 +374,7 @@ menu_about_cb (GtkAction *action, }; gtk_show_about_dialog (NULL, + "title", _("About Sticky Notes"), "version", VERSION, "copyright", copyright, "comments", _("Sticky Notes for the " diff --git a/timerapplet/timerapplet.c b/timerapplet/timerapplet.c index 24c7af12..4de54431 100644 --- a/timerapplet/timerapplet.c +++ b/timerapplet/timerapplet.c @@ -273,6 +273,7 @@ timer_about_callback (GtkAction *action, TimerApplet *applet) "Copyright \xc2\xa9 2014 Stefano Karapetsas"; gtk_show_about_dialog(NULL, + "title", _("About Timer Applet"), "version", VERSION, "copyright", copyright, "authors", authors, diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c index 3bca247a..d9228d14 100644 --- a/trashapplet/src/trashapplet.c +++ b/trashapplet/src/trashapplet.c @@ -427,6 +427,7 @@ trash_applet_show_about (GtkAction *action, }; gtk_show_about_dialog (NULL, + "title", _("About Trash Applet"), "version", VERSION, "copyright", copyright, "comments", _("A MATE trash bin that lives in your panel. " |