From a40fd10e985f525f9e26ef816c2f71a2c22dc725 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 13 Mar 2019 18:29:10 +0100 Subject: Make translatable documenters in about dialog --- accessx-status/applet.c | 9 ++++++++- battstat/battstat_applet.c | 7 +++++++ charpick/charpick.c | 9 ++++++++- cpufreq/src/cpufreq-applet.c | 7 +++++++ drivemount/drivemount.c | 7 +++++++ geyes/geyes.c | 9 ++++++++- mateweather/mateweather-about.c | 9 ++++++++- multiload/main.c | 9 ++++++++- stickynotes/stickynotes_applet_callbacks.c | 9 ++++++++- trashapplet/src/trashapplet.c | 7 +++++++ 10 files changed, 76 insertions(+), 6 deletions(-) diff --git a/accessx-status/applet.c b/accessx-status/applet.c index 6a1add9d..697f5e36 100644 --- a/accessx-status/applet.c +++ b/accessx-status/applet.c @@ -83,10 +83,17 @@ static void about_cb(GtkAction* action, AccessxStatusApplet* sapplet) const gchar* documenters[] = { "Bill Haneman ", - "Sun GNOME Documentation Team ", + N_("Sun GNOME Documentation Team "), + N_("MATE Documentation Team"), NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog(NULL, "title", _("About AccessX Status"), "version", VERSION, diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c index 57e426f3..bb52c7fd 100644 --- a/battstat/battstat_applet.c +++ b/battstat/battstat_applet.c @@ -816,6 +816,7 @@ about_cb( GtkAction *action, ProgressData *battstat ) "J\xC3\xB6rgen Pehrson ", "Trevor Curtis ", "Davyd Madeley ", + N_("MATE Documentation Team"), NULL }; @@ -825,6 +826,12 @@ about_cb( GtkAction *action, ProgressData *battstat ) /* true */ _("upower backend enabled.") : /* false */ _("Legacy backend enabled.")); +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog( NULL, "title", _("About Battery Charge Monitor"), "version", VERSION, diff --git a/charpick/charpick.c b/charpick/charpick.c index e4b45789..6e4842cd 100644 --- a/charpick/charpick.c +++ b/charpick/charpick.c @@ -568,10 +568,17 @@ about (GtkAction *action, static const gchar * const documenters[] = { "Dan Mueth ", - "Sun GNOME Documentation Team ", + N_("Sun GNOME Documentation Team "), + N_("MATE Documentation Team"), NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog (NULL, "title", _("About Character Palette"), "version", VERSION, diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c index 323b21db..1d110556 100644 --- a/cpufreq/src/cpufreq-applet.c +++ b/cpufreq/src/cpufreq-applet.c @@ -466,6 +466,7 @@ cpufreq_applet_about_cb (GtkAction *action, static const gchar *const documenters[] = { "Carlos Garcia Campos ", "Davyd Madeley ", + N_("MATE Documentation Team"), NULL }; static const gchar *const artists[] = { @@ -473,6 +474,12 @@ cpufreq_applet_about_cb (GtkAction *action, NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog (NULL, "title", _("About CPU Frequency Scaling Monitor"), "version", VERSION, diff --git a/drivemount/drivemount.c b/drivemount/drivemount.c index 3e8a8650..b67a95cb 100644 --- a/drivemount/drivemount.c +++ b/drivemount/drivemount.c @@ -106,9 +106,16 @@ display_about_dialog (GtkAction *action, const gchar *documenters[] = { "Dan Mueth ", "John Fleck ", + N_("MATE Documentation Team"), NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog (NULL, "title", _("About Disk Mounter"), "version", VERSION, diff --git a/geyes/geyes.c b/geyes/geyes.c index d04cff27..a1fcc530 100644 --- a/geyes/geyes.c +++ b/geyes/geyes.c @@ -163,10 +163,17 @@ about_cb (GtkAction *action, const gchar *documenters[] = { "Arjan Scherpenisse ", "Telsa Gwynne ", - "Sun GNOME Documentation Team ", + N_("Sun GNOME Documentation Team "), + N_("MATE Documentation Team"), NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog (NULL, "title", _("About Eyes"), "version", VERSION, diff --git a/mateweather/mateweather-about.c b/mateweather/mateweather-about.c index a1a3d00d..aa4166b0 100644 --- a/mateweather/mateweather-about.c +++ b/mateweather/mateweather-about.c @@ -38,11 +38,18 @@ void mateweather_about_run(MateWeatherApplet* gw_applet) const gchar* documenters[] = { "Dan Mueth ", "Spiros Papadimitriou ", - "Sun GNOME Documentation Team ", + N_("Sun GNOME Documentation Team "), "Davyd Madeley ", + N_("MATE Documentation Team"), NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog(NULL, "title", _("About Weather Report"), "version", VERSION, diff --git a/multiload/main.c b/multiload/main.c index 7c1aa306..3ad37fdd 100644 --- a/multiload/main.c +++ b/multiload/main.c @@ -45,10 +45,17 @@ about_cb (GtkAction *action, const gchar * const documenters[] = { "Chee Bin HOH ", - "Sun GNOME Documentation Team ", + N_("Sun GNOME Documentation Team "), + N_("MATE Documentation Team"), NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog (NULL, "title", _("About System Monitor"), "version", VERSION, diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c index d0c508a8..d2ca70f4 100644 --- a/stickynotes/stickynotes_applet_callbacks.c +++ b/stickynotes/stickynotes_applet_callbacks.c @@ -364,10 +364,17 @@ menu_about_cb (GtkAction *action, static const gchar *documenters[] = { "Loban A Rahman ", - "Sun GNOME Documentation Team ", + N_("Sun GNOME Documentation Team "), + N_("MATE Documentation Team"), NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog (NULL, "title", _("About Sticky Notes"), "version", VERSION, diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c index bf2e0318..4d99f576 100644 --- a/trashapplet/src/trashapplet.c +++ b/trashapplet/src/trashapplet.c @@ -418,9 +418,16 @@ trash_applet_show_about (GtkAction *action, static const char *documenters[] = { "Michiel Sikkes ", + N_("MATE Documentation Team"), NULL }; +#ifdef ENABLE_NLS + const char **p; + for (p = documenters; *p; ++p) + *p = _(*p); +#endif + gtk_show_about_dialog (NULL, "title", _("About Trash Applet"), "version", VERSION, -- cgit v1.2.1