[chronojump] Fixes warnings - Moved two Catalog.GetString() calls to constants.cs.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixes warnings - Moved two Catalog.GetString() calls to constants.cs.
- Date: Mon, 17 Oct 2016 09:15:19 +0000 (UTC)
commit 93fe82cf28a668097079ce10aa1c60ce71291825
Author: Carles Pina i Estany <carles pina cat>
Date: Mon Oct 17 11:08:52 2016 +0200
Fixes warnings - Moved two Catalog.GetString() calls to constants.cs.
src/constants.cs | 5 +++++
src/execute/event.cs | 2 --
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/constants.cs b/src/constants.cs
index ae7d917..09f6824 100644
--- a/src/constants.cs
+++ b/src/constants.cs
@@ -153,6 +153,11 @@ public class Constants
private static string dumbVariableForTranslatingLevelSedentary =
Catalog.GetString("Sedentary/Occasional practice");
private static string dumbVariableForTranslatingExerciseTranslatedBenchPress =
Catalog.GetString("Bench press");
private static string dumbVariableForTranslatingExerciseTranslatedSquat = Catalog.GetString("Squat");
+
+ // The next two variables got moved from src/execute/event.cs from EventExecute::runATouchPlatform()
and
+ // EventExecute::RunANoStrides() and I'm not sure that are used. Left it here for now to avoid any
regressions.
+ private static string dumbVariableForTranslatingWarningMessageTouchAtend = Catalog.GetString("Always
remember to touch platform at ending. If you don't do it, Chronojump will crash at next execution.");
+ private static string dumbVariableForTranslatingWarningMessageRunAnalysisNotValid =
Catalog.GetString("This Run Analysis is not valid because there are no strides.");
#pragma warning restore 0414
//tests types
diff --git a/src/execute/event.cs b/src/execute/event.cs
index c1d835a..7293295 100644
--- a/src/execute/event.cs
+++ b/src/execute/event.cs
@@ -352,12 +352,10 @@ public class EventExecute
}
private void runATouchPlatform() {
- string message = Catalog.GetString("Always remember to touch platform at ending. If you don't
do it, Chronojump will crash at next execution.");
UtilGtk.PrintLabelWithTooltip(egd.Label_message, feedbackMessage);
}
public void RunANoStrides() {
- string message = Catalog.GetString("This Run Analysis is not valid because there are no
strides.");
UtilGtk.PrintLabelWithTooltip(egd.Label_message, feedbackMessage);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]