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 - I18N : some UI messages are not from bundle
Summary: I18N : some UI messages are not from bundle
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: D-Light (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Maria Tishkova
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2009-04-02 06:24 UTC by Masaki Katakai
Modified: 2009-04-02 09:37 UTC (History)
1 user (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 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