[chronojump] Added to po messages
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Added to po messages
- Date: Sat, 10 Jun 2017 15:12:06 +0000 (UTC)
commit 2401c9687b9a209d7c87b4066409c6e708156433
Author: Xavier de Blas <xaviblas gmail com>
Date: Sat Jun 10 12:11:36 2017 -0300
Added to po messages
po/POTFILES.in | 1 +
src/jumpsProfile.cs | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9f3eae3..c282ee1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -98,6 +98,7 @@ src/gui/sprint.cs
src/gui/stats.cs
src/executeProcess.cs
src/json.cs
+src/jumpsProfile.cs
src/jumpType.cs
src/Mini/chronojump_mini.cs
src/pulseType.cs
diff --git a/src/jumpsProfile.cs b/src/jumpsProfile.cs
index 0dddc89..1fd091d 100644
--- a/src/jumpsProfile.cs
+++ b/src/jumpsProfile.cs
@@ -21,6 +21,7 @@
using System;
using System.Collections.Generic; //List
using Cairo;
+using Mono.Unix;
public class JumpsProfileIndex
{
@@ -72,9 +73,9 @@ public class JumpsProfileIndex
Result = calculateIndex(type, higher, lower, dja);
if(errorCode == ErrorCodes.NEEDJUMP)
- ErrorMessage = "Needs to execute jump/s";
+ ErrorMessage = Catalog.GetString("Need to execute jump/s");
else if(errorCode == ErrorCodes.NEGATIVE)
- ErrorMessage = "Bad execution " + jumpLowerName + " is higher than " +
jumpHigherName;
+ ErrorMessage = string.Format(Catalog.GetString("Bad execution: {0} is higher than
{1}"), jumpLowerName, jumpHigherName);
}
private double calculateIndex (Types type, double higher, double lower, double dja)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]