[Xfce4-commits] <xfce4-diskperf-plugin:master> Make tooltip strings translatable.

Landry Breuil noreply at xfce.org
Fri May 4 17:00:02 CEST 2012


Updating branch refs/heads/master
         to 9b10edad209da997aa3791d77a085e285e534f75 (commit)
       from c4e20903ba66005a87448b6d2939318a979fd868 (commit)

commit 9b10edad209da997aa3791d77a085e285e534f75
Author: Harald Judt <h.judt at gmx.at>
Date:   Fri May 4 16:56:35 2012 +0200

    Make tooltip strings translatable.

 panel-plugin/main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index 9798062..66f29b6 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -177,7 +177,7 @@ static int DisplayPerf (struct diskperf_t *p_poPlugin)
     status = DevGetPerfData (&(poConf->st_rdev), &oPerf);
 #endif
     if (status == -1) {
-    snprintf (acToolTips, sizeof(acToolTips), "%s: Device statistics unavailable.",
+    snprintf (acToolTips, sizeof(acToolTips), _("%s: Device statistics unavailable."),
               poConf->acTitle);
     gtk_tooltips_set_tip (s_poToolTips, GTK_WIDGET (poMonitor->wEventBox),
 			  acToolTips, 0);
@@ -216,7 +216,7 @@ static int DisplayPerf (struct diskperf_t *p_poPlugin)
 	}
     }
 
-    snprintf (acToolTips, sizeof(acToolTips), "%s\n"
+    snprintf (acToolTips, sizeof(acToolTips), _("%s\n"
 	     "----------------\n"
 	     "I/O    (MiB/s)\n"
 	     "  Read :%3.2f\n"
@@ -227,7 +227,7 @@ static int DisplayPerf (struct diskperf_t *p_poPlugin)
 	     "  Read : %3d\n"
 	     "  Write : %3d\n"
 #endif
-	     "  Total : %3d",
+         "  Total : %3d"),
 	     poConf->acTitle,
 	     arPerf[R_DATA],
 	     arPerf[W_DATA],


More information about the Xfce4-commits mailing list