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 78888 - I18N - Wizard Dialog title in NewProjectWizardOperator and NewFileWizardOperator
Summary: I18N - Wizard Dialog title in NewProjectWizardOperator and NewFileWizardOperator
Status: VERIFIED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Jellytools (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-06-22 10:23 UTC by Keiichi Oono
Modified: 2006-07-10 06:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch for NewProjectWizardOperator.java (974 bytes, patch)
2006-06-22 10:25 UTC, Keiichi Oono
Details | Diff
patch for NewFileWizardOperator.java (3.17 KB, patch)
2006-06-22 10:26 UTC, Keiichi Oono
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keiichi Oono 2006-06-22 10:23:20 UTC
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.
Comment 1 Keiichi Oono 2006-06-22 10:25:05 UTC
Created attachment 31306 [details]
patch for NewProjectWizardOperator.java
Comment 2 Keiichi Oono 2006-06-22 10:26:16 UTC
Created attachment 31307 [details]
patch for NewFileWizardOperator.java
Comment 3 _ mihmax 2006-06-23 10:29:37 UTC
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.
Comment 4 Jiri Skrivanek 2006-06-23 12:08:39 UTC
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.
Comment 5 _ mihmax 2006-06-23 13:32:29 UTC
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.
Comment 6 Jiri Skrivanek 2006-06-26 15:28:03 UTC
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
Comment 7 Keiichi Oono 2006-07-10 06:21:34 UTC
Thank you very much for your applying patches!
jellytools can be used for the latest Russian localization without any changes.