[gnome-nibbles] Allow translating worm name in scoreboard



commit ba35f77bad2f451b7921012f84f6ef39ff7774ea
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Mar 19 10:15:28 2016 -0500

    Allow translating worm name in scoreboard
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763906

 src/gnome-nibbles.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 8e7a870..f4bd2af 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -1071,7 +1071,10 @@ private class Scoreboard : Gtk.Box
         var color = Pango.Color ();
         color.parse (color_name);
 
-        var box = new PlayerScoreBox (@"Worm $(worm.id + 1)", color, worm.score, worm.lives, life_pixbuf);
+        /* FIXME: Consider changing this to "Worm %d"
+         * It's set to "Player %d" for now to avoid a string change for 3.20.
+         */
+        var box = new PlayerScoreBox (_("Player %d").printf (worm.id + 1), color, worm.score, worm.lives, 
life_pixbuf);
         boxes.set (box, worm);
         add (box);
     }


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