[chronojump] Added some translatable strings



commit 7d4cf17e48d2454b9bd11b33eda7124d081409d1
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Dec 29 12:11:45 2021 +0100

    Added some translatable strings

 glade/app1.glade           | 46 ++++++++++++++++++++++++++--------------------
 src/gui/app1/runEncoder.cs |  4 ++--
 2 files changed, 28 insertions(+), 22 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 65b29193f..5cf9a364b 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -7827,7 +7827,7 @@ EncoderInertialCapture</property>
                                                             <property name="spacing">6</property>
                                                             <child>
                                                             <widget class="GtkRadioButton" 
id="radio_race_analyzer_capture_view_simple">
-                                                            <property name="label">Simple view</property>
+                                                            <property name="label" translatable="yes">Simple 
view</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
                                                             <property 
name="receives_default">False</property>
@@ -7843,7 +7843,7 @@ EncoderInertialCapture</property>
                                                             </child>
                                                             <child>
                                                             <widget class="GtkRadioButton" 
id="radio_race_analyzer_capture_view_complete">
-                                                            <property name="label">Complete view</property>
+                                                            <property name="label" 
translatable="yes">Complete view</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
                                                             <property 
name="receives_default">False</property>
@@ -8101,7 +8101,7 @@ EncoderInertialCapture</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
                                                             <property 
name="receives_default">False</property>
-                                                            <property name="tooltip">Current 
person</property>
+                                                            <property name="tooltip" 
translatable="yes">Current person</property>
                                                             <property name="active">True</property>
                                                             <property name="draw_indicator">False</property>
                                                             <signal name="toggled" 
handler="on_radio_contacts_graph_person_toggled" swapped="no"/>
@@ -8124,7 +8124,7 @@ EncoderInertialCapture</property>
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">True</property>
                                                             <property 
name="receives_default">False</property>
-                                                            <property name="tooltip">All persons</property>
+                                                            <property name="tooltip" translatable="yes">All 
persons</property>
                                                             <property name="active">True</property>
                                                             <property name="draw_indicator">False</property>
                                                             <property 
name="group">radio_contacts_graph_currentPerson</property>
@@ -16398,7 +16398,7 @@ Resisted race analyzer</property>
                                                             <widget class="GtkLabel" 
id="label_mode_contacts_runs_evolution">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Races / time</property>
+                                                            <property name="label" translatable="yes">Races 
/ time</property>
                                                             <property name="justify">center</property>
                                                             </widget>
                                                             <packing>
@@ -21474,7 +21474,7 @@ Concentric</property>
                                                             <widget class="GtkLabel" id="label619">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Export</property>
+                                                            <property name="label" 
translatable="yes">Export</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -24874,6 +24874,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -25716,7 +25719,7 @@ Concentric</property>
                                                             <widget class="GtkLabel" id="label185">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Export</property>
+                                                            <property name="label" 
translatable="yes">Export</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -28813,7 +28816,7 @@ Concentric</property>
                                                             <widget class="GtkLabel" id="label111">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">Export</property>
+                                                            <property name="label" 
translatable="yes">Export</property>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -31231,18 +31234,6 @@ 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>
@@ -31279,6 +31270,18 @@ 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>
@@ -40642,6 +40645,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index c40cd61a8..20897df56 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -1865,7 +1865,7 @@ public partial class ChronoJumpWindow
                genericWin.HideOnAccept = false;
 
                genericWin.uniqueID = ex.UniqueID;
-               genericWin.LabelSpinInt2 = "Segments size (m)";
+               genericWin.LabelSpinInt2 = Catalog.GetString("Segments size (m)");
                genericWin.SetSpin2Range(1, 30);
                genericWin.SetSpin2Value(ex.SegmentMeters);
 
@@ -1899,7 +1899,7 @@ public partial class ChronoJumpWindow
                genericWin.SetButtonAcceptLabel(Catalog.GetString("Add"));
                genericWin.HideOnAccept = false;
 
-               genericWin.LabelSpinInt2 = "Segments size (m)";
+               genericWin.LabelSpinInt2 = Catalog.GetString("Segments size (m)");
                genericWin.SetSpin2Range(1, 30);
                genericWin.SetSpin2Value(RunEncoderExercise.SegmentMetersDefault);
 


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