[gnome-games] Use ngettext for the "points" string



commit 3b2bc409815d688c0f747c6dd8318f546367260e
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue Jun 8 15:57:19 2010 +1000

    Use ngettext for the "points" string

 swell-foop/src/Score.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/swell-foop/src/Score.js b/swell-foop/src/Score.js
index d520d31..bb9a736 100644
--- a/swell-foop/src/Score.js
+++ b/swell-foop/src/Score.js
@@ -106,7 +106,7 @@ ScoreView = new GType({
 		this.animate_final_score = function (points)
 		{
 			label.set_font_name("Bitstrem Vera Sans 50");
-			label.set_markup("<b>" + _("Game Over!") + "</b>\n" + points + " " + _("points"));
+			label.set_markup("<b>" + _("Game Over!") + "</b>\n" + Seed.sprintf(gettext.ngettext("%d point", "%d points", points), points));
 			label.set_line_alignment(Pango.Alignment.CENTER);
 			
 			main.stage.add_actor(this);



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