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 - Matisse Update Pack: localized string will be included into keys at auto-i18n
Summary: Matisse Update Pack: localized string will be included into keys at auto-i18n
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-06-19 16:57 UTC by Masaki Katakai
Modified: 2006-10-23 16:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot - localized string in keys of properties (7.74 KB, image/png)
2006-06-19 16:58 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-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.