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 74057 - I18N - Userdir Migration - unlocalized dialog box
Summary: I18N - Userdir Migration - unlocalized dialog box
Status: VERIFIED DUPLICATE of bug 55747
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-03-27 22:23 UTC by jlam
Modified: 2008-12-22 19:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
localized upgrade panel in French (7.87 KB, image/png)
2006-03-28 10:49 UTC, Jiri Rechtacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlam 2006-03-27 22:23:23 UTC
User migration "Yes" and "No" options are no localized.

For the migration you use NotifyDescriptor.YES_NO_OPTION.  

ide/launcher/upgrade/AutoUpgrade.java
        DialogDescriptor dd = new DialogDescriptor (
            new AutoUpgradePanel (source.getAbsolutePath ()),
            NbBundle.getMessage (RaveAutoUpgrade.class, "MSG_Confirmation_Title"
), // NOI18N
            true,
            NotifyDescriptor.YES_NO_OPTION,
            NotifyDescriptor.NO_OPTION,
            null
        );

It seems necesary modules are loaded to do the standardized localizing need for
this dialog box.

Line 196: openide/dialogs/src/org/openide/DialogDisplayer.java
Comment 1 Jiri Rechtacek 2006-03-28 10:47:24 UTC
The current architecture of NetBeans doesn't allow call into Dialogs API in
Upgrade dialog because Dialogs module is not loaded yet. But, it not need
because all objects of dialogs are localizing . Text is loaded from Bundle and
buttons are localizing by standard way in JOptionPane. See the attached
screenshot which shows it.

*** This issue has been marked as a duplicate of 55747 ***
Comment 2 Jiri Rechtacek 2006-03-28 10:49:54 UTC
Created attachment 29441 [details]
localized upgrade panel in French
Comment 3 Ken Frank 2006-03-28 17:29:52 UTC
Clarification needed - is it that this message comes from jdk and thus would
only show as localized if locale user is in is one that jdk localizes for ?

or is the key/value for these words in nb bundle files (or needs to be ?)

ken.frank@sun.com
Comment 4 jlam 2006-03-28 18:36:08 UTC
You are right, I found this fix in the newer Netbeans sources.  Thanks!
Comment 5 Marian Mirilovic 2006-03-29 07:16:38 UTC
verified duplicate