[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug #161970 Language setting not retained - OLDLOCALE not stored in Linguistic.xml!



Dear All,

Found the cause of bug #161970 - When operating openoffice configured for more than one locale,
~/.openoffice/1.0.1/user/config/registry/instance/org/openoffice/Linguistic.xml will not store the
default locale used as looked for by the /usr/bin/openoffice script.  This results in the OLDLOCALE variable in the /usr/bin/openoffice script always being set to en-US, and the previous sessions language locale settings being overwritten.

Say you live in New Zealand, people send you documents with en-NZ in parargraphs, you work in en-GB, and also have to cope with en-US...  New Zealand uses UK spellings, and so I installed en_GB.zip UK dictionary to cope.

I have inserted my Linguistics.xml

PS - as a work around I commented out the locale changing stuff in the /usr/bin/openoffice shell script.

Hope that this helps.

Best Regards,

Matthew Grant
<?xml version="1.0" encoding="UTF-8"?>
<Linguistic cfg:package="org.openoffice.Office" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:cfg="http://openoffice.org/2000/registry/instance" xmlns="http://openoffice.org/2000/registry/components/Linguistic">
		<General>
			<DictionaryList>
				<ActiveDictionaries cfg:type="string" cfg:separator=";" cfg:derivedBy="list">IgnoreAllList;soffice.dic;standard.dic;sun.dic</ActiveDictionaries>
				<IsUseDictionaryList cfg:type="boolean">true</IsUseDictionaryList>
			</DictionaryList>
			<IsIgnoreControlCharacters cfg:type="boolean">true</IsIgnoreControlCharacters>
			<DefaultLocale cfg:type="string">en-US</DefaultLocale>
			<DefaultLocale_CJK cfg:type="string"/>
			<DefaultLocale_CTL cfg:type="string"/>
			<IsGermanPreReform cfg:type="boolean">false</IsGermanPreReform>
		</General>
		<SpellChecking>
			<IsSpellUpperCase cfg:type="boolean">false</IsSpellUpperCase>
			<IsSpellWithDigits cfg:type="boolean">false</IsSpellWithDigits>
			<IsSpellCapitalization cfg:type="boolean">true</IsSpellCapitalization>
			<IsHideMarkings cfg:type="boolean">false</IsHideMarkings>
			<IsSpellAuto cfg:type="boolean">false</IsSpellAuto>
			<IsSpellSpecial cfg:type="boolean">true</IsSpellSpecial>
			<IsSpellInAllLocales cfg:type="boolean">false</IsSpellInAllLocales>
			<IsReverseDirection cfg:type="boolean">false</IsReverseDirection>
		</SpellChecking>
		<Hyphenation>
			<MinLeading cfg:type="short">2</MinLeading>
			<MinTrailing cfg:type="short">2</MinTrailing>
			<MinWordLength cfg:type="short">5</MinWordLength>
			<IsHyphSpecial cfg:type="boolean">true</IsHyphSpecial>
			<IsHyphAuto cfg:type="boolean">false</IsHyphAuto>
		</Hyphenation>
		<ServiceManager>
			<SpellCheckerList cfg:type="set" cfg:element-type="cfg:any"><cfg:any cfg:type="string" cfg:derivedBy="list" cfg:name="en-US">org.openoffice.lingu.MySpellSpellChecker</cfg:any>
  </SpellCheckerList>
			<ThesaurusList cfg:type="set" cfg:element-type="cfg:any"><cfg:any cfg:type="string" cfg:derivedBy="list" cfg:name="en-US">org.openoffice.lingu.enUS.Thesaurus</cfg:any>
  </ThesaurusList>
			<HyphenatorList cfg:type="set" cfg:element-type="cfg:any"><cfg:any cfg:type="string" cfg:derivedBy="list" cfg:name="da-DK">org.openoffice.lingu.LibHnjHyphenator</cfg:any>
   <cfg:any cfg:type="string" cfg:derivedBy="list" cfg:name="de-DE">org.openoffice.lingu.LibHnjHyphenator</cfg:any>
   <cfg:any cfg:type="string" cfg:derivedBy="list" cfg:name="en-US">org.openoffice.lingu.LibHnjHyphenator</cfg:any>
   <cfg:any cfg:type="string" cfg:derivedBy="list" cfg:name="ru-RU">org.openoffice.lingu.LibHnjHyphenator</cfg:any>
  </HyphenatorList>
		</ServiceManager>
	</Linguistic>

-- 
===============================================================================
Matthew Grant	     /\	 ^/\^	grantma@anathoth.gen.nz      /~~~~\
A Linux Network Guy /~~\^/~~\_/~~~~~\_______/~~~~~~~~~~\____/******\
===GPG KeyID: 2EE20270  FingerPrint: 8C2535E1A11DF3EA5EA19125BA4E790E2EE20270==

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: