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.
After having had to append // NOI18N to a gazillion lines of code commented out within /* DEBUG */ I figured there's gotta be a better way to do this. THe best thing of course would be to use NB's parsing technology and do all this on a token basis. So for example one need not use // NOI18N within comments or with "msg " + "msg part 2" + "msg part 3" spanning multiple lines. But this is a fair amount of work. Here's a slightly simpler porposal: if a file begins with /* FILENOI18N */ all strings thereafter are implicitly NOI18N. The occasional string that is in need of translation can then be escaped using // DOI18N We can become even more perverse with stuff like /* NOI18N_BEGIN */ /* NOI18N_END */ The trouble with this is that it's hard to check nesting and all that sort of stuff. I'd also like ot insist on the use of /* */ instead of //. // is defined as a "line" comment, while /* */ is more appropriately used for regions.
Resolving to remind.