[chronojump] Added two strings on grpah.R to be translated from C# code



commit ec7f41db5289de5c4c058cac3fb55fe7fe2dc397
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jan 9 13:51:08 2018 +0100

    Added two strings on grpah.R to be translated from C# code

 encoder/graph.R  |    8 ++++----
 src/constants.cs |    8 ++++++--
 2 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index 65a9b53..abfdf31 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -1795,12 +1795,12 @@ paintCrossVariables <- function (paf, varX, varY, option,
                                                 if(title != "")
                                                         title = paste(title, " (pmax = ", round(pmax,1), " W 
with ", 
                                                                       round(xmax,1), " ", massUnit, sep="")
-                                                text(xmax, pmax, label = paste("Pmax=", round(pmax,1), 
"W¹"), pos = 3, col = "red")
+                                                text(xmax, pmax, label = paste("Pmax=", round(pmax,1), 
"W*"), pos = 3, col = "red")
                                                 legend(x = par("usr")[2], y = par("usr")[4]-(par("usr")[4] - 
par("usr")[3])*0.1, 
                                                        legend = c(paste("Pmax = ", round(pmax,1), "W", 
sep=""),
                                                                   paste("Load: ", round(xmax,1), massUnit, 
sep = "")),
                                                        xjust = 1, text.col = c("red", "black"), cex = 1.3)
-                                                mtext(text = "¹Mean power parabole using the Power-Load 
data", side = 4, line = 1, cex = 1.3)
+                                                mtext(text = paste("*", translateToPrint("Mean power 
parabole using the Power-Load data"), sep=""), side = 4, line = 1, cex = 1.3)
                                         }
                                 }
                                 else {
@@ -1854,9 +1854,9 @@ paintCrossVariables <- function (paf, varX, varY, option,
                                                 plot(xpower,ypower, type="l", axes=F, col = "red", xlab="", 
ylab="")
                                                 axis(4)
                                                 mtext(side = 4, line = 3, "Power(W)", col = "red")
-                                                mtext(side = 4, line = 4, "¹Maximum mean power using the F-V 
profile")
+                                                mtext(side = 4, line = 4, paste("*", 
translateToPrint("Maximum mean power using the F-V profile"), sep=""))
                                                 points(x = V0 / 2, y = V0 * F0 / 4, col = "red")
-                                                text(x = V0 / 2, y = V0 * F0 / 4, labels = paste("Pmax = 
",round(F0 * V0 / 4, digits = 2),"W¹", sep =""), pos = 3, col = "red")
+                                                text(x = V0 / 2, y = V0 * F0 / 4, labels = paste("Pmax = 
",round(F0 * V0 / 4, digits = 2),"W*", sep =""), pos = 3, col = "red")
                                                 legend(x = V0*1.04, y = V0 * F0 * 0.2, xjust = 1, yjust = 
0.1,
                                                        text.col = c("Blue", "darkgreen", "red", "black"), 
cex = 1.3,
                                                        legend = c(paste("F0 = ", round(F0, digits = 0), "N", 
sep = ""),
diff --git a/src/constants.cs b/src/constants.cs
index 9cb929f..48876d9 100644
--- a/src/constants.cs
+++ b/src/constants.cs
@@ -968,7 +968,9 @@ public class Constants
                "Sorry, no repetitions matched your criteria.",
                "Need at least three jumps",
                "Laterality", "RL", "R", "L",
-               "Inertia M."
+               "Inertia M.",
+               "Maximum mean power using the F-V profile",
+               "Mean power parabole using the Power-Load data"
        };
        /*
         * written here in order to be translated
@@ -1015,6 +1017,8 @@ public class Constants
                Catalog.GetString("Sorry, no repetitions matched your criteria."),
                Catalog.GetString("Need at least three jumps"),
                Catalog.GetString("Laterality"), Catalog.GetString("RL"), Catalog.GetString("R"), 
Catalog.GetString("L"),
-               Catalog.GetString("Inertia M.")
+               Catalog.GetString("Inertia M."),
+               Catalog.GetString("Maximum mean power using the F-V profile"),
+               Catalog.GetString("Mean power parabole using the Power-Load data")
        };
 }


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