[longomatch] Update UI language based on the preferences



commit a51f265bcb694b47d7ab752a0b8ac64de29463db
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Jun 17 17:56:27 2013 +0200

    Update UI language based on the preferences

 LongoMatch.Services/Services/Core.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index 132a000..f7d0435 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -49,14 +49,19 @@ namespace LongoMatch.Services
 
                        SetupBaseDir();
 
-                       /* Init internationalization support */
-                       
Catalog.Init(Constants.SOFTWARE_NAME.ToLower(),Config.RelativeToPrefix("share/locale"));
-
                        /* Check default folders */
                        CheckDirs();
                        
                        /* Load user config */
                        Config.Load();
+                       
+                       if (Config.Lang != null) {
+                               Environment.SetEnvironmentVariable ("LANG", Config.Lang);
+                       }
+                       
+                       /* Init internationalization support */
+                       
Catalog.Init(Constants.SOFTWARE_NAME.ToLower(),Config.RelativeToPrefix("share/locale"));
+
                }
 
                public static void Start(IGUIToolkit guiToolkit, IMultimediaToolkit multimediaToolkit) {


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