Hi,

the "BrOffice" name was not in sync with the used UI localization. The
attached patch helped to solve it. See
https://bugs.freedesktop.org/show_bug.cgi?id=33744#c12 for more details.

I need review from 2 more people to include it into the
libreoffice-3-3-1 branch. Any volunteers, please?


Best Regards,
Petr
>From 29b510e2a77f65445831767fe2061a92b6b57279 Mon Sep 17 00:00:00 2001
From: Petr Mladek <pmla...@suse.cz>
Date: Fri, 11 Feb 2011 22:36:09 +0100
Subject: [PATCH] use "BrOffice" name if the Brazilian UI translation is used (bnc#33744)

it is not enough to check the system UI setting

Signed off by Michael Meeks
---
 unotools/source/config/configmgr.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index 7b57234..fa94533 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -403,7 +403,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
 
     ::rtl::OUString sBrandName;
 #ifdef ENABLE_BROFFICE
-    LanguageType nType = MsLangId::getSystemUILanguage();
+    LanguageType nType = MsLangId::getRealLanguage( LANGUAGE_NONE );
     if ( nType == LANGUAGE_PORTUGUESE_BRAZILIAN )
         sBrandName = OUString::createFromAscii("BrOffice");
     else
-- 
1.7.3.4

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to