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 71992

Summary: I18N: strings on Abbreviation popup are hardcoded, not from bundle
Product: editor Reporter: Masaki Katakai <masaki>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: VERIFIED FIXED    
Severity: blocker CC: jf4jbug, mgrummich, prehak
Priority: P3 Keywords: I18N
Version: 5.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: snapshot

Description Masaki Katakai 2006-01-30 05:16:35 UTC
On Abbrev popup, these strings are hardcoded, not extracted from Bundle,

"Abbreviation:"
" for expansion]"

These are defined in

./editor/codetemplates/src/org/netbeans/lib/editor/codetemplates/CodeTemplateCompletionItem.java

            // Append abbreviation
            htmlText.append("<br>Abbreviation: &nbsp;"); // NOI18N
            htmlText.append(toHtmlText(codeTemplate.getAbbreviation()));
            htmlText.append("&nbsp; ["); // NOI18N
            // Append expansion keystroke
            String mimeType =
CodeTemplateApiPackageAccessor.get().getOperation(codeTemplate).getMimeType();
            htmlText.append(AbbrevSettings.get(mimeType).getExpandKeyStrokeText());
            htmlText.append(" for expansion]</html>"); // NOI18N
            return htmlText.toString();
Comment 1 Masaki Katakai 2006-01-30 05:17:43 UTC
Created attachment 28633 [details]
snapshot
Comment 2 Vitezslav Stejskal 2006-12-18 04:53:06 UTC
Still in the main trunk.
Comment 3 Vitezslav Stejskal 2007-03-23 05:53:41 UTC
Fixed.

Checking in Bundle.properties;
/cvs/editor/codetemplates/src/org/netbeans/lib/editor/codetemplates/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.5; previous revision: 1.4
done
Checking in CodeTemplateCompletionItem.java;
/cvs/editor/codetemplates/src/org/netbeans/lib/editor/codetemplates/CodeTemplateCompletionItem.java,v
 <--  CodeTemplateCompletionItem.java
new revision: 1.16; previous revision: 1.15
done
Comment 4 Ken Frank 2007-05-26 18:01:28 UTC
message is now in codetemplates bundlel file.

ken.frank@sun.com