[chronojump] Better messages on sprint.cs
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Better messages on sprint.cs
- Date: Tue, 18 Apr 2017 15:22:20 +0000 (UTC)
commit f064a7f17f5d42897827d4f3c0679a4127865283
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Apr 18 17:10:07 2017 +0200
Better messages on sprint.cs
po/POTFILES.in | 1 +
src/gui/sprint.cs | 11 +++++------
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b6b31eb..ae939cf 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -91,6 +91,7 @@ src/gui/run.cs
src/gui/runType.cs
src/gui/server.cs
src/gui/session.cs
+src/gui/sprint.cs
src/gui/stats.cs
src/executeProcess.cs
src/json.cs
diff --git a/src/gui/sprint.cs b/src/gui/sprint.cs
index e6a90ab..d89987a 100644
--- a/src/gui/sprint.cs
+++ b/src/gui/sprint.cs
@@ -24,6 +24,7 @@ using Glade;
using System.Text; //StringBuilder
using System.Collections; //ArrayList
using System.Collections.Generic; //List<T>
+using Mono.Unix;
public partial class ChronoJumpWindow
@@ -216,21 +217,21 @@ public partial class ChronoJumpWindow
{
if(! GetSelectedSprint(treeview_runs_interval_sprint))
{
- new DialogMessage(Constants.MessageTypes.WARNING, "Error");
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("Error"));
return;
}
if(currentPersonSession.Weight == 0)
{
new DialogMessage(Constants.MessageTypes.WARNING,
- "Error, weight of the person cannot be 0");
+ Catalog.GetString("Error, weight of the person cannot be 0"));
return;
}
if(currentPersonSession.Height == 0)
{
new DialogMessage(Constants.MessageTypes.WARNING,
- "Error, height of the person cannot be 0");
+ Catalog.GetString("Error, height of the person cannot be 0"));
return;
}
@@ -244,7 +245,7 @@ public partial class ChronoJumpWindow
if(! success)
{
- new DialogMessage(Constants.MessageTypes.WARNING, "Problems on sprint R script.");
+ new DialogMessage(Constants.MessageTypes.WARNING, Catalog.GetString("This data does
not seem a sprint."));
return;
}
@@ -254,8 +255,6 @@ public partial class ChronoJumpWindow
UtilEncoder.GetSprintImage(),
image_sprint);
image_sprint.Sensitive = true;
-
- new DialogMessage(Constants.MessageTypes.INFO, "Ok");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]