Bug 161728 - I18N : some UI messages are not from bundle
I18N : some UI messages are not from bundle
Status: RESOLVED FIXED
Product: cnd
Classification: Unclassified
Component: D-Light
6.x
All All
: P2 (vote)
: 6.x
Assigned To: Maria Tishkova
dlight-issues@cnd
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo