[gbrainy] GameXmlGetString.cs back in the repository when Damned lies can read translations
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] GameXmlGetString.cs back in the repository when Damned lies can read translations
- Date: Tue, 28 May 2019 20:05:21 +0000 (UTC)
commit f4221d33ca572ea6efabca823c86c387cbcc9a4a
Author: Jordi Mas <jmas softcatala org>
Date: Tue May 28 22:01:25 2019 +0200
GameXmlGetString.cs back in the repository when Damned lies can read translations
po/POTFILES.in | 1 +
tools/GameXmlGetString.cs | 87 +++++++++++++++++++++++++++++++++++++++++++++++
tools/Makefile.am | 2 --
3 files changed, 88 insertions(+), 2 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index e0e3adcb..6987b4ae 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -116,3 +116,4 @@ src/Games/Memory/MemoryFiguresNumbers.cs
src/Games/Memory/MemoryIndications.cs
src/Games/Memory/MemoryNumbers.cs
src/Games/Memory/MemoryWords.cs
+tools/GameXmlGetString.cs
diff --git a/tools/GameXmlGetString.cs b/tools/GameXmlGetString.cs
new file mode 100644
index 00000000..672cf4d7
--- /dev/null
+++ b/tools/GameXmlGetString.cs
@@ -0,0 +1,87 @@
+/*
+ * Copyright (C) 2010 Jordi Mas i Hernà ndez <jmas softcatala org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+using System;
+using Mono.Unix;
+
+// This is an auto-generated file GameXmlToGetString tool. Do not edit manually
+public class GameXmlStringFactory
+{
+ void LoadStrings ()
+ {
+ int variable = 0;
+ Catalog.GetPluralString ("How many degrees rotates the minute hand of a clock in 2 hours
[num] minute?",
+ "How many degrees rotates the minute hand of a clock in 2 hours [num] minutes?",
+ variable);
+
+ Catalog.GetPluralString ("John is 46 years old. His son is [difference] year younger than
half of John's age. How old is John's son?",
+ "John is 46 years old. His son is [difference] years younger than half of John's age.
How old is John's son?",
+ variable);
+
+ Catalog.GetPluralString ("John's age is nowadays 2 times his son's age. [ago] year ago, John
was [proportion] times as old as his son. How old is John's son nowadays?",
+ "John's age is nowadays 2 times his son's age. [ago] years ago, John was [proportion]
times as old as his son. How old is John's son nowadays?",
+ variable);
+
+ Catalog.GetPluralString ("John's age (variable x) is nowadays 2 times his son's age (variable
y), that is x = 2y, and [ago] year ago, John was [proportion] times as old as his son: x - [ago] = (y -
[ago]) * [proportion].",
+ "John's age (variable x) is nowadays 2 times his son's age (variable y), that is x =
2y, and [ago] years ago, John was [proportion] times as old as his son: x - [ago] = (y - [ago]) *
[proportion].",
+ variable);
+
+ Catalog.GetPluralString ("A file is protected by a password formed by a [digits] digit number
represented in base 10 (ranging from 0 to 9). How many different passwords can you have?",
+ "A file is protected by a password formed by a [digits] digits number represented in
base 10 (ranging from 0 to 9). How many different passwords can you have?",
+ variable);
+
+ Catalog.GetPluralString ("A file is protected by a password formed by a [digits] digit
represented in base 8 (ranging from 0 to 7). How many different passwords can you have?",
+ "A file is protected by a password formed by a [digits] digits represented in base 8
(ranging from 0 to 7). How many different passwords can you have?",
+ variable);
+
+ Catalog.GetPluralString ("There is [games] tennis game played simultaneously. How many
different forecasts are possible?",
+ "There are [games] tennis games played simultaneously. How many different forecasts
are possible?",
+ variable);
+
+ Catalog.GetPluralString ("In a tennis tournament, in every match a player is eliminated after
losing to a single opponent. How many matches does it take to determine the winner of a tennis tournament
that starts with [players] player?",
+ "In a tennis tournament, in every match a player is eliminated after losing to a
single opponent. How many matches does it take to determine the winner of a tennis tournament that starts
with [players] players?",
+ variable);
+
+ Catalog.GetPluralString ("You have [money] monetary unit in your bank account at 10% interest
compounded annually. How much money will you have at the end of 2 years?",
+ "You have [money] monetary units in your bank account at 10% interest compounded
annually. How much money will you have at the end of 2 years?",
+ variable);
+
+ Catalog.GetPluralString ("In a horse race there are people and horses. You count [eyes] eye
and [legs] leg. How many horses are present?",
+ "In a horse race there are people and horses. You count [eyes] eyes and [legs] legs.
How many horses are present?",
+ variable);
+
+ Catalog.GetPluralString ("John cleans at the speed of 1 / [john_time] per hour and his friend
at 1 / [friend]. Together they will need [answer_a] hour.",
+ "John cleans at the speed of 1 / [john_time] per hour and his friend at 1 / [friend].
Together they will need [answer_a] hours.",
+ variable);
+
+ Catalog.GetPluralString ("John needs [john_time] hour to clean a warehouse and his friend
needs half as many. How many hours would it take them to clean up the warehouse if they worked together?
[option_answers]",
+ "John needs [john_time] hours to clean a warehouse and his friend needs half as many.
How many hours would it take them to clean up the warehouse if they worked together? [option_answers]",
+ variable);
+
+ Catalog.GetPluralString ("John needs [john_time] hour to clean a warehouse and his friend
needs twice as many. How many hours would it take them to clean up the warehouse if they worked together?
[option_answers]",
+ "John needs [john_time] hours to clean a warehouse and his friend needs twice as
many. How many hours would it take them to clean up the warehouse if they worked together? [option_answers]",
+ variable);
+
+ Catalog.GetPluralString ("You have two trucks that have a total weight of [add] unit. If the
lighter truck weights 15 units less that half of the weight of the heavier truck, what is the weight of the
lighter truck? [option_answers]",
+ "You have two trucks that have a total weight of [add] units. If the lighter truck
weights 15 units less that half of the weight of the heavier truck, what is the weight of the lighter truck?
[option_answers]",
+ variable);
+
+
+ }
+}
+
+
diff --git a/tools/Makefile.am b/tools/Makefile.am
index a273ca82..9dfe9361 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -36,8 +36,6 @@ GameXmlToAssembly.exe: $(GAMEXMLTOASSEMBLY_CSFILES) ../data/games.xml GameTempla
$(CSC) -target:winexe -out:$@ $(EXTRAFLAGS) $(GAMEXMLTOASSEMBLY_CSFILES) $(ASSEMBLIES)
export MONO_PATH=../src && $(MONO) $@
-GameXmlGetString.cs: GameXmlToGetString.exe
-
all: GameXmlToGetString.exe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]