Issue 91571 - Text property in localized dialog returns resource string
Summary: Text property in localized dialog returns resource string
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOo 2.4.1
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ab
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-11 11:00 UTC by bmarcelly
Modified: 2008-11-06 20:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Localized dialog with default texts (15.42 KB, application/vnd.oasis.opendocument.text)
2008-07-11 11:01 UTC, bmarcelly
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description bmarcelly 2008-07-11 11:00:21 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.
Comment 1 bmarcelly 2008-07-11 11:01:22 UTC
Created attachment 55065 [details]
Localized dialog with default texts
Comment 2 ab 2008-08-01 13:41:35 UTC
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
Comment 3 Mechtilde 2008-11-06 20:57:24 UTC
close the invalid issue