[Xfce4-commits] [panel-plugins/xfce4-pulseaudio-plugin] 04/04: Experiments with gettext

noreply at xfce.org noreply at xfce.org
Wed Feb 18 00:09:23 CET 2015


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

andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-pulseaudio-plugin.

commit 4f24d87d1e5bdad70b241fe4065c60f0c21a9606
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Tue Feb 17 23:09:11 2015 +0000

    Experiments with gettext
    
    Commented out lines demonstrate the issue with libintl setup:
    - compilation warning (implicit _() definition)
    - runtime crash (no '_' symbol)
---
 panel-plugin/pulseaudio-button.c |    2 ++
 po/POTFILES.in                   |    1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/pulseaudio-button.c b/panel-plugin/pulseaudio-button.c
index 947fc2d..4087de9 100644
--- a/panel-plugin/pulseaudio-button.c
+++ b/panel-plugin/pulseaudio-button.c
@@ -320,8 +320,10 @@ pulseaudio_button_update (PulseaudioButton *button,
     idx = V_HIGH;
 
   if (muted)
+    //tip_text = g_strdup_printf (_("Volume %d%% (muted)"), (gint) round (volume * 100));
     tip_text = g_strdup_printf (("Volume %d%% (muted)"), (gint) round (volume * 100));
   else
+    //tip_text = g_strdup_printf (_("Volume %d%%"), (gint) round (volume * 100));
     tip_text = g_strdup_printf (("Volume %d%%"), (gint) round (volume * 100));
   gtk_widget_set_tooltip_text (GTK_WIDGET (button), tip_text);
   g_free (tip_text);
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c786742..227c447 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,3 @@
 panel-plugin/pulseaudio.desktop.in.in
-panel-plugin/pulseaudio.c
 panel-plugin/pulseaudio-button.c
 panel-plugin/pulseaudio-dialog.glade

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


More information about the Xfce4-commits mailing list