Apache OpenOffice (AOO) Bugzilla – Issue 91571
Text property in localized dialog returns resource string
Last modified: 2008-11-06 20:57:24 UTC
In the next attachment is a dialog containing a TextField and a ComboBox. The dialog is localized for french, english, german. The TextField and the ComboBox have a default value. 1 - Run the dialog. Do not change the proposed values and click OK. The Text property of both controls returns a resource string instead of the localized default value. This is incorrect because what is interesting here is the localized value. 2 - Run again the dialog. Change the proposed values and click OK. The Text property returns the typed text. This is correct. A work-around is to use the Peer.Text property. But the current behaviour should be corrected. I have not checked if other controls have a similar problem.
Created attachment 55065 [details] Localized dialog with default texts
This cannot be corrected because the text property does contain the resource string, so it has to return it. If it was corrected no one could read the resource string at all and localization wouldn't work. So if the localized value is needed the StringResourceResolver returned by the Library's getStringResource method (interface XStringResourceSupplier) has to be used to get the localized string for the resource string. Works as designed -> INVALID
close the invalid issue