[gnome-mahjongg] translation: fixed missing translation hints



commit d745db959ae6c0010b6fb740715a7e83df9678a0
Author: Günther Wagner <info gunibert de>
Date:   Sun Feb 6 10:45:48 2022 +0100

    translation: fixed missing translation hints

 data/ui/preferences.ui  | 6 +++---
 data/ui/score-dialog.ui | 2 +-
 po/POTFILES.in          | 2 ++
 src/window.vala         | 5 +++--
 4 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/data/ui/preferences.ui b/data/ui/preferences.ui
index cece868..42856b4 100644
--- a/data/ui/preferences.ui
+++ b/data/ui/preferences.ui
@@ -10,17 +10,17 @@
           <object class="AdwPreferencesGroup">
             <child>
               <object class="AdwComboRow" id="themes_row">
-                <property name="title">Theme</property>
+                <property name="title" translatable="yes">Theme</property>
               </object>
             </child>
             <child>
               <object class="AdwComboRow" id="layout_row">
-                <property name="title">Layout</property>
+                <property name="title" translatable="yes">Layout</property>
               </object>
             </child>
             <child>
               <object class="AdwActionRow">
-                <property name="title">Background color</property>
+                <property name="title" translatable="yes">Background color</property>
                 <child>
                   <object class="GtkColorButton" id="background_btn">
                     <property name="valign">center</property>
diff --git a/data/ui/score-dialog.ui b/data/ui/score-dialog.ui
index 9938a97..74c3f38 100644
--- a/data/ui/score-dialog.ui
+++ b/data/ui/score-dialog.ui
@@ -17,7 +17,7 @@
             <property name="spacing">6</property>
             <child>
               <object class="GtkLabel">
-                <property name="label">Layout: </property>
+                <property name="label" translatable="yes">Layout: </property>
               </object>
             </child>
             <child>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 6d5ddee..96f567e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -5,6 +5,8 @@ data/org.gnome.Mahjongg.desktop.in
 data/org.gnome.Mahjongg.gschema.xml
 data/translatable_game_names.h
 data/help-overlay.ui
+data/ui/preferences.ui
+data/ui/score-dialog.ui
 data/ui/window.ui
 src/game.vala
 src/game-view.vala
diff --git a/src/window.vala b/src/window.vala
index 235c645..acf703e 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -21,10 +21,11 @@ public class MahjonggWindow : Gtk.ApplicationWindow {
 
     public void set_subtitle (GameView game_view, string clock)
     {
+        string moves_left = _("Moves Left:");
         if (game_view.game.move_number != 1)
-            titlewidget.set_subtitle ("Moves Left: %2u   %s".printf (game_view.game.moves_left, clock));
+            titlewidget.set_subtitle (("%s %2u   %s").printf (moves_left, game_view.game.moves_left, clock));
         else
-            titlewidget.set_subtitle ("Moves Left: 0   %s".printf (clock));
+            titlewidget.set_subtitle (("%s 0   %s").printf (moves_left, clock));
     }
 
     public void pause ()


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