[gnome-mahjongg] Mark Easy map name as translatable



commit 6b84b2c7151279705dc758bd928bf50b57a29027
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Sep 6 08:08:37 2013 -0500

    Mark Easy map name as translatable
    
    We additionally need to store only the untranslated name in gsettings,
    as we do with the non-builtin maps.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704606

 data/translatable_game_names.h |    1 +
 src/map.vala                   |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/translatable_game_names.h b/data/translatable_game_names.h
index 223031d..8b7fa0e 100644
--- a/data/translatable_game_names.h
+++ b/data/translatable_game_names.h
@@ -3,6 +3,7 @@
  * Add this file to your project's POTFILES.in.
  * DO NOT compile it as part of your application.
  */
+NC_("mahjongg map name", "Easy")
 NC_("mahjongg map name", "The Ziggurat")
 NC_("mahjongg map name", "Four Bridges")
 NC_("mahjongg map name", "Cloud")
diff --git a/src/map.vala b/src/map.vala
index 52ece91..8b4ad58 100644
--- a/src/map.vala
+++ b/src/map.vala
@@ -48,7 +48,7 @@ public class Map
 
     public Map.test ()
     {
-        name = dpgettext2 (null, "mahjongg map name", "Test");
+        name = "Test";
         score_name = "test";
         slots.append (new Slot (0, 0, 0));
         slots.append (new Slot (2, 0, 0));
@@ -62,7 +62,7 @@ public class Map
 
     public Map.builtin ()
     {
-        name = dpgettext2 (null, "mahjongg map name", "Easy");
+        name = "Easy";
         score_name = "easy";
         slots.append (new Slot (13, 7, 4));
         slots.append (new Slot (12, 8, 3));


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