Example #1
0
 public static void LoadLocalizationXmls(string basepath)
 {
     LocalizedTextManager.LanguageIds.Clear();
     LocalizedTextManager.LanguageIds.Add("English");
     string[] directories = Directory.GetDirectories(System.IO.Path.Combine(basepath, "Modules", "TournamentsXPanded"), "*", SearchOption.TopDirectoryOnly);
     for (int i = 0; i < (int)directories.Length; i++)
     {
         string str = String.Concat(directories[i], "/Languages");
         if (Directory.Exists(str))
         {
             string[] files = Directory.GetFiles(str, "*.xml", SearchOption.AllDirectories);
             for (int j = 0; j < (int)files.Length; j++)
             {
                 LocalizedTextManager.LoadLocalizedTexts(files[j]);
             }
         }
     }
 }