numberOfLoader = std::clamp(numberOfLoader, MINIMUM_NUMBER_OF_LOADER, MAXIMUM_NUMBER_OF_LOADER);
DALI_LOG_RELEASE_INFO("Number of async text loaders:%d\n", numberOfLoader);
+ mLocale = TextAbstraction::GetLocaleFull();
+
for(int i = 0; i < numberOfLoader; i++)
{
Text::AsyncTextLoader loader = Text::AsyncTextLoader::New();
MultilanguageSupport::MultilanguageSupport(bool connectLocaleChangedSignal)
: mDefaultFontPerScriptCache(),
mValidFontsPerScriptCache(),
- mLocale(std::string())
+ mLocale()
{
// Initializes the default font cache to zero (invalid font).
// Reserves space to cache the default fonts and access them with the script as an index.
// Reserves space to cache the valid fonts and access them with the script as an index.
mValidFontsPerScriptCache.Resize(TextAbstraction::GetNumberOfScripts(), NULL);
+ mLocale = TextAbstraction::GetLocaleFull();
+
if(connectLocaleChangedSignal && Dali::Adaptor::IsAvailable())
{
Dali::Adaptor::Get().LocaleChangedSignal().Connect(this, &MultilanguageSupport::OnLocaleChanged);