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 - I18N: strings on Abbreviation popup are hardcoded, not from bundle
Summary: I18N: strings on Abbreviation popup are hardcoded, not from bundle
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-01-30 05:16 UTC by Masaki Katakai
Modified: 2007-11-05 13:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot (12.02 KB, image/jpeg)
2006-01-30 05:17 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
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