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 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.

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

Fernand


Fernand Vanrie wrote:
Thomas Lange - Sun Germany - ham02 - Hamburg wrote:
Hello Fernand,

the my code is now somthing 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

but how can i reset the "for current document only" setting

i must looked over it, can simply not find this setting in the "xaccess" object structure

maybe you can help me out ?

A little experiment showed that the value for "current document only" is
not persistent when restarting the Office. Thus it is most likely that
there is no respective setting in the configuration, and therefore you
can't change it's value via API.

Thomas
Thomas thanks for this reply,

In the mean time i came to the same conclusion,
In fact I think :-) that using the "for curreent doc only" has an effect AFTER saving the doc
and must be an equivalent for
changing "odoc.charlocal" via the api

But befo a can be conslusif about this behaviour i have to resolve a other problem: the code changing the "DefaultLocale is working but the changes maded , disapear after i close the Quickstarter, so all changes are done in memory., I just found that i gave the same problem when do the changes with the UI I now downlaoding the lattest stable to be sure its not due to my installed version (2.2.0)
an will continue the testing
I come back with my findings

Greetz

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

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

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

Reply via email to