[gbrainy] Fixes Family relation English version of the Puzzle
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Fixes Family relation English version of the Puzzle
- Date: Wed, 2 Nov 2011 08:46:05 +0000 (UTC)
commit 87f1288a54c92836aae37f8be1af028c9219ccbe
Author: Jordi Mas <jmas softcatala org>
Date: Mon Oct 31 13:32:29 2011 +0100
Fixes Family relation English version of the Puzzle
src/Core/Main/Xml/GameXmlFactory.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Main/Xml/GameXmlFactory.cs b/src/Core/Main/Xml/GameXmlFactory.cs
index dcf619b..57635a9 100644
--- a/src/Core/Main/Xml/GameXmlFactory.cs
+++ b/src/Core/Main/Xml/GameXmlFactory.cs
@@ -24,6 +24,8 @@ using System.Collections.Generic;
using System.Globalization;
using System.Text;
+using gbrainy.Core.Libraries;
+
namespace gbrainy.Core.Main.Xml
{
public class GamesXmlFactory
@@ -72,6 +74,11 @@ namespace gbrainy.Core.Main.Xml
TextDrawingObject drawing_object = (TextDrawingObject) last_drawing_object;
// GetText processes msgctxt as msgctxt + context_glue + text to retrieve them
drawing_object.Text = last_context + CONTEXT_GLUE + text;
+
+ // If the string does not exits, return regular English string without context
+ if (GetText.StringExists (drawing_object.Text) == false)
+ drawing_object.Text = text;
+
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]