Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.