summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2010-11-30 21:37:52 +0100
committerPetr Mladek <pmladek@suse.cz>2010-11-30 21:37:52 +0100
commitb8154f1d93f884e7b7cdb63c6aaa21d451bace38 (patch)
treefe8a70bbdeab40f97ba39135c5d3b833b038c546 /unotools/source
parent9d97067d9a51e67ec8303d5a91b446898de0c96b (diff)
use BrOffice in pt_BR locale (fdo#31770)
Diffstat (limited to 'unotools/source')
-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 9bb77a99427b..ec1b201c3d23 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
@@ -399,10 +400,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;
}
@@ -551,7 +559,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
}
if ( eProp == PRODUCTNAME )
- aRet >>= rBrandName;
+ aRet >>= sBrandName;
if ( eProp == PRODUCTXMLFILEFORMATNAME )
aRet >>= rXMLFileFormatName;