[gnome-nibbles] Allow translating colors in preferences dialog



commit dd4c87932b3d160960f17727c2287294e8391bda
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Mar 19 10:27:30 2016 -0500

    Allow translating colors in preferences dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763905

 src/nibbles-view.vala |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/nibbles-view.vala b/src/nibbles-view.vala
index 13af160..abad817 100644
--- a/src/nibbles-view.vala
+++ b/src/nibbles-view.vala
@@ -153,12 +153,12 @@ public class NibblesView : GtkClutter.Embed
     public const int NUM_COLORS = 6;
     public static string[] color_lookup =
     {
-      "red",
-      "green",
-      "blue",
-      "yellow",
-      "cyan",
-      "purple"
+      N_("red"),
+      N_("green"),
+      N_("blue"),
+      N_("yellow"),
+      N_("cyan"),
+      N_("purple")
     };
 
     public NibblesView (NibblesGame game)
@@ -909,6 +909,6 @@ public class NibblesView : GtkClutter.Embed
 
     public static string colorval_name (int colorval)
     {
-        return color_lookup[colorval];
+        return _(color_lookup[colorval]);
     }
 }


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