Commit dd4c8793 authored by Michael Catanzaro's avatar Michael Catanzaro

Allow translating colors in preferences dialog

https://bugzilla.gnome.org/show_bug.cgi?id=763905
parent b0136e4d
......@@ -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]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment