Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - International version: no german loc.
International version: no german loc.
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Fri Jul 18, 2003 9:18 am    Post subject: International version: no german loc.

Hello,

I've downloaded 1.0.1-dmg and installed it. I have now a bigger font, but not a german localisation. I can alter the language settings, but that doesn't change the menu language. After restarting NeoOffice/J, the language settings are reset to "default".

What's wrong?

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 18, 2003 10:36 am    Post subject:

Thomas,

Here is what I do to change the language to German:

1. Open the System Preferences tool and click on the Languages tab.
2. In the Languages list box, drag "Deutsch" to the top of the list.
3. Launch NeoOffice/J (or close it and restart)

After doing the above, I get the German menu's (e.g. Datei, Bearbeiten, etc.).

Were you selecting the German flag from the Mac OS X system menu? If so, selecting a flag only changes your keyboard layout, not your preferred language.

Patrick
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Fri Jul 18, 2003 11:12 am    Post subject: German loc.

Hi Patrick,

"Deutsch" was already in the top of the languages.

What I didn't mention: I've installed the Java 1.4.1 Update DP102 of 21 Jun 2003. Could this be the reason?

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 18, 2003 12:28 pm    Post subject:

I don't think the problem is due to Java 1.4.1 Update DP102 as the language settings and text selection is done outside of Java.

Instead, there is probably a bug in my setup script. Can you check the Library/NeoOfficeJ/user/config/registry/instance/org/openoffice/Setup.xml file in your home directory. If it is setup script is properly detecting you German language preference, you should see the following lines in the file:
Code:

 <L10N>
  <ooLocale cfg:type="string">de</ooLocale>
 </L10N>

If the setup script is messing up, you will see the following:
Code:

 <L10N>
  <ooLocale cfg:type="string">en-US</ooLocale>
 </L10N>

If you are seeing "en-US" instead of "de", can you try the following and see if any errors print out and if the above file gets properly set to "de"?:

1. Open a new Terminal
2. cd to your NeoOffice/J installation directory (e.g. /Applications/NeoOfficeJ)
3. Execute the following command:
Code:
./Contents/program/setup -locale de


Patrick


[/code]
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Fri Jul 18, 2003 12:50 pm    Post subject: German loc.

Hi Patrick,

This is the <L10N>-Part:

<L10N>
<ooLocale cfg:type="string">ge</ooLocale>
</L10N>
<Office>
<ooSetupInstallPath cfg:type="string">/Users/thomas/Library/NeoOfficeJ/user</$
</Office>

I've tried the setup -locale de, but with no real effect. The Setup.xml was set after that to ">de<", but after the next start of NeoJ it is set again to ">ge<".

For a mor efficient communication, you can reach me vie AIM/iChat as "schlesix", if you want.

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Jul 18, 2003 2:17 pm    Post subject:

Thomas,

If you are getting "ge" in Setup.xml, then you must have Georgian as your preferred language as "de" is the German language code in Mac OS X.

Might this be the problem? If NeoOffice/J can't handle your top-most preferred language, it will revert to "en-US".

Patrick
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Fri Jul 18, 2003 11:14 pm    Post subject: German loc.

Hi Patrick,

"Deutsch" *is* in the top of the languages, followed by English. French, Netherlandish, Italian and an asian-looking language. Georgian doesn't appear in this list!

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Jul 19, 2003 12:17 am    Post subject:

Thomas,

Well I'm stumped. NeoOffice/J uses that OOo code in its sal module to fetch the preferred language. So all I can think is that the "de" fetched using the OOo code is getting mangled into "ge" somewhere. This looks one of those bugs that is going to make us work to find out what is causing it. Smile

Just an experiment, could you execute the following command in a terminal? I know that the OOo code should take the first language listed in the output:

Code:
defaults read | grep AppleLanguages


Thanks,

Patrick
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Sat Jul 19, 2003 12:56 am    Post subject: defaults read

Hi Patrick,

this is the output of the command:

[SchlesisPowerbook:~] thomas% defaults read | grep AppleLanguages
AppleLanguages = (

Strange, isn't it?

Thomas

UPDATE: I've started a thread in a german Mac-Newsgroup. Other german Mac-users habe the following output:

AppleLanguages = (de, en);

I suppose, this is what you've expected? Unfortunally, I wasn't able to find out how to set this values correct. I've tried it with

defaults write AppleLanguages = '(de, en)'

but now my grep looks like this:
AppleLanguages = (
AppleLanguages = {"=" = (de, en); };
AppleLanguages,

and NeoOffice/J doesn't recognize the german setting. I hope, somebody in the german Mac-Newsgroup can tell me how to set this parameter correctly.

Actually, I download OpenOffice X.11 and check if it recognizes the german setting.
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Sat Jul 19, 2003 5:01 am    Post subject: German loc.

Hi Patrick,

meanwhile I've downloaded OO 1.0.3 for X11 and the i18n-package. The i18n automatically recognized my language setting and "germanized" my OO/X11. There seems to be a difference between NeoOffice/J and the OO.

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Jul 19, 2003 8:44 am    Post subject:

Thomas,

Since OOo works, I've got another theoryup.xml. Open the following file in your home directory:
Code:
Library/NeoOfficeJ/user/config/registry/template/org/openoffice/Setup.xml

It should contain the following lines:
Code:

 <L10N>
  <ooLocale cfg:type="string">LOCALE</ooLocale>
 </L10N>

If the string "LOCALE" is not there is something different, then this is the source of the problem. When you launch NeoOffice/J, it looks for this string and replaces it with the preferred language.

If the file does not contain the above lines, try deleting this file and rerunning NeoOffice/J. This will cause NeoOffice/J to recreate the file.

Patrick
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Sat Jul 19, 2003 9:05 am    Post subject: German loc.

Hi Patrick,

the string is in the Setup.xml:

<?xml version="1.0" encoding="UTF-8"?><Setup state="modified" cfg:package="org.openoffice" xmlns="http://openoffice.o$
<L10N>
<ooLocale cfg:type="string">LOCALE</ooLocale> </L10N>
<Office>
<ooSetupInstallPath cfg:type="string">USER_INSTALL_DIR</ooSetupInstallPath>
</Office>
</Setup>

Thomas

[/i]
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Jul 19, 2003 9:21 am    Post subject:

So your file looks OK so let's look at the next step. The file gets editing by the following script (assuming that you installed NeoOffice/J in the /Applications directory):
Code:
/Applications/NeoOfficeJ.app/Contents/program/setup

To test this script, open a new terminal and execute the following command:
Code:
sh -x /Applications/NeoOfficeJ.app/Contents/program/setup -locale de

This should echo every line that the setup script is executing. After you run the above command and before you launch NeoOffice/J, check if the Library/NeoOfficeJ/user/config/registry/instance/org/openoffice/Setup.xml file contains the following lines:
Code:

 <L10N>
  <ooLocale cfg:type="string">de</ooLocale>
 </L10N>

If these lines are still messed up, please send me the output of the above command.

Patrick
Back to top
schlesi
Oracle


Joined: Jun 07, 2003
Posts: 234
Location: near Cologne, Germany

PostPosted: Sat Jul 19, 2003 9:41 am    Post subject: "de" is there

Hi Patrick,

the "de"-entry was correctly in the Setup.xml, but the menu of NeoOffice/J is already in english.

After terminating Neo, there entry in this file was altered to "ge" (by Neo?).

Thomas
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Jul 19, 2003 3:46 pm    Post subject:

Good news! I have replicated your problem on my machine. Here is what I did:

1. I deleted the AppleLanguages key using the following command:
Code:
defaults delete "Apple Global Domain" AppleLanguages

2. I opened SystemPreferences and moved Deutsch to the top of the list.
3. I ran NeoOffice/J and my locale in Setup.xml is set to "ge".

It seems that the problem is that the AppleLanguages key gets corrupted. After I did the above steps, I ran the following command:
Code:
defaults read "Apple Global Domain" AppleLanguages

and the following was printed:
Code:
(German, English, Dutch, French, Italian, Japanese, Spanish)

The problem is that the AppleLanguages key should not have language names but should only have ISO636 language codes like this:
Code:
(de, en, nl, fr, it, ja, es)

When the AppleLanguages key gets corrupted like this, Mac OS X sees "German" and, since this makes no sense, tells NeoOffice/J that the locale is "ge".

Fortunately, correcting your AppleLanguages key is fairly easy. Just do the following:
1. Open SystemPreferences and, in the Language tab, press the "Edit" button.
2. In the dialog pane that appears, uncheck all of the checked languages and press the "OK" button.
3. Press the "Edit" button again and check all of the languages that you unchecked in step 2 and press the "OK" buttons.
4. Run NeoOffice/J and check Setup.xml to see if you get the correct language.

BTW, in an earlier post, you executed the following command:
Code:
defaults write AppleLanguages = '(de, en)'

This created a new "domain" with no key instead of changing the AppleLanguages key in the "Apple Global Domain" domain. This is why you see more than one AppleLanguages key. You can remove this AppleLanguages domain by executing the following command:
Code:
defaults delete AppleLanguages


Hope that helps,

Patrick
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.