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.
Summary: | I18N: "displayName" is used in both UI and generated codes | ||
---|---|---|---|
Product: | javafx | Reporter: | Masaki Katakai <masaki> |
Component: | Unsupported | Assignee: | David Kaspar <dkaspar> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | I18N |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Masaki Katakai
2010-05-24 15:33:11 UTC
I am going to fix it ASAP. Meanwhile feel free to commit your I18N bundles. Fixed in Composer repository as 100463976ca4 changeset. The change will be visible in next Composer continuous build. The root cause of the issue is caused in properties.control.FieldPanel class and affects all properties. It took their display-name instead of field-name when generating code. Currently the identified in generated code is composed as: instanceNameOfTheComponent + fieldNameOfThePropertyOfTheComponent optionally it may have a suffix in the following format: "At" + selectedStateName E.g. buttonAction or buttonActionAtNewState1 Note that the selectedStateName is entered by an user and is I18N as well. Its initial value is taken from "LBL_new_state_name" key in: javafx.composer.design/org/netbeans/modules/javafx/composer/design/states/Bundle.properties file. Therefore there still may be a chance to have a multi-bytes character in the code. If this is a problem we can remove the key from bundle (i.e. un-I18N it). Or just do not localize this single key. |