use BrOffice in pt_BR locale (fdo#31770)

This commit is contained in:
Petr Mladek 2010-11-30 21:37:52 +01:00
parent 4357f0d995
commit 506b96431c

View file

@ -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;