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 42492 - I18N - some messages in build output window not from locale message files
Summary: I18N - some messages in build output window not from locale message files
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2004-04-27 04:42 UTC by Ken Frank
Modified: 2007-08-31 19:11 UTC (History)
2 users (show)

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 Ken Frank 2004-04-27 04:42:03 UTC
In build output window, after doing build of a
project, some 
messages not from locale message files
(these not meant to be complete - please check all
messages
that might come from build system)

clean:
init:
deps-clean:
clean:
Deleting directory //cdp/0423proj/newProject/build
Deleting directory /cdp/0423proj/newProject/dist
jar:
init:
deps-jar:
compile:
Created dir: cdp/0423proj/newProject/build/classes
Compiling 1 source file to
/0423proj/newProject/build/classes
jar:
Created dir: /cdp/0423proj/newProject/dist
Building jar:
/cdp/0423proj/newProject/dist/newProject.jar
BUILD SUCCESSFUL (total time: 8 seconds)

--> I realize some of the words like init, clean,
jar are ant target
names, but words like "Deleting directory, Created
dir, Build
sucessful are messages to user

The only ant module I see that has our bundle file
is
in bridge.jar, and I see message like BUILD
SUCCESSFUL
in it, but when I pseudo localize this file, the
message does not
come from this file; could it be that the manifest
doesnt point
to the localizing bundle ? (just a guess)
Comment 1 Ken Frank 2004-04-27 04:42:57 UTC
corrected release to promo D
Comment 2 Jesse Glick 2004-04-27 06:17:09 UTC
It's true that "BUILD SUCCESSFUL" is loaded from a bundle but I think
the Ant module fails to load locale variants of ant/nblib/bridge.jar,
which should be straightforward to correct. Downgrading priority since
it is just one or two messages so affected.


As to the other messages, they are coming from Ant tasks, not
NetBeans. In order to localize them we would have to produce at least
partial localizations of those Ant tasks used in standard project
types, and either submit them to the Ant project (and have them be
accepted into a release we bundle), or bundle them ourselves as a
value-add. Note that since there are no localizations of Ant tasks
currently (apparently no one else cared yet), no Ant tasks look up
message strings in bundles, so we would need to produce at a minimum a
jumbo patch for the Ant project to do localized lookups of these
messages, and have it accepted into a release that we bundle. I guess
all this would be possible for promo-D but I was not expecting it to
happen so quickly.

For a subsequent promotion we will probably have prettified output
formatting for common cases (i.e. for users who do not manually edit
their generated build scripts), perhaps using rich text or tree views
or something, where the formatting would come from NetBeans and be
easily localizable; so localization of raw Ant task output would be
less of an issue.
Comment 3 Jesse Glick 2004-07-13 17:56:38 UTC
Marking as FIXED insofar as the IDE-supplied messages like Build
Finished should now be taken from bundle files in the regular Ant
module source base and should be internationalizable in the normal
way. Of course messages coming from Ant tasks are still English-only.
Comment 4 Marian Mirilovic 2005-12-20 15:47:30 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.
Comment 5 Ken Frank 2007-08-31 17:41:57 UTC
is the msg
To run this application from the command line without Ant, try:

also from ant ?

ken.frank@sun.com
Comment 6 Jesse Glick 2007-08-31 19:11:54 UTC
Yes, that is from the Ant script for j2seproject's.