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 68774

Summary: I18N - some msgs from profiler engine not from bundle
Product: profiler Reporter: Ken Frank <kfrank>
Component: BaseAssignee: Jiri Sedlacek <jis>
Status: CLOSED FIXED    
Severity: blocker CC: jf4jbug, mgrummich
Priority: P2 Keywords: I18N
Version: 5.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Ken Frank 2005-11-16 01:14:25 UTC
Some profiler core messages. like "Profiler Engine - waiting for connection on
port ...
are not from bundle file. Jiri knows more about these.
Comment 1 Jiri Sedlacek 2005-11-25 18:32:16 UTC
Hopefully fixed this bug. Because NbBundle cannot be used in Profiler engine 
and ResourceBundle doesn't work correctly in context of Profiler agent, 
searching for localized bundle had to be implemented from scratch.

Searching for localized bundle works this way (locale zh_CN, source 
in ../lib/jfluid-server.jar):

if ../lib/locale directory exists, Bundle.properties is searched in:
 ../lib/locale/jfluid-server_zh_CN.jar
 ../lib/locale/jfluid-server_zh.jar
 ../lib/locale/jfluid-server.jar

if not found or ../lib/locale doesn't exist, Bundle.properties is searched in:
 ../lib/jfluid-server_zh_CN.jar
 ../lib/jfluid-server_zh.jar
 ../lib/jfluid-server.jar

For searching Bundle.properties standard ResourceBundle approach is used:
 Bundle_zh_CN.properties
 Bundle_zh.properties
 Bundle.properties

Note that branding (_nb_zh_CN) can't be used here as there is no way how to 
determine current branding passed to NB.

Fixed for M11. Please reopen if any problems occur.
Comment 2 Alexander Kouznetsov 2007-03-14 09:52:44 UTC
Closing old issues