public LocaleManager ( string defaultCollectionKey = null, string defaultLocale = @"en-US", string localizationFolder = @"lang", string propertiesXml = @"properties.xml" ) : System | ||
defaultCollectionKey | string | |
defaultLocale | string | |
localizationFolder | string | |
propertiesXml | string | |
return | System |
public LocaleManager(string defaultCollectionKey = null, string defaultLocale = @"en-US",
string localizationFolder = @"lang",
string propertiesXml = @"properties.xml")
{
if (string.IsNullOrEmpty(LocaleRoot))
{
LocaleRoot = localizationFolder;
}
lock (_propertiesXml)
{
if (string.IsNullOrEmpty(_propertiesXml))
{
_propertiesXml = propertiesXml;
}
}
lock (_defaultLocale)
{
if (string.IsNullOrEmpty(_defaultLocale))
{
_defaultLocale = defaultLocale;
}
}
DefaultCollectionKey = defaultCollectionKey;
}