[chronojump] Better task print
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Better task print
- Date: Thu, 29 Jun 2017 05:01:42 +0000 (UTC)
commit 0b338d587dca07b6126100b1412b295efa0f18c9
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Jun 29 07:00:57 2017 +0200
Better task print
src/json.cs | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/src/json.cs b/src/json.cs
index cb87971..0fe22a8 100644
--- a/src/json.cs
+++ b/src/json.cs
@@ -887,24 +887,28 @@ public class Task
str += sep + "Repeticions = " + Nreps.ToString();
sep = "; ";
}
- if (Load != -1)
+ if (Laterality == "R" || Laterality == "L")
{
- str += sep + "Càrrega = " + Load.ToString();
+ string lateralityStr = Catalog.GetString("Right");
+ if (Laterality == "L")
+ lateralityStr = Catalog.GetString("Left");
+
+ str += sep + lateralityStr;
sep = "; ";
}
- if (Speed != -1)
+ if (Load != -1)
{
- str += sep + "Velocitat = " + Speed.ToString();
+ str += sep + "Càrrega = " + Load.ToString() + " Kg";
sep = "; ";
}
- if (PercentMaxSpeed != -1)
+ if (Speed != -1)
{
- str += sep + "Velocitat (%) = " + PercentMaxSpeed.ToString();
+ str += sep + "Velocitat = " + Speed.ToString() + " m/s";
sep = "; ";
}
- if (Laterality != "")
+ if (PercentMaxSpeed != -1)
{
- str += sep + "Lateralitat = " + Laterality;
+ str += sep + "Velocitat = " + PercentMaxSpeed.ToString() + " %";
sep = "; ";
}
if (Comment != "")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]