summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/Library_embobj.mk1
-rw-r--r--embeddedobj/source/general/docholder.cxx3
2 files changed, 2 insertions, 2 deletions
diff --git a/embeddedobj/Library_embobj.mk b/embeddedobj/Library_embobj.mk
index dc0f88667be7..3030e2ae70c5 100644
--- a/embeddedobj/Library_embobj.mk
+++ b/embeddedobj/Library_embobj.mk
@@ -27,6 +27,7 @@ $(eval $(call gb_Library_use_libraries,embobj,\
cppuhelper \
sal \
svt \
+ utl \
vcl \
tl \
i18nlangtag \
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx
index 751c7c0fff5a..b774ab6aa479 100644
--- a/embeddedobj/source/general/docholder.cxx
+++ b/embeddedobj/source/general/docholder.cxx
@@ -971,8 +971,7 @@ bool DocumentHolder::LoadDocToFrame( bool bInPlace )
css::uno::Reference< css::frame::XTitle > xModelTitle( xDoc, css::uno::UNO_QUERY );
if( xModelTitle.is() )
{
- LanguageTag aLocale( Application::GetSettings().GetUILanguageTag() );
- std::locale aResLoc = Translate::Create("sfx", aLocale);
+ std::locale aResLoc = Translate::Create("sfx", SvtSysLocale().GetUILanguageTag());
OUString sEmbedded = Translate::get(STR_EMBEDDED_TITLE, aResLoc);
xModelTitle->setTitle( m_pEmbedObj->getContainerName() + sEmbedded);
m_aContainerName = m_pEmbedObj->getContainerName();