[gbrainy/stable] Fixes Family relation English version of the Puzzle
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy/stable] Fixes Family relation English version of the Puzzle
- Date: Mon, 31 Oct 2011 12:32:17 +0000 (UTC)
commit a5063363037c3471f9030a201f695d2f5d63e69b
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]