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 126742 - I18N - Generate Sample XML dlg has message not from pseudo localized bundle file
Summary: I18N - Generate Sample XML dlg has message not from pseudo localized bundle file
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords: I18N
: 126738 126739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-05 17:07 UTC by kaa
Modified: 2008-02-13 13:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (81.07 KB, image/jpeg)
2008-02-05 17:08 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2008-02-05 17:07:03 UTC
Product Version: NetBeans IDE Dev (Build 200801290002)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)

Steps:
1. Create Xslt Module
2. Add XML Schema then select it
3. Invoke Generate Sample XML from the pop-up

Generate Sample XML wizard appears. It has a message coming not from pseudo localized bundle file.
I'm running in the Japan locale, using a pseudo localized Netbeans.
The message is pseudo from PROP_xml_content_panel_name=\244\310\344\356Jol\344\356XML Model Generation
Options\344\345\244\355 in org-netbeans-modules-xml
Comment 1 kaa 2008-02-05 17:08:57 UTC
Created attachment 56092 [details]
image
Comment 2 Sonali Kochar 2008-02-05 19:36:30 UTC
*** Issue 126739 has been marked as a duplicate of this issue. ***
Comment 3 Sonali Kochar 2008-02-05 19:37:01 UTC
*** Issue 126738 has been marked as a duplicate of this issue. ***
Comment 4 Sonali Kochar 2008-02-07 22:41:58 UTC
I have fixed the PROP_xml_content_panel_name error

Where the numbers(1,2..) are concerned, the swing constructors takes int and not strings so that cant be fixed.

Fixed
changeset 8f601b0736df in main
details: http://hg.netbeans.org/main?cmd=changeset;node=8f601b0736df
Comment 5 Ken Frank 2008-02-08 00:55:47 UTC
as to comment about swing and ints, does this mean that some messages shown in gif
cannot be fixed to come from bundle files ?

ken.frank@sun.com
Comment 6 Sonali Kochar 2008-02-08 01:37:03 UTC
Yes, the 1,2 cant be fixed because they dont come from bundle. I am using a SpinnerNumberModel that requires int 
parameters

I use this api:
SpinnerNumberModel(int value, int minimum, int maximum, int stepSize) 
          Constructs a SpinnerNumberModel with the specified value, minimum/maximum bounds, and stepSize.

I can either use int, double or Number but not strings, so it cant come from a bundle file.
Comment 7 Ken Frank 2008-02-08 02:14:45 UTC
thanks for explaining; the actual numbers
dont need to be translated; but the words
next to it like XML Model Generations Options
do and need to be in bundle file,  but I'm guessing those words will be since
all other such msgs in file->new xml wizards
come from bundle, and this is another kind
of wizard ?

ken.frank@sun.com
Comment 8 Sonali Kochar 2008-02-08 16:08:56 UTC
Yes, thats what i fixed.
Comment 9 kaa 2008-02-11 09:18:40 UTC
Product Version: NetBeans IDE Dev (Build 200802110004)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP
Comment 10 kaa 2008-02-13 13:58:20 UTC
needs to be re-verified
Comment 11 kaa 2008-02-13 13:59:20 UTC
verified with correct build:
Comment 12 kaa 2008-02-13 13:59:37 UTC
Product Version: NetBeans IDE Dev (Build 200802120006)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP