summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index b9af5f7f9962..d26bfaa896cb 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3873,11 +3873,12 @@ static char* getLanguages(const char* pCommand)
OUString sLanguage;
for ( sal_Int32 itLocale = 0; itLocale < aLocales.getLength(); itLocale++ )
{
- sLanguage = SvtLanguageTable::GetLanguageString(LanguageTag::convertToLanguageType(aLocales[itLocale]));
+ const LanguageTag aLanguageTag( aLocales[itLocale]);
+ sLanguage = SvtLanguageTable::GetLanguageString(aLanguageTag.getLanguageType());
if (sLanguage.startsWith("{") && sLanguage.endsWith("}"))
continue;
- sLanguage += ";" + LanguageTag(aLocales[itLocale]).getBcp47(false);
+ sLanguage += ";" + aLanguageTag.getBcp47(false);
aChild.put("", sLanguage.toUtf8());
aValues.push_back(std::make_pair("", aChild));
}