[gbrainy] Inject translation service in allgames



commit 806ee62f7191e5ef3f18e2eed7ce75c63b2097e3
Author: Jordi Mas <jmas softcatala org>
Date:   Mon Nov 14 22:37:53 2011 +0100

    Inject translation service in allgames

 src/Clients/WebForms/AllGames.aspx.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/WebForms/AllGames.aspx.cs b/src/Clients/WebForms/AllGames.aspx.cs
index 98a84e3..cd6c312 100644
--- a/src/Clients/WebForms/AllGames.aspx.cs
+++ b/src/Clients/WebForms/AllGames.aspx.cs
@@ -107,6 +107,7 @@ namespace gbrainy.Clients.WebForms
 			if (created_games == true)
 				return;
 			
+			TranslationsWeb translations = new TranslationsWeb ();
 			manager = Game.CreateManager ();
 			GameImage.CreateDirectory (images_dir);	
 			
@@ -124,11 +125,12 @@ namespace gbrainy.Clients.WebForms
 					continue;
 		
 				game = (gbrainy.Core.Main.Game) Activator.CreateInstance (games [i].TypeOf, true);
+				game.translations = translations;
 				game.Variant = games [i].Variant;
 				game.Begin ();								
 				string file = CreateImage (game, i);
 				
-				game_container.Add (new  GameContainer (game.Question, game.AnswerText, file, game.TipString,
+				game_container.Add (new GameContainer (game.Question, game.AnswerText, file, game.TipString,
 				                                        game_container.Count));
 			}
 			



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]