summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/misc
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-22 14:04:37 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-22 14:04:37 +0000
commitbac52dba5d0f5e51b141b595b170477813e26a1c (patch)
tree0c2a9fec82228a4275ffd43be15505572a4604d7 /desktop/source/deployment/misc
parentf12a5dfb04377e3c26ab03d7b6f3f9ca528306b3 (diff)
INTEGRATION: CWS jl79 (1.16.114); FILE MERGED
2007/11/07 16:09:33 jl 1.16.114.1: #i82775# joined changes from jl76
Diffstat (limited to 'desktop/source/deployment/misc')
-rw-r--r--desktop/source/deployment/misc/dp_resource.cxx20
1 files changed, 12 insertions, 8 deletions
diff --git a/desktop/source/deployment/misc/dp_resource.cxx b/desktop/source/deployment/misc/dp_resource.cxx
index ee09cddc0f..9b056a6ff2 100644
--- a/desktop/source/deployment/misc/dp_resource.cxx
+++ b/desktop/source/deployment/misc/dp_resource.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dp_resource.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: rt $ $Date: 2007-04-26 08:24:48 $
+ * last change: $Author: ihi $ $Date: 2007-11-22 15:04:37 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -53,8 +53,8 @@ namespace dp_misc {
namespace {
struct OfficeLocale :
- public rtl::StaticWithInit<const lang::Locale, OfficeLocale> {
- const lang::Locale operator () () {
+ public rtl::StaticWithInit<const OUString, OfficeLocale> {
+ const OUString operator () () {
OUString slang;
if (! (::utl::ConfigManager::GetDirectConfigProperty(
::utl::ConfigManager::LOCALE ) >>= slang))
@@ -63,16 +63,15 @@ struct OfficeLocale :
//office for the first time.
if (slang.getLength() == 0)
slang = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("en-US"));
- return toLocale(slang);
+ return slang;
}
};
-void dummy() {}
struct DeploymentResMgr : public rtl::StaticWithInit<
ResMgr *, DeploymentResMgr> {
ResMgr * operator () () {
return ResMgr::CreateResMgr( "deployment" LIBRARY_SOLARUPD(),
- OfficeLocale::get() );
+ getOfficeLocale() );
}
};
@@ -229,7 +228,12 @@ void checkThirdSubtag(::rtl::OUString const & tag)
}
//==============================================================================
-lang::Locale const & getOfficeLocale()
+lang::Locale getOfficeLocale()
+{
+ return toLocale(OfficeLocale::get());
+}
+
+::rtl::OUString getOfficeLocaleString()
{
return OfficeLocale::get();
}