[gbrainy] Fixes bugzilla #636789
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Fixes bugzilla #636789
- Date: Sat, 20 Aug 2011 22:10:27 +0000 (UTC)
commit f651c14775d82c4c81e29040e6bb754b78230472
Author: Jordi Mas <jmas softcatala org>
Date: Sun Aug 21 00:10:08 2011 +0200
Fixes bugzilla #636789
src/Games/Logic/PuzzleNumericRelation.cs | 1 +
src/Games/Logic/PuzzlePercentage.cs | 10 ++++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/Games/Logic/PuzzleNumericRelation.cs b/src/Games/Logic/PuzzleNumericRelation.cs
index f021693..10542a0 100644
--- a/src/Games/Logic/PuzzleNumericRelation.cs
+++ b/src/Games/Logic/PuzzleNumericRelation.cs
@@ -58,6 +58,7 @@ namespace gbrainy.Games.Logic
get {
switch (formula) {
case Formula.AllAdding:
+ // Translators: {0} is always replaced by the number 3
return String.Format (ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Every group of {0} numbers sums exactly {1}."), group_size, sum_value);
case Formula.ThirdMultiply:
return ServiceLocator.Instance.GetService <ITranslations> ().GetString ("Divide the sequence in groups of three numbers. Every third number is calculated by multiplying by the two previous ones.");
diff --git a/src/Games/Logic/PuzzlePercentage.cs b/src/Games/Logic/PuzzlePercentage.cs
index e1b3dfd..9bb9877 100644
--- a/src/Games/Logic/PuzzlePercentage.cs
+++ b/src/Games/Logic/PuzzlePercentage.cs
@@ -71,7 +71,10 @@ namespace gbrainy.Games.Logic
} while (paid != Math.Truncate (paid));
question = String.Format (
- ServiceLocator.Instance.GetService <ITranslations> ().GetString ("After getting {0}% discount you have paid {1} monetary units for a TV set. What was the original price of the TV set?"),
+ ServiceLocator.Instance.GetService <ITranslations> ().GetPluralString (
+ "After getting {0}% discount you have paid {1} monetary unit for a TV set. What was the original price of the TV set?",
+ "After getting {0}% discount you have paid {1} monetary units for a TV set. What was the original price of the TV set?",
+ (int) paid),
discount, paid);
ans = (int)price;
svg_image = "tv_set.svg";
@@ -89,7 +92,10 @@ namespace gbrainy.Games.Logic
question = String.Format (
- ServiceLocator.Instance.GetService <ITranslations> ().GetString ("John's shop had sales of {0} monetary units. This was an increase of {1}% over last month. What were last month sales?"),
+ ServiceLocator.Instance.GetService <ITranslations> ().GetPluralString (
+ "John's shop had sales of {0} monetary unit. This was an increase of {1}% over last month. What were last month sales?",
+ "John's shop had sales of {0} monetary units. This was an increase of {1}% over last month. What were last month sales?",
+ (int) sales),
sales, increase);
ans = (int) previous;
svg_image = "shop.svg";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]