Bug 121338

Summary: OpenOffice.org script grabs wrong gui language
Product: [Fedora] Fedora Reporter: Timo Pykalainen <tpykalai>
Component: openoffice.orgAssignee: Dan Williams <dcbw>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-25 20:53:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timo Pykalainen 2004-04-20 16:10:35 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116

Description of problem:
OpenOffice.org ooffice script doesn't choose the gui language
correctly. in my case I have the following locales in .i18n
LANG=en_US.UTF-8
LC_CTYPE="zh_CN.GB18030"
LC_NUMERIC="fi_FI"
LC_TIME="en_US"
LC_COLLATE="fi_FI"
LC_MONETARY="fi_FI"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="fi_FI"
LC_NAME="fi_FI"
....

I should get the menus in English but after upgrading OpenOffice.org 
to 1.1.0-15 the /usr/bin/ooffice grabs the gui language from the
locale in wrong way. However it doesn't work the way it should, for
some reason in my case it chooses Chinese (as in LC_CTYPE is for
inputing Chinese) eventhough the ooffice script grabs the locale as
en-us. I fixed this by editing the /usr/bin/office script and hard
coded the language value as 'en'. Previous version of OpenOffice saved
the menu locale (from the first startup) in the file in home
directory. Now it handles it automatically.

Moreover the /usr/bin/ooffice script has an annoyance regarding the
gui language grabbing as it saves an temp file in your home directory,
so when you start OpenOffice.org the temp file flashes in your e.g.
nautilus window. 

Version-Release number of selected component (if applicable):
1.1.0-15

How reproducible:
Always

Steps to Reproduce:
1.set the locales as LANG=en_US.UTF-8,
LC_CTYPE="zh_CN.GB18030", and LC_MESSAGES="en_US.UTF-8"
2. start OpenOffice.org
    

Actual Results:  The menu language is wrong, in my case Chinese.

Expected Results:  Menus should be in English as set in
LC_MESSAGES="en_US.UTF-8"

Additional info:

Comment 1 Dan Williams 2004-05-04 13:47:02 UTC
*** Bug 122390 has been marked as a duplicate of this bug. ***

Comment 2 Carlos Rodrigues 2004-07-09 18:39:45 UTC
This is fixed in FC2.