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 181808

Summary: I18N : hardcoded strings in SpellcheckerOptionsPanel.java
Product: editor Reporter: Masaki Katakai <masaki>
Component: SpellcheckerAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal Keywords: I18N
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Masaki Katakai 2010-03-10 21:02:41 UTC
I understand it's not time to finalize UI strings now but please consider
to extract these strings to Bundle.properties by default.

It seems that these strings are hardcoded now, but will be localized at FCS.

org/netbeans/modules/spellchecker/options/SpellcheckerOptionsPanel.java:

                        setError("Locale is empty");
                        setError("Invalid locale");
                        setError("Unknown language");
                            setError("Unknown country");
                            setError("Unsupported locale");

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Dictionaries"));
        org.openide.awt.Mnemonics.setLocalizedText(jButton4, "Add...");
        org.openide.awt.Mnemonics.setLocalizedText(jButton5, "Remove");
        DialogDescriptor dd = new DialogDescriptor(panel, "Add Dictionary");
Comment 1 Masaki Katakai 2010-03-10 21:06:43 UTC
These "Spellchecker" needs to be extracted to Bundle.properties too. I think it will be displayed on Tab.

org/netbeans/modules/spellchecker/options/SpellcheckerOption.java:

    @Override
    public String getDisplayName() {
        return "Spellchecker";
    }

    @Override
    public String getTooltip() {
        return "Spellchecker";
    }
Comment 2 Jan Lahoda 2010-03-14 20:09:50 UTC
The panels use bundles now:
http://hg.netbeans.org/jet-main/rev/e82e46573210
The SpellcheckerOption file does not exist anymore (the new registration loads the name from a bundle).