[tracker] Replace string concatenation by printf syntax (Fixes #648892)
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Replace string concatenation by printf syntax (Fixes #648892)
- Date: Fri, 29 Apr 2011 16:48:36 +0000 (UTC)
commit bbc6c701dcc848387fc22156f3f2f8e76c9e869f
Author: Claude Paroz <claude 2xlibre net>
Date: Fri Apr 29 18:47:46 2011 +0200
Replace string concatenation by printf syntax (Fixes #648892)
src/tracker-control/tracker-control-status.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-status.c b/src/tracker-control/tracker-control-status.c
index 37582cf..f132eb9 100644
--- a/src/tracker-control/tracker-control-status.c
+++ b/src/tracker-control/tracker-control-status.c
@@ -193,10 +193,8 @@ miner_print_state (TrackerMinerManager *manager,
if (remaining_time > 0) {
gchar *seconds_str = tracker_seconds_to_string (remaining_time, TRUE);
- remaining_time_str = g_strconcat (seconds_str,
- " ",
- _("remaining"),
- NULL);
+ /* Translators: %s is a time string */
+ remaining_time_str = g_strdup_printf (_("%s remaining"), seconds_str);
g_free (seconds_str);
} else {
remaining_time_str = g_strdup (_("unknown time left"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]