diff options
Diffstat (limited to 'padmin/source/helper.cxx')
-rw-r--r-- | padmin/source/helper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx index 3c2df34439f4..54ff53726059 100644 --- a/padmin/source/helper.cxx +++ b/padmin/source/helper.cxx @@ -70,6 +70,7 @@ ResId padmin::PaResId( sal_uInt32 nId ) Any aValue = aNode.getNodeValue( OUString("ooLocale") ); if( aValue >>= aLoc ) { + /* FIXME-BCP47: handle language tags! */ sal_Int32 nIndex = 0; aLocale.Language = aLoc.getToken( 0, '-', nIndex ); aLocale.Country = aLoc.getToken( 0, '-', nIndex ); @@ -78,7 +79,7 @@ ResId padmin::PaResId( sal_uInt32 nId ) } pPaResMgr = ResMgr::SearchCreateResMgr( "spa", aLocale ); AllSettings aSettings = Application::GetSettings(); - aSettings.SetUILocale( aLocale ); + aSettings.SetUILanguageTag( LanguageTag( aLocale) ); Application::SetSettings( aSettings ); } return ResId( nId, *pPaResMgr ); |