Jerome Warnier wrote:
I finally got the time to pinpoint the problem and found a way to circumvent it.Jerome Warnier wrote:Chris Halls wrote:On Wed, Aug 14, 2002 at 01:11:40AM +0200, Jerome Warnier wrote:I then analysed and modified Linguistic.xml(.fr_FR) and Setup.xml(.fr_FR)but changes were overriden at each OOo restart (which is exactly the problem).It seems that /usr/bin/openoffice is doing this at each restart.Ah, thanks for the analysis. I would suspect something is going wrong here:# Create Linguistic.xml if don't exists if [ ! -e $LINGFILE.$OLDLOCALE ] ; then# get a default one, and change en-US to OLDLOCALE inside. I guess this is a noop, but I'm not suresed "s/>en-US</>$OLDLOCALE</" \< /usr/lib/openoffice/share/config/registry/instance/org/openoffice/Office/Linguistic.xml \> $LINGFILE.$OLDLOCALE fi Try adding this line below the if [ !e .. line: echo `basename $LINGFILE`.$OLDLOCALE not foundLinguistic.xml.en-US not found Which of LC_ALL, LANG, or other should I provide to you?LC_ALL is empty and LANG is set to fr_FR.ISO-8859-1and see if that is printed every time.Also, you could add a 'set -x' at the top and post the output - that way wecould see how it is behaving. Chris
The problem is the name of the locale.I saw recently that someone made a (rather ugly) patch to support the "@euro" in the locale name to the script (/usr/bin/openoffice). I made an uglier one to support some locale variant. In Belgium, we use (among other) fr_BE@euro. Even using fr_FR doesn't solve the problem. Remembering a thread on this list a long time ago about OOo dealing only with locales names like "fr-FR" and not "fr_FR" like most other free software, I found out that forcing $LOCALE to "fr-FR" instead of "fr_FR" worked and tried again with "nl-NL" instead of "nl_NL" with the same success. My hack basicly takes the first two chars of the string $LANG and if "fr" puts "fr-FR" in $LOCALE, and does the same for "nl" with "nl-NL".
And it works successfully.I don't know, though, if this could be extended to other locales. I think "de" would not work like this due to variants to locales.
Regards