[gnome-nibbles] Make another "Player %d" string translatable



commit 915f7bae59f4710c1092c10711bd4276019d3367
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Thu Nov 19 21:55:49 2015 +0200

    Make another "Player %d" string translatable

 src/gnome-nibbles.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index f33a604..521b230 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -957,7 +957,9 @@ private class ControlsGrid : Gtk.Grid
         var color = Pango.Color ();
         color.parse (NibblesView.colorval_name (worm_props.color));
 
-        name_label.set_markup (@"<b><span font-family=\"Sans\" color=\"$(color.to_string ())\">Player 
$(worm_id + 1)</span></b>");
+        /* Translators: the player's number, e.g. "Player 1" or "Player 2". */
+        var player_id = _("Player %d").printf (worm_id + 1);
+        name_label.set_markup (@"<b><span font-family=\"Sans\" color=\"$(color.to_string 
())\">$(player_id)</span></b>");
 
         arrow_up.set_from_pixbuf (arrow.rotate_simple (Gdk.PixbufRotation.NONE));
         arrow_down.set_from_pixbuf (arrow.rotate_simple (Gdk.PixbufRotation.UPSIDEDOWN));


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