| Summary: | [ui] Preference for automatic-update-reminder doesn't work in multilanguage-environments | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Johannes Michler <orgler> | ||||
| Component: | p2 | Assignee: | Susan McCourt <susan> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | dj.houghton, irbull, susan | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.7 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Johannes Michler
I think you're right, we shouldn't store the translated strings but rather the normalized (usually English) Strings. Johannes, if you could create a patch, that would be greatly appreciated. Created attachment 175912 [details]
Proposed Patch
I changed the preference to store the english strings and only display the international ones in the preference page and in the UpdatePopup.
I think we should deliver this to maintenance 3.6 and to Head.
Thanks, Johannes, for the patch. Fixed in HEAD >20100909. I committed the patch with the following additional changes: - I renamed the AutomaticUpdatesPopup static variables to be more explicit: AutomaticUpdatesPopup.ELAPSED_VALUES AutomaticUpdatesPopup.ELAPSED_LOCALIZED_STRINGS - I added some preference migration code to handle the case where the previously stored value is the localized string in the current locale. In this case, the value is reset to the english value. Without doing this, we would have lost the previously stored preference when someone ran the new code. So, for example, if the preference had previously been stored in German, and we run the new code, we'll catch that the previously stored string is in the localized strings array and map it to the english string. Note that we won't catch a case where the previously stored string is in a different language than the current locale, but we never handled this properly anyway. - added your name and bug number to the contributors list in the copyright retargeting milestone. These changes were released to HEAD for M2, but never tagged for the M2 I-builds. Since we are already into the test pass, we will defer to M3. Johannes, would you have time to verify that your original problem is fixed in M3? |