[gcompris] minor: added plural form for 2 strings.



commit e90958a94fcbbf28c43803f2bb21838165a85cfa
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat Oct 1 15:36:02 2011 +0200

    minor: added plural form for 2 strings.

 src/gcompris/gcompris.c      |    4 +++-
 src/target-activity/target.c |    6 ++++--
 2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/gcompris/gcompris.c b/src/gcompris/gcompris.c
index e5b563e..ec9a5eb 100644
--- a/src/gcompris/gcompris.c
+++ b/src/gcompris/gcompris.c
@@ -1501,7 +1501,9 @@ single_instance_check()
 
 	  if(current_time.tv_sec - seconds < GC_LOCK_LIMIT)
 	    {
-	      printf(_("GCompris won't start because the lock file is less than %d seconds old.\n"),
+	      printf(ngettext("GCompris won't start because the lock file is less than %d second old.\n",
+			      "GCompris won't start because the lock file is less than %d seconds old.\n",
+			      GC_LOCK_LIMIT),
 		     GC_LOCK_LIMIT);
 	      printf(_("The lock file is: %s\n"),
 		     lock_file);
diff --git a/src/target-activity/target.c b/src/target-activity/target.c
index a21dddc..1bf3b29 100644
--- a/src/target-activity/target.c
+++ b/src/target-activity/target.c
@@ -478,8 +478,10 @@ static GooCanvasItem *target_create_item(GooCanvasItem *parent)
 
   number_of_arrow = targetDefinition[gcomprisBoard->level-1].number_of_arrow;
 
-  tmpstr = g_strdup_printf(_("Distance to target = %d meters"),
-			   targetDefinition[gcomprisBoard->level-1].target_distance);
+  guint target_distance = targetDefinition[gcomprisBoard->level-1].target_distance;
+  tmpstr = g_strdup_printf(ngettext("Distance to target = %d meter",
+				    "Distance to target = %d meters", target_distance),
+			   target_distance);
   goo_canvas_text_new (boardRootItem,
 		       tmpstr,
 		       (double) 0,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]