[Xfce4-commits] [panel-plugins/xfce4-pulseaudio-plugin] 01/01: i18n fixes

noreply at xfce.org noreply at xfce.org
Wed Feb 18 23:04:43 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 58685d53e616f8b6e60883a399e38b750fd9ae60
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Wed Feb 18 22:04:32 2015 +0000

    i18n fixes
---
 panel-plugin/pulseaudio-button.c |    9 ++++-----
 panel-plugin/pulseaudio-dialog.c |    9 ++++++---
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/panel-plugin/pulseaudio-button.c b/panel-plugin/pulseaudio-button.c
index 0399442..925b255 100644
--- a/panel-plugin/pulseaudio-button.c
+++ b/panel-plugin/pulseaudio-button.c
@@ -36,6 +36,7 @@
 
 #include <glib.h>
 #include <gtk/gtk.h>
+#include <libxfce4util/libxfce4util.h>
 #include <libxfce4panel/libxfce4panel.h>
 
 #include "pulseaudio-plugin.h"
@@ -230,7 +231,7 @@ pulseaudio_button_button_release (GtkWidget      *widget,
                                               pulseaudio_config_get_mixer_name (button->config),
                                               FALSE, FALSE, &error))
         {
-          xfce_dialog_show_error (NULL, error, ("Failed to execute command \"%s\"."),
+          xfce_dialog_show_error (NULL, error, _("Failed to execute command \"%s\"."),
                                   pulseaudio_config_get_mixer_name (button->config));
           g_error_free (error);
         }
@@ -334,11 +335,9 @@ 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));
+    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));
+    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/panel-plugin/pulseaudio-dialog.c b/panel-plugin/pulseaudio-dialog.c
index 5b4f8e4..0e43e2b 100644
--- a/panel-plugin/pulseaudio-dialog.c
+++ b/panel-plugin/pulseaudio-dialog.c
@@ -33,6 +33,9 @@
 #include <string.h>
 #endif
 
+#include <glib.h>
+#include <gtk/gtk.h>
+
 #include <libxfce4util/libxfce4util.h>
 #include <libxfce4ui/libxfce4ui.h>
 //#include <exo/exo.h>
@@ -125,7 +128,7 @@ pulseaudio_dialog_run_mixer (PulseaudioDialog *dialog,
                                           pulseaudio_config_get_mixer_name (dialog->config),
                                           FALSE, FALSE, &error))
     {
-      xfce_dialog_show_error (NULL, error, ("Failed to execute command \"%s\"."),
+      xfce_dialog_show_error (NULL, error, _("Failed to execute command \"%s\"."),
                               pulseaudio_config_get_mixer_name (dialog->config));
       g_error_free (error);
     }
@@ -186,7 +189,7 @@ pulseaudio_dialog_build (PulseaudioDialog *dialog)
     }
   else
     {
-      g_critical ("Faild to construct the builder: %s.",
+      g_critical ("Failed to construct the builder: %s.",
                   error->message);
       g_error_free (error);
     }
@@ -213,7 +216,7 @@ pulseaudio_dialog_help_button_clicked (PulseaudioDialog *dialog,
   result = g_spawn_command_line_async ("exo-open --launch WebBrowser " PLUGIN_WEBSITE, NULL);
 
   if (G_UNLIKELY (result == FALSE))
-    g_warning (_("Unable to open the following url: %s"), PLUGIN_WEBSITE);
+    g_warning ("Unable to open the following url: %s", PLUGIN_WEBSITE);
 
   //#endif
 }

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


More information about the Xfce4-commits mailing list