diff options
Diffstat (limited to 'basic/source/sbx/sbxscan.cxx')
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index eff6720951f5..8be89826439b 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -38,11 +38,10 @@ #include "sbxbase.hxx" #include <basic/sbxfac.hxx> #include <basic/sbxform.hxx> -#include <svtools/svtools.hrc> -#include "basrid.hxx" #include "date.hxx" #include "runtime.hxx" +#include "strings.hrc" #include <rtl/strbuf.hxx> #include <rtl/character.hxx> @@ -584,21 +583,16 @@ bool SbxValue::Scan( const OUString& rSrc, sal_uInt16* pLen ) namespace { -ResMgr& implGetResMgr() +const std::locale& implGetResLocale() { - static ResMgr* const pResMgr( ResMgr::CreateResMgr( - "sb", Application::GetSettings().GetUILanguageTag() )); - - return *pResMgr; + static std::locale loc(Translate::Create("sb", Application::GetSettings().GetUILanguageTag())); + return loc; } -class SbxValueFormatResId : public ResId +OUString SbxValueFormatResId(const char *pId) { -public: - explicit SbxValueFormatResId( sal_uInt32 nId ) - : ResId( nId, implGetResMgr() ) - {} -}; + return Translate::get(pId, implGetResLocale()); +} enum class VbaFormatType { |