summaryrefslogtreecommitdiff
path: root/unotools/source/config/configmgr.cxx
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2010-11-30 21:37:52 +0100
committerPetr Mladek <pmladek@suse.cz>2010-12-01 14:10:34 +0100
commit506b96431c407205b676fee31f2a5f93fc7f5a9d (patch)
tree5888392834cf47b140db2059eaa3df54fb02f9b8 /unotools/source/config/configmgr.cxx
parent4357f0d9951c545260cbd1e656906d9b9cdd8c50 (diff)
use BrOffice in pt_BR locale (fdo#31770)
Diffstat (limited to 'unotools/source/config/configmgr.cxx')
-rw-r--r--unotools/source/config/configmgr.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index a9584217a590..5509e0714e20 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -38,6 +38,7 @@
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <osl/diagnose.h>
+#include <i18npool/mslangid.hxx>
#include <rtl/bootstrap.hxx>
#include <rtl/instance.hxx>
#if OSL_DEBUG_LEVEL > 0
@@ -370,10 +371,17 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
}
Any aRet;
- ::rtl::OUString &rBrandName = BrandName::get();
- if ( eProp == PRODUCTNAME && rBrandName.getLength() )
+
+ ::rtl::OUString sBrandName;
+ LanguageType nType = MsLangId::getSystemUILanguage();
+ if ( nType == LANGUAGE_PORTUGUESE_BRAZILIAN )
+ sBrandName = OUString::createFromAscii("BrOffice");
+ else
+ sBrandName = BrandName::get();
+
+ if ( eProp == PRODUCTNAME && sBrandName.getLength() )
{
- aRet <<= rBrandName;
+ aRet <<= sBrandName;
return aRet;
}
@@ -522,7 +530,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
}
if ( eProp == PRODUCTNAME )
- aRet >>= rBrandName;
+ aRet >>= sBrandName;
if ( eProp == PRODUCTXMLFILEFORMATNAME )
aRet >>= rXMLFileFormatName;