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 203936

Summary: I18N: default platform name "Default JavaFX Platform" is not localized
Product: javafx Reporter: Masaki Katakai <masaki>
Component: PlatformAssignee: Anton Chechel <manowar>
Status: VERIFIED FIXED    
Severity: normal CC: mmirilovic
Priority: P2 Keywords: I18N
Version: 7.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot

Description Masaki Katakai 2011-10-19 03:36:13 UTC
Created attachment 112201 [details]
screenshot

build: dev 201110171706

Please refer to the screenshot. "Default JavaFX Platform" is not localized.

It seems that it comes from the following.

./javafx2.platform/src/org/netbeans/modules/javafx2/platform/Utils.java:
    public static final String DEFAULT_FX_PLATFORM_NAME = "Default JavaFX Platform"; // NOI18N

I understand it needs be localized because it's displayed on UI.

However, I'm not sure if this string will be used in .properties files
in project and user directory as setting files. I think it's better
to use just ascii in those setting files.

I grep-ed this string in project file and user directory.

./NetBeansProjects/JavaFXApplication1/nbproject/project.properties:platform.active=Default_JavaFX_Platform
./dev/build.properties:platforms.Default_JavaFX_Platform.bootclasspath=${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\resources.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\rt.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\sunrsasign.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\jsse.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\jce.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\charsets.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\classes;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\ext\\dnsns.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\ext\\localedata.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\ext\\sunec.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\ext\\sunjce_provider.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\ext\\sunmscapi.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\ext\\sunpkcs11.jar;${platforms.Default_JavaFX_Platform.home}\\jre\\lib\\ext\\zipfs.jar
./dev/config/Services/Platforms/org-netbeans-api-java-Platform/Default_JavaFX_Platform.xml:<platform default="no" name="Default JavaFX Platform">
./dev/config/Services/Platforms/org-netbeans-api-java-Platform/Default_JavaFX_Platform.xml:        <property name="platform.ant.name" value="Default_JavaFX_Platform"/>

It seems that "Default JavaFX Platform" is converted to "Default_JavaFX_Platform".
So once we localize "Default JavaFX Platform", will "Default_JavaFX_Platform" be
changed and contain localized string?

It's not good - it's better to use just ascii in such id by default.
(If user enter multibyte, it's OK).

So is it possible to provide resource bundle just for display purpose?
I think platform id "Default_JavaFX_Platform" should not be changed.
Comment 1 Anton Chechel 2011-11-03 16:14:15 UTC
Yes, that name could and should be localized.

Fixed.
http://hg.netbeans.org/jet-main/rev/3742f862b094
Comment 2 Quality Engineering 2011-11-04 15:03:21 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3742f862b094
User: Anton Chechel <manowar@netbeans.org>
Log: #203936: localazing default platform name
Comment 3 Stepan Zebra 2011-12-06 15:26:39 UTC
verified in 7.1 FCS