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 96734 - I18N: Localization of Binding customization annotation
Summary: I18N: Localization of Binding customization annotation
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ritesh Adval
URL:
Keywords: I18N
Depends on:
Blocks: 96813
  Show dependency tree
 
Reported: 2007-02-28 02:09 UTC by Ritesh Adval
Modified: 2007-11-07 17:16 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JMS Operation property sheet (41.64 KB, image/png)
2007-10-29 19:34 UTC, Shivanand Kini
Details
bpel Property property sheet (41.31 KB, image/png)
2007-10-29 20:08 UTC, Shivanand Kini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ritesh Adval 2007-02-28 02:09:22 UTC
The localization of binding customization annotation should be provided.

(1)The annotation can be added to provide grouping of attributes of an binding
element;

ex:

<xs:element name="operation" type="jms:tOperation">
		<xs:annotation>
			<xs:documentation>
	      	"operation" indicates a JMS protocol based operation.
	      </xs:documentation>
              <xs:appinfo>
                <prop:ElementProperties 
xmlns:prop="http://xml.netbeans.org/schema/wsdlui/property">
                    <prop:PropertyGroup name="Common" groupOrder="1" />
                    <prop:PropertyGroup name="Consumer" groupOrder="2" />
                    <prop:PropertyGroup name="Provider" groupOrder="3" />   

The groups created in property sheet will have names Common,Consumer,Provider.
We need to allow this name to be localized.

So proposed solution could be like this:

Use spi to get optional bundle.

use following key format:

group name key=<element name>_groupName_displayName


(2) create a localized name for a grouped property customizer.

The group property customizer is something like element or type chooser.

GroupedProperty name key=<element name>_<displayName attribute value of
GroupedProperty>_displayName


Also for documentation of a grouped property the key could be:

GroupedProperty documentation key=<element name>_<displayName attribute value of
GroupedProperty>_documentation
Comment 1 Ken Frank 2007-05-23 00:32:30 UTC
As to what gets actually translated,  those words/strings will still be in a
Bundle.properties file ?
(since we dont have xsl or xml files translated)

And where in ide are these strings seen; this will help in testing this solution.

Finally, can this be made p2 since that is more appropriate for issues about
words/strings to translate
since its important for user in other locale.

ken.frank@sun.com
Comment 2 Ken Frank 2007-10-03 17:59:38 UTC
please clarify about questions in previous comment as this seems like a p2
issue if relates to strings/msgs that will be translatable.

ken.frank@sun.com
Comment 3 Shivanand Kini 2007-10-12 02:22:58 UTC
Localization is supported, if keys are added as follows in the bundle.properties
1. For property category names to be LBL_GRP_$(PropertyGroup.Name)
2. for grouped property the key in the bundle should be LBL_${GroupedProperty.displayName)

Added key/value in bundle.properties wherever used.
Comment 4 Ken Frank 2007-10-12 03:00:34 UTC
Thanks for fixing it.

please let me know what product jar(s) have these values in which bundle files in each
so I can be sure to pseudo localize it ok for our verification.

(and in what build the fix that has these new key/values in the bundle files of those jars) ?

ken.frank@sun.com
Comment 5 Ken Frank 2007-10-18 20:37:31 UTC
Its still not clear what the fix is and how its done as to the
bundle files - see original quesitons below, so it can't be verified
yet.  please provide that information.

ken.frank@sun.com
Comment 6 Shivanand Kini 2007-10-29 19:34:21 UTC
Created attachment 51933 [details]
JMS Operation property sheet
Comment 7 Ken Frank 2007-10-29 19:48:07 UTC
Andrey,

here are the msgs that need to be verified

org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_Basic=Basic
org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_JNDI=JNDI
org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_Common=Common
org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_Consumer=Consumer
org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_Provider=Provider
org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_Message=Message
org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_Encoding=Encoding
org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_ReadWriteMessageHeaders=Read-Write Message Headers
org-netbeans-modules-wsdlextensions-jms/Bundle.properties.1:LBL_GRP_ReadOnlyMessageHeaders=Read-Only Message Headers

ken.frank@sun.com
Comment 8 Shivanand Kini 2007-10-29 20:07:53 UTC
There are two use cases here:
1. On the property sheet of any extensibility elements, I18N of category names in a property sheet.
2. I18N of property names, which do not correspond to the schema element names. In some case, two or more elements are
combined if they are mutually exclusive.

For first case, the steps are as follows: (See screen shot "JMS Operation property sheet")
1. Create a new WSDL Document
2. In the concrete configuration pane, select the JMS protocol.
3. Under Bindings, click on jms:operation, in the properties see category names such as Common, Consumer etc.

For second case, the steps are as follows: (See screen shot "bpel Property properties sheet")
1. Right click on Extensibility Elements folder.
2. Add Property
3. In the property sheet, see "Element or Type"
or add a property alias, in property sheet see "Element or Type or Message part"


Comment 9 Shivanand Kini 2007-10-29 20:08:44 UTC
Created attachment 51940 [details]
bpel Property property sheet
Comment 10 Ken Frank 2007-10-29 20:39:22 UTC
Skini,

thanks for the information and gifs.

Andrey, it looks ok to me in following the steps but  please verify also since you are the expert in this area.

ken.frank@sun.com
Comment 11 kaa 2007-11-07 17:16:32 UTC
verified: messages from steps are looking ok with build 1106, ja_JP.