summaryrefslogtreecommitdiff
path: root/basic/source/runtime/basrdll.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/runtime/basrdll.cxx')
-rw-r--r--basic/source/runtime/basrdll.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/basic/source/runtime/basrdll.cxx b/basic/source/runtime/basrdll.cxx
index c9e4a153338d..e7f228060293 100644
--- a/basic/source/runtime/basrdll.cxx
+++ b/basic/source/runtime/basrdll.cxx
@@ -26,8 +26,8 @@
#include <basic/sbstar.hxx>
#include <basic/basrdll.hxx>
-#include <basrid.hxx>
-#include <sb.hrc>
+#include <tools/resmgr.hxx>
+#include "strings.hrc"
#include <sbxbase.hxx>
struct BasicDLL::Impl
@@ -35,13 +35,13 @@ struct BasicDLL::Impl
bool bDebugMode;
bool bBreakEnabled;
- std::unique_ptr<ResMgr> xBasResMgr;
+ std::locale aBasResLocale;
std::unique_ptr<SbxAppData> xSbxAppData;
Impl()
: bDebugMode(false)
, bBreakEnabled(true)
- , xBasResMgr(ResMgr::CreateResMgr("sb", Application::GetSettings().GetUILanguageTag()))
+ , aBasResLocale(Translate::Create("sb", Application::GetSettings().GetUILanguageTag()))
, xSbxAppData(new SbxAppData)
{ }
};
@@ -52,9 +52,9 @@ BasicDLL * BASIC_DLL;
}
-BasResId::BasResId( sal_uInt32 nId ) :
- ResId( nId, *(BASIC_DLL->GetBasResMgr()) )
+OUString BasResId(const char* pId)
{
+ return Translate::get(pId, BASIC_DLL->GetBasResLocale());
}
BasicDLL::BasicDLL()
@@ -67,7 +67,7 @@ BasicDLL::~BasicDLL()
{
}
-ResMgr* BasicDLL::GetBasResMgr() const { return m_xImpl->xBasResMgr.get(); }
+const std::locale& BasicDLL::GetBasResLocale() const { return m_xImpl->aBasResLocale; }
void BasicDLL::EnableBreak( bool bEnable )
{