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.

Bug 210654 - Undo/Redo Auto Internationalization Check Box Rewrites Properties Files Different
Summary: Undo/Redo Auto Internationalization Check Box Rewrites Properties Files Diffe...
Status: RESOLVED DUPLICATE of bug 148345
Alias: None
Product: java
Classification: Unclassified
Component: I18N (show other bugs)
Version: 7.2
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-04 00:59 UTC by MackSix
Modified: 2012-04-04 12:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-04-04 00:59:07 UTC
1.) Create a single Form Project with Automatic Internationalization and 3 languages.
2.) Un-check Automatic Internationalization for the Form.
3.) Delete all .properties files from project.
4.) Save
5.) Check Automatic internationalization again.

Notice that previous .property files are re-written to the project.

Problem is the Template notification comment is written twice in the Bundles.properties files and the other properties files may have new spaces written between each line.

Expected Results: The .properties files are rewritten identically the same as before they were deleted.

Workaround: Remove the extra Template comments and spaces.

See video:

http://youtu.be/BDJtth1YsdM
Comment 1 Ralph Ruijs 2012-04-04 12:47:10 UTC
Thanks for the well-documented report and video. Unchecking and checking the Automatic internationalization checkbox is not the same as undo, but will create new .properties files using the values it knows. (Values in the bundle file, not related to the Form, are lost).

The problem with the comments, as reported in #148345, is they are incorrectly assigned to the first value. So, when the .properties file is created, it will create a new file from the template (comment #1) and add the value with its comment (comment #2).

Marking as duplicate.

*** This bug has been marked as a duplicate of bug 148345 ***