[gnome-2048/wip/piotrdrag/untranslated-strings] Mark missing strings for translation



commit 584d38cf47966ffe76212c28e1018559db5f6a2b
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Sun Sep 30 21:23:52 2018 +0200

    Mark missing strings for translation

 data/preferences.ui  |  4 ++--
 src/application.vala | 10 ++++------
 2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/data/preferences.ui b/data/preferences.ui
index 3c93ca0..5784191 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -64,8 +64,8 @@
                 <property name="can_focus">False</property>
                 <property name="active">0</property>
                 <items>
-                  <item id="0" translatable="yes">4 x 4</item>
-                  <item id="1" translatable="yes">5 x 5</item>
+                  <item id="0" translatable="yes">4 × 4</item>
+                  <item id="1" translatable="yes">5 × 5</item>
                 </items>
               </object>
               <packing>
diff --git a/src/application.vala b/src/application.vala
index 743d54f..3771e97 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -329,12 +329,10 @@ public class Application : Gtk.Application
 
     private void _create_scores ()
     {
-        // FIXME: The category names should be marked for translation and use the × character.
-        _grid4_cat = new Scores.Category ("grid4", "Grid 4 x 4");
-        _grid5_cat = new Scores.Category ("grid5", "Grid 5 x 5");
+        _grid4_cat = new Scores.Category ("grid4", _("Grid 4 × 4"));
+        _grid5_cat = new Scores.Category ("grid5", _("Grid 5 × 5"));
 
-        // FIXME: The second parameter should be _("Grid Size:") but we're in string freeze.
-        _scores_ctx = new Scores.Context ("gnome-2048", "", _window, category_request, 
Scores.Style.POINTS_GREATER_IS_BETTER);
+        _scores_ctx = new Scores.Context ("gnome-2048", _("Grid Size:"), _window, category_request, 
Scores.Style.POINTS_GREATER_IS_BETTER);
     }
 
     /*\
@@ -382,7 +380,7 @@ public class Application : Gtk.Application
     {
         string [] authors = { "Juan R. García Blanco", "Arnaud Bonatti" };
         show_about_dialog (_window /* get_active_window () */,
-                           "program-name", "2048" /* TODO _("2048") */,
+                           "program-name", _("2048")
                            "version", VERSION,
                            "comments", _("A clone of 2048 for GNOME"),
                            "copyright", _("Copyright \xc2\xa9 2014-2015 – Juan R. García Blanco\nCopyright 
\xc2\xa9 2016 – Arnaud Bonatti"),


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