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 78262

Summary: Matisse Update Pack: localized string will be included into keys at auto-i18n
Product: guibuilder Reporter: Masaki Katakai <masaki>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: jf4jbug
Priority: P2 Keywords: I18N
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot - localized string in keys of properties

Description Masaki Katakai 2006-06-19 16:57:17 UTC
NB: 5.0 JA + Matisse Update Pack
OS: All
Locale: Japanese

When I added frame title and run Automatic Internationalization,
new entry was generated in Bundle.properties,

NewJFrame.Form.title=....

It's OK when I tried in English NetBeans. When I tried this in NetBeans
with Japanese UI, Japanese string are used,

NewJFrame.<Japanese string>.title=...

See attachment.

It seems that the string of "Form" came from the translation of

 src/form/src/org/netbeans/modules/form/Bundle.properties

	# name provided from the top-level component, which does not have a variable
name to return
	CTL_FormTopContainerName=Form

In Japanese release, this string is localized. 

It's not good that such localized strings are used in property keys.
"CTL_FormTopContainerName" is already used in 5.0 and contains
localized string already. So please use another property other than
"CTL_FormTopContainerName" to pick up English "Form" string.
Comment 1 Masaki Katakai 2006-06-19 16:58:38 UTC
Created attachment 31161 [details]
screenshot - localized string in keys of properties
Comment 2 Jana Maleckova 2006-07-31 10:56:49 UTC
version changed from dev to 5.0
Comment 3 Tomas Pavek 2006-08-09 14:05:51 UTC
Fixed in dev trunk. No name is used for the form itself, i.e. like:

NewJFrame.title=....

/cvs/form/src/org/netbeans/modules/form/I18nSupport.java
new revision: 1.7; previous revision: 1.6
Comment 4 Pavel Rehak 2006-08-23 13:04:00 UTC
Verfied.