예제 #1
0
 private LocaleProvider(string localeFolder)
 {
     Instance           = this;
     languageDictionary = LocaleParser.ParseLangFiles(localeFolder);
 }
예제 #2
0
 /// <summary>
 /// Initialize the localization library by providing the data folder
 /// </summary>
 /// <param name="localeFolder">the folder containing all the localization files</param>
 /// <returns>An instance of the <see cref="LocaleProvider"/>, also accessible by <see cref="Instance"/></returns>
 public static LocaleProvider Initialize(string localeFolder)
 {
     return(Instance = new LocaleProvider(localeFolder));
 }