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 22260 - /* FILENOI18N */
Summary: /* FILENOI18N */
Status: RESOLVED WONTFIX
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: knenicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-09 22:06 UTC by ivan
Modified: 2002-05-02 10:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2002-04-09 22:06:49 UTC
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.
Comment 1 rbalada 2002-05-02 10:26:07 UTC
Resolving to remind.