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.
The current version of NewProjectWizardOperator and NewFileWizardOperator always look for the dialog which has title start with "New". But in a localized products it needs to be changed. I have a problem to use these Operators for Russian localized products. NewProjectWizardOperator and NewFileWizardOperator are always timed out in Russian localization. Would you change the invoke method and constructors to support specify the dialog title? Please see the attached patch file for detail. In my testing that patch works in my environment, but it needs to be reviewed. And I think you may have more better implementation. Back ground ----------- In English version, the dialog title of New Wizard is always start with "New" string. e.g.: Initial title: New Project when selecting Standard Java Application: New Java Application when selecting Web Application: New Web Application NewProjectWizardOperator is always initialized with the string "New" (LBL_NewProjectWizard_Subtitle in org.netbeans.modules.project.ui.Bundle) In Russian localization, the translated pages needs to be different as follows: e.g.: Initial title: AAA BBBBBBB when selecting Standard Java Application: XXX YYYYYYY when selecting Web Application: XXX ZZZZZZZ LBL_NewProjectWizard_Subtitle can not be always used in Russian localization. We have the same issue in NewFileWizardOperator.
Created attachment 31306 [details] patch for NewProjectWizardOperator.java
Created attachment 31307 [details] patch for NewFileWizardOperator.java
P.S. The reason for such Russian translation, if anyone is interested, is as follows: "New Project" should be translated as "Create a project" in action name and "Creating a project" in dialog title. Language rules dictate that actions should be verb forms and dialog titles should be noun forms.
From what you said it should be translated: New Project - Sozdat Novyj projekt New Java Application - Sozdat Prilozenie Java But it is translated: New Project - Novyj projekt New Java Application - Sozdat Prilozenie Java Anyway I can fix it as Keiichio suggested.
I'm now checking all such occurenses and fixing them... You know, when translating "New Project" without context that it's dialog title (limitation of my translation software - OmegaT), it's hard to translate it as "Creating a project" from the first time.
Patches were applied on release50 branch and will be merged to release55 branch and trunk. /cvs/jellytools/src/org/netbeans/jellytools/NewProjectWizardOperator.java,v <-- NewProjectWizardOperator.java new revision: 1.3.46.1; previous revision: 1.3 done Checking in NewFileWizardOperator.java; /cvs/jellytools/src/org/netbeans/jellytools/NewFileWizardOperator.java,v <-- NewFileWizardOperator.java new revision: 1.4.4.1; previous revision: 1.4
Thank you very much for your applying patches! jellytools can be used for the latest Russian localization without any changes.