Mathias Bauer wrote:
Fernand Vanrie wrote:

Ok: after installing the latest stable version under Windows i can be concusif:

The Language settings are lost after changing them wit the UI and with the API and closing the quickstarter or when working without the quickqstarter

on the other hand Its posible to store the settings par Document using "only for current doc" and saving the document with this setting or using the APi (oDoc..DeaualtLocale = " ne-BE"

Is this a bug or is it wanted behaviour under 2.2 ?

I'm not sure if I understand. You have set the locale "for the current
document only". You discover that the setting was indeed applied to and
stored with the document. You also discovered that no other document was
influenced by this setting if you select "for the current document
only". That sounds like "works as designed".

Or do you observe that the language setting is not persistent even if
you make it "for all documents"? That would be a bug.
OK i sumit a issue
btw. when using the API the changes maded to "defaultLocale" are also not persistent


I am still pusseled from where the instalation wizard found out that i am a dutch-Belgium user because that's the setting after a new instalation, and inposible to changes this setting.

If no locale is set on OOo's first start AFAIK that it is taken from and
set to the value of the operating system. But it may be more complicated.
must be:-)
I now suppose OO find this setting in the famous "default doc" where also the default-styles are stored. I try now to changes the default-doc and see if i can changes the default-Languages Settings this way

The "document language" indeed is taken from the default paragraph style
wher can i alter this default paragraph style ? years ago there was somewhere a template hiden, but at pressent it seems to be stored somewhere in the configuraton ?
(that shouldn't be mixed up with the paragraph style named "Default")
that is stored along with every document. The setting "for all
documents"


is taken from the configuration.
and altered with basic-code like:

Sub ChangeSystemLanguage
dim aArgs(0) as  Object
dim aPropValue as new  com.sun.star.beans.PropertyValue
xconfig = createunoservice("com.sun.star.configuration.ConfigurationProvider")
aPropValue.Name = "nodepath"
aPropValue.Value = "org.openoffice.Office.Linguistic"
aArgs(0) = aPropValue
xAccess = 
xconfig.createinstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess",aArgs())
slocale = xAccess.General.defaultLocale
sLocale = "nl-BE"
xAccess.General.defaultLocale = slocale
xAccess.commitchanges
End Sub


Ciao,
Mathias


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to