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 99036 - I18N - can't create a test in other locale if template file not in localized
Summary: I18N - can't create a test in other locale if template file not in localized
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-03-26 21:05 UTC by Ken Frank
Modified: 2007-05-24 20:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (124.86 KB, image/gif)
2007-03-26 21:06 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-03-26 21:05:50 UTC
assumption here is that we don't require template files (vs template descriptor
html files) to be localized and the en ones are used.

 but I notice in 551 junit
l10n kit there is one .java.template file

and in nb6, using pseudo localized junit jar (without any of the tempate files
in it) that I can't create a junit test (am using a j2se project).
see attached image with error msg.
 I don't think
it should be required to have localized template and thats why filing the issue
and since no other such template files are in any l10n kit.
(running in another locale for which there was no pseudo localized junit jar,
there was no error msg)

---> Is it required to have these localized or at least present in the localized
jar file ?  
I tried to insert the .template ones into the localzied jar, keeping same naming
but still got the error popup = what is the rule for their naming -
error popu talks of a .java file but these are named as .java.template.


(for 551 there is one .template file and for nb6 are 4 of them)
Comment 1 Ken Frank 2007-03-26 21:06:53 UTC
Created attachment 39978 [details]
image
Comment 2 Ken Frank 2007-03-29 21:45:50 UTC
This is blocking testing for the common situation of a user running using
localized bits.

 need to know at least if the problem is that its expected that some localized
.template needs to be in localized jar, or if its just that its not using the
one in the regular jar when one is in other locale.

if its that it expects localized .template, that is something that shouldnt be
needed
but for testing can insert it if I know what should be the name of the localized
.template  file.

nb55 localized does not have any .template files in the localized junit jar.

ken.frank@sun.com
Comment 3 Ken Frank 2007-03-29 22:43:44 UTC
this happens when choosing the junit1.4 when running in pseudo localized
but not when running in other locale for which is not pseudo localized.

it does not happen if the 1.3 is chosen in pseudo localized situation.

ken.frank@sun.com

Comment 4 Ken Frank 2007-04-18 03:26:35 UTC
It does also happen if 1.3 is chosen, and once either 1.4 or 1.3 is chosen,
and the popup as in the attached is shown, one cannot try to create another
test in this project - one needs to start another project.

--> Can someone on this team comment on this issue ?

ken.frank@sun.com
Comment 5 Marian Petras 2007-04-18 06:05:42 UTC
Fixed in the trunk (i.e. for NetBeans 6.0).

Modified file:
   junit/l10n.list   (1.9)

Diff:
http://junit.netbeans.org/source/browse/junit/l10n.list?r1=1.8&r2=1.9&diff_format=u
Comment 6 Marian Petras 2007-04-18 06:06:52 UTC
It needn't be localized in NetBeans 5.5.1 either. Should I fix it in the branch
for NB 5.5.1, too?
Comment 7 Ken Frank 2007-04-23 21:41:59 UTC
just wanted to check - the fix was some code changes besides modifying l10n.list ?

I did not pseudo localize the templete file to begin with, so I think the problem
was in actual code, but below I see fix mentioned is just about l10n.list
(that is, the code changes so it wont look for some template file besides in en
jar)

ken.frank@sun.com
Comment 8 Marian Petras 2007-04-24 07:13:03 UTC
I did not make any other changes besides modification of l10n.list.
Comment 9 Ken Frank 2007-04-24 16:00:43 UTC
I realize the description was not clear, since it focused on the template file
and not the problem seen.

I will open a new one on actual problem.

ken.frank@sun.com

Comment 10 Ken Frank 2007-05-24 20:25:42 UTC
closed and filed new one 104479 on actual problem.

ken.frank@sun.com