[Xfce4-commits] [panel-plugins/xfce4-genmon-plugin] 01/01: Make tooltips translatable

noreply at xfce.org noreply at xfce.org
Fri Dec 6 15:17:15 CET 2019


This is an automated email from the git hooks/post-receive script.

T   o   Z       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-genmon-plugin.

commit 316d17ed99554f1784e453303f3a1257b3a41752
Author: ToZ <tony.paulic at gmail.com>
Date:   Fri Dec 6 09:16:59 2019 -0500

    Make tooltips translatable
---
 panel-plugin/config_gui.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/panel-plugin/config_gui.c b/panel-plugin/config_gui.c
index cb2f14f..e43cdeb 100644
--- a/panel-plugin/config_gui.c
+++ b/panel-plugin/config_gui.c
@@ -83,23 +83,23 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1,
     wTF_Cmd = gtk_entry_new ();
     gtk_widget_show (wTF_Cmd);
     gtk_grid_attach (GTK_GRID (table1), wTF_Cmd, 1, 0, 1, 1);
-    gtk_widget_set_tooltip_text (wTF_Cmd, "Input the shell command to spawn, then press <Enter>");
+    gtk_widget_set_tooltip_text (wTF_Cmd, _("Input the shell command to spawn, then press <Enter>"));
     gtk_entry_set_max_length (GTK_ENTRY (wTF_Cmd), 128);
 
     wTB_Title = gtk_check_button_new_with_mnemonic (_("Label"));
     gtk_widget_show (wTB_Title);
     gtk_grid_attach (GTK_GRID (table1), wTB_Title, 0, 1, 1, 1);
-    gtk_widget_set_tooltip_text (wTB_Title, "Tick to display label");
+    gtk_widget_set_tooltip_text (wTB_Title, _("Tick to display label"));
 
     wTF_Title = gtk_entry_new ();
     gtk_widget_show (wTF_Title);
     gtk_grid_attach (GTK_GRID (table1), wTF_Title, 1, 1, 1, 1);
  
-    gtk_widget_set_tooltip_text (wTF_Title, "Input the plugin label, then press <Enter>");
+    gtk_widget_set_tooltip_text (wTF_Title, _("Input the plugin label, then press <Enter>"));
     gtk_entry_set_max_length (GTK_ENTRY (wTF_Title), 16);
     gtk_entry_set_text (GTK_ENTRY (wTF_Title), _("(genmon)"));
 
-    label2 = gtk_label_new (_("Period (s) "));
+    label2 = gtk_label_new (_("Period (s)"));
     gtk_widget_show (label2);
     gtk_grid_attach (GTK_GRID (table1), label2, 0, 2, 1, 1);
     gtk_label_set_justify (GTK_LABEL (label2), GTK_JUSTIFY_LEFT);
@@ -117,7 +117,7 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1,
     wSc_Period = gtk_spin_button_new (GTK_ADJUSTMENT (wSc_Period_adj), .25, 2);
     gtk_widget_show (wSc_Period);
     gtk_container_add (GTK_CONTAINER (eventbox1), wSc_Period);
-    gtk_widget_set_tooltip_text (wSc_Period, "Interval between 2 consecutive spawns");
+    gtk_widget_set_tooltip_text (wSc_Period, _("Interval between 2 consecutive spawns"));
     gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (wSc_Period), TRUE);
 
     hseparator10 = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
@@ -129,7 +129,7 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1,
     wPB_Font = gtk_button_new_with_label (_("Select the display font..."));
     gtk_widget_show (wPB_Font);
     gtk_grid_attach (GTK_GRID (table1), wPB_Font, 0, 4, 2, 1);
-    gtk_widget_set_tooltip_text (wPB_Font, "Press to change font...");
+    gtk_widget_set_tooltip_text (wPB_Font, _("Press to change font..."));
             
     if (p_poGUI) {
         COPYVAL (p_poGUI, wTF_Cmd);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list