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 78630 - I18N - web report localized files not found and used
Summary: I18N - web report localized files not found and used
Status: VERIFIED DUPLICATE of bug 78260
Alias: None
Product: uml
Classification: Unclassified
Component: Reporting (show other bugs)
Version: 5.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-20 18:59 UTC by bugbridge
Modified: 2007-02-15 17:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-06-20 18:59:50 UTC
Original submitter: kfrank

Description:
This didnt happen in buzz since i18n implementation of the web reports
localized files is different in coco.

When localized Overview.html and LocalizedVars.xsl
are placed in localized jar, in the dotuml.zip, they
are not copied to userdir and thus can't be found there  - since according
to exception they are being looked for there at
<userdir>/.uml/config/WebReportSupport/
(at least LocalizedVars.xsl is - but even in the web report directory
localized Overview or LocalizedVars are not found.
-- so when showing in browser the overview and other web pgs with words/msgs from
LocalizedVar, it doesn't come from localized
com-sun-tools-ide-modeling.jar


Details - was told that just as in the en
jar, the localized com-sun-tools-ide-modeling.jar should have the dotuml.zip
at com/sun/tools/ide/modeling
and the dotuml.zip, as in the en one,
should have,
for the localized 2 files 
.uml/config/WebReportSupport/Overview_<locale.html>
and uml/config/WebReportSupport/XSL/LocalizedVars_<locale>.xsl

Attached is the pseudo localized jar and the web report dir

Exception:

java.io.FileNotFoundException:
/net/machinename/export/home4/coco/0207/0207jadirumldot/.uml/config/WebReportSupport/XSL/LocalizedVars_ja.xsl

        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at
com.embarcadero.uml.core.metamodel.core.foundation.UMLXMLManip.copyFile(UMLXMLManip.java:2693)
        at
com.sun.tools.ide.modeling.webreport.WebReportController.copyLocalizedVarScript(WebReportController.java:773)
        at
com.sun.tools.ide.modeling.webreport.WebReportController.generateReport(WebReportController.java:583)
        at
com.sun.tools.ide.modeling.webreport.WebReportController.threadGenerateReport(WebReportController.java:315)
        at
com.sun.tools.ide.modeling.webreport.WebReportController$GenerateReportThread.run(WebReportController.java:343)
        at java.lang.Thread.run(Thread.java:595)

Evaluation:
The instruction you had to package the localized files was incorrect.

When IDE starts, dotuml.zip in com-sun-tools-ide-modeling.jar ( not the
localized jar ) will be extracted to userdir if it's not there yet. So pakcaging
those two localized files in com-sun-tools-ide-modeling_ja.jar has no effect,
those files will not be copied over to userdir/.uml eventually which results in
file not found at run time.

We'll have to come up with a new scheme to deal with these two files.
Comment 1 Yang Su 2006-08-12 00:13:40 UTC
The mechanism to use localized files in report has been changed , this bug is no
longer valid, mark it as duplicate of 78260 to address i18n.

*** This issue has been marked as a duplicate of 78260 ***
Comment 2 Ken Frank 2007-02-15 17:24:59 UTC
verifying even though dup so can get it off the dashboard of ones needing
verification.

ken.frank@sun.com