[chronojump/FS-TFT-Menu] Added 4 translatable strings on CairoRadial



commit a2e4992169c390f51902454dd6ef3a06caeffb38
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu May 5 19:28:41 2022 +0200

    Added 4 translatable strings on CairoRadial

 po/POTFILES.in          | 1 +
 src/gui/cairo/radial.cs | 8 ++++----
 src/gui/cairo/xy.cs     | 2 +-
 3 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ff1598732..0bb557c50 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -83,6 +83,7 @@ src/gui/app1/session/main.cs
 src/gui/app1/session/tagSessionSelect.cs
 src/gui/app1/shortcuts.cs
 src/gui/cairo/jumpsWeightFVProfile.cs
+src/gui/cairo/radial.cs
 src/gui/cairo/xy.cs
 src/gui/chronopic.cs
 src/gui/chronopicRegister.cs
diff --git a/src/gui/cairo/radial.cs b/src/gui/cairo/radial.cs
index 1cfd39748..e3a820d0f 100644
--- a/src/gui/cairo/radial.cs
+++ b/src/gui/cairo/radial.cs
@@ -144,13 +144,13 @@ public class CairoRadial : CairoGeneric
                                Convert.ToInt32(margin + graphWidth/2),
                                Convert.ToInt32(offsetV + margin + (.66 * graphHeight)),
                                0, textHeight,
-                               "Speed: " + Util.TrimDecimals(speed, 1) + " m/s",
+                               Catalog.GetString("Speed") + ": " + Util.TrimDecimals(speed, 1) + " m/s",
                                g, alignTypes.CENTER);
                printText(
                                Convert.ToInt32(margin + graphWidth/2),
                                Convert.ToInt32(offsetV + margin + (.66 * graphHeight)) + 20,
                                0, textHeight,
-                               "Distance: " + Util.TrimDecimals(distance, 3) + " m",
+                               Catalog.GetString("Distance") + ": " + Util.TrimDecimals(distance, 3) + " m",
                                g, alignTypes.CENTER);
 
                if(speedMax > speed)
@@ -171,13 +171,13 @@ public class CairoRadial : CairoGeneric
                                Convert.ToInt32(margin + graphWidth/2),
                                Convert.ToInt32(offsetV + margin + (.66 * graphHeight)),
                                0, textHeight,
-                               "Max Speed: " + Util.TrimDecimals(speedMax, 1) + " m/s",
+                               Catalog.GetString("Max Speed") + ": " + Util.TrimDecimals(speedMax, 1) + " 
m/s",
                                g, alignTypes.CENTER);
                printText(
                                Convert.ToInt32(margin + graphWidth/2),
                                Convert.ToInt32(offsetV + margin + (.66 * graphHeight)) + 20,
                                0, textHeight,
-                               "Distance: " + Util.TrimDecimals(distance, 3) + " m",
+                               Catalog.GetString("Distance") + ": " + Util.TrimDecimals(distance, 3) + " m",
                                g, alignTypes.CENTER);
 
                graphLineFromCenter(speedMax, gray);
diff --git a/src/gui/cairo/xy.cs b/src/gui/cairo/xy.cs
index bef710757..7de43f1e2 100644
--- a/src/gui/cairo/xy.cs
+++ b/src/gui/cairo/xy.cs
@@ -83,7 +83,7 @@ public abstract class CairoXY : CairoGeneric
 
        //translated strings
        //done to use Catalog just only on gui/cairo/xy.cs
-       //but jumpsWeightFVProfile has many messages, so done also there
+       //but jumpsWeightFVProfile has many messages, so done also there, and also on radial
        protected string needToExecuteJumpsStr = Catalog.GetString("Need to execute jumps:");
        protected string needToExecuteRunsStr = Catalog.GetString("Need to execute races:");
        protected string optimalFallHeightStr = Catalog.GetString("Optimal fall height");


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