summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-22 12:26:52 +0100
committerEike Rathke <erack@redhat.com>2012-11-22 12:34:59 +0100
commit9955dbebbdf1b7d36fec272dfea46f57fab47e19 (patch)
tree80705ccc2382e7440ea76f62a544d64d12d1ce4f /padmin
parent9c5d6ea5efb5f56a4ac96b4a8505ed84abbbc6bf (diff)
AllSettings with LanguageTag
Change-Id: I710ae66e51139662eb442b681fdf9cc9d158551d
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/helper.cxx3
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 );