This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have a resource bundle with english and german strings. If I use the form editor to assign a string to a component (e.g. a button) and choose the "Resource Bundle" method and the corresponding resource file is open, the german string in the resource bundle is replaced with the english one. This destroyed some hours of work for me... :-( Greetings Ronny Standtke
The "Resource Bundle" property editor is from i18n module, reassigning. The issue is simply reproducible... I guess (but am not sure) the problem lies in org.netbeans.modules.i18n.form.FormI18nStringEditor.CustomEditor.getPr opertyValue() method...
Created attachment 4010 [details] Proposed patch
Thanks Tomas it looks like you find the problem origin. Peter could you comment on proposed patch (it seems to work)?
I think the patch should be the solution. The true flag means to replace/add the value for the key in all locales. If is false, the key-value pair is just added to locales where the key was missing, thus not replacing in those ones it exist already.
FormI18nStringEditor.java new revision: 1.12.14.1; previous revision: 1.12
Verified in dev build 200301200100.
The patch causes issue #29019. Going to rollback it.
This issue is fixed as side effect of fixing issue #27601.
Verified in dev build 200303030100.
Resolved for 3.4 or earlier, no new info since then -> closing.