public static void AddXmlSource(this AbpLocalizationConfiguration localizationConfiguration, string sourceName, string directory)
 {
     localizationConfiguration.AddSource(new XmlLocalizationSource(sourceName, directory));
 }
Пример #2
0
 /// <summary>
 /// Private constructor for singleton pattern.
 /// </summary>
 private AbpConfiguration()
 {
     _settings    = new Dictionary <string, object>();
     Localization = new AbpLocalizationConfiguration();
     Modules      = new AbpModuleConfigurations();
 }
 public static void AddResourceFileSource(this AbpLocalizationConfiguration localizationConfiguration, string sourceName, ResourceManager resourceManager)
 {
     localizationConfiguration.AddSource(new ResourceFileLocalizationSource(sourceName, resourceManager));
 }