public static LocalizationData GetDefaultLocalizationData(Assembly assembly, IEnumerable<ILocalizationDataProvider> providers) { LocalizationData res = new LocalizationData(); foreach (var p in providers) { var data = p.ReadDefaultData(assembly); res.Include(data); } return res; }
void LoadAssemblyLocalizationData(Assembly assembly) { if (loadedAssemblies.Contains(assembly)) { return; } var assemblyLocData = GetLocalizationData(assembly); localizationData.Include(assemblyLocData); loadedAssemblies.Add(assembly); }
public static LocalizationData GetDefaultLocalizationData(Assembly assembly, IEnumerable <ILocalizationDataProvider> providers) { LocalizationData res = new LocalizationData(); foreach (var p in providers) { var data = p.ReadDefaultData(assembly); res.Include(data); } return(res); }
void LoadAssemblyLocalizationData(Assembly assembly) { var assemblyName = LocalizationAssemblyHelper.GetAssemblyName(assembly); if (loadedAssemblies.Contains(assemblyName)) { return; } var assemblyLocData = GetLocalizationData(assembly); localizationData.Include(assemblyLocData); loadedAssemblies.Add(assemblyName); }