[chronojump] Menu 2.2.2 labels translatable



commit 9c74af4c8797daeda693a5e2dedf1bfdd6dc2eff
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jun 2 18:35:48 2022 +0200

    Menu 2.2.2 labels translatable

 glade/app1.glade           | 45 +++++++++++++++++++++++++++------------------
 src/gui/app1/chronojump.cs |  6 +++---
 2 files changed, 30 insertions(+), 21 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 58cb039ce..2a26079ed 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -3022,7 +3022,7 @@
                                                             <widget class="GtkLabel" id="label664">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Isometric</property>
+                                                            <property name="label" 
translatable="yes">Isometric</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -3075,7 +3075,7 @@
                                                             <widget class="GtkLabel" id="label665">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Elastic</property>
+                                                            <property name="label" 
translatable="yes">Elastic</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -3128,7 +3128,7 @@
                                                             <widget class="GtkLabel" id="label667">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Weights</property>
+                                                            <property name="label" 
translatable="yes">Weights</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -3181,7 +3181,7 @@
                                                             <widget class="GtkLabel" id="label668">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Inertial</property>
+                                                            <property name="label" 
translatable="yes">Inertial</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -3452,7 +3452,7 @@
                                                             <widget class="GtkLabel" 
id="label_start_selector_races2">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">WICHRO or cabled 
photocells</property>
+                                                            <property name="label" translatable="yes">WICHRO 
or cabled photocells</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">True</property>
@@ -3618,7 +3618,7 @@
                                                             <widget class="GtkLabel" 
id="label_start_selector_races3">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Encoder</property>
+                                                            <property name="label" 
translatable="yes">Encoder</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -25867,6 +25867,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -32273,6 +32276,18 @@ Concentric</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">6</property>
                                                             <child>
+                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="pack_type">end</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_capturing">
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">4</property>
@@ -32309,18 +32324,6 @@ Concentric</property>
                                                             </packing>
                                                             </child>
                                                             <child>
-                                                            <widget class="GtkLabel" 
id="label_video_encoder_tests_will_be_filmed">
-                                                            <property name="can_focus">False</property>
-                                                            <property name="label" translatable="yes">Tests 
will be filmed</property>
-                                                            </widget>
-                                                            <packing>
-                                                            <property name="expand">False</property>
-                                                            <property name="fill">False</property>
-                                                            <property name="pack_type">end</property>
-                                                            <property name="position">0</property>
-                                                            </packing>
-                                                            </child>
-                                                            <child>
                                                             <widget class="GtkHBox" 
id="hbox_video_encoder_no_capturing">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -41703,6 +41706,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -49725,6 +49731,9 @@ Since Chronojump 2.1.3, backups contain the complete data.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             </child>
                                                             </widget>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 56072f39a..d39ff9d98 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -4467,16 +4467,16 @@ public partial class ChronoJumpWindow
                }
 
                // if we already have clicked before, execute go!
-               if (canBeDoubleClick && label_selector_menu_2_2_2_title.Text == title) //note the "<b></b>" 
are not on .Text
+               if (canBeDoubleClick && label_selector_menu_2_2_2_title.Text == Catalog.GetString(title)) 
//note the "<b></b>" are not on .Text
                        on_button_menu_2_2_2_go_clicked (new object (), new EventArgs ());
                else {
                        if (title != "")
                        {
-                               label_selector_menu_2_2_2_title.Text = "<b>" + title + "</b>";
+                               label_selector_menu_2_2_2_title.Text = "<b>" + Catalog.GetString(title) + 
"</b>";
                                label_selector_menu_2_2_2_title.UseMarkup = true;
                        }
                        if (desc != "")
-                               label_selector_menu_2_2_2_desc.Text = desc;
+                               label_selector_menu_2_2_2_desc.Text = Catalog.GetString(desc);
                }
        }
 


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