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 161728

Summary: I18N : some UI messages are not from bundle
Product: cnd Reporter: Masaki Katakai <masaki>
Component: D-LightAssignee: Maria Tishkova <mromashova>
Status: RESOLVED FIXED    
Severity: blocker CC: jf4jbug
Priority: P2 Keywords: I18N
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Masaki Katakai 2009-04-02 06:24:12 UTC
It seems that some UI messages are hardcoded and not from bundle. Could you
extract these to bundle.properties for localization?

./dlight.visualizers/src/org/netbeans/modules/dlight/visualizers/CallersCalleesVisualizer.java:
            super("Go To Source");//NOI18N
./dlight.visualizers/src/org/netbeans/modules/dlight/visualizers/FunctionsListViewVisualizer.java:
            super("Go To Source");//NOI18N

./dlight.sync/src/org/netbeans/modules/dlight/sync/SyncIndicatorPanel.java:
        Legend legend = new Legend(Arrays.asList(DESCRIPTOR), Collections.<String,
String>singletonMap(THREADS_DETAIL_ID, "Threads:"));

./dlight.memory/src/org/netbeans/modules/dlight/memory/MemoryIndicatorPanel.java:
        Legend legend = new Legend(Arrays.asList(DESCRIPTOR), Collections.singletonMap(MAX_HEAP_DETAIL_ID, "Max:"));

./dlight.cpu/src/org/netbeans/modules/dlight/cpu/impl/CpuIndicatorPanel.java:
    private static final GraphDescriptor SYS_DESCRIPTOR = new GraphDescriptor(COLOR_SYS, "System");
    private static final GraphDescriptor USR_DESCRIPTOR = new GraphDescriptor(COLOR_USR, "User");
Comment 1 Masaki Katakai 2009-04-02 07:45:30 UTC
Also these strings are not from bundle now.

./dlight.indicators/src/org/netbeans/modules/dlight/indicators/graph/RepairPanel.java:
        label.setToolTipText("Indicator needs special access rights. To fix the problem click \"Repair\" button");

./dlight.indicators/src/org/netbeans/modules/dlight/indicators/graph/RepairPanel.java:
        button = new JButton("Repair...");

./dlight/src/org/netbeans/modules/dlight/api/execution/ValidationStatus.java:
            new ValidationStatus(false, false, "Initial", null); // NOI18N

./dlight.dtrace/src/org/netbeans/modules/dlight/dtrace/collector/support/DtraceDataCollector.java:
                        "dtrace is supported on SunOS only"); // NOI18N

Comment 2 Maria Tishkova 2009-04-02 09:37:07 UTC
fixed with http://hg.netbeans.org/cnd-main?cmd=changeset;node=9760b1622368