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 45218 - I18N - jsp syntax popup info can't be localized
Summary: I18N - jsp syntax popup info can't be localized
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2004-06-18 21:33 UTC by Ken Frank
Modified: 2006-03-24 10:01 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 Ken Frank 2004-06-18 21:33:10 UTC
The popup windows with syntax info that appear
when use  does
code completion, come from
ide4/docs/syntaxref12.zip.

although l10n does not normally localize 3rd party
docs, since this
is visible, wanted to know if the code is set up
to find the localized
version of those docs or would special coding be
needed and./or
entry in a bundle file pointing to the localized
ones, like
at ide4/docs/locale/servlet24-docs_<locale>.zip,
for example.
Comment 1 Petr Pisl 2004-06-21 10:00:08 UTC
In the code I can change only one constant and it should work. The
localized file should be in ide4/docs/syntaxref12_<locale>.zip. The
html pages in the zip file have to have the same name and the same
anchors. The anchors are used for defining of particular parts for CC.
Comment 2 Geertjan Wielenga 2004-06-24 11:28:23 UTC
Can you look at this?
Comment 3 Patrick Keegan 2004-06-24 11:41:32 UTC
I'm not sure what I can do about this. This is a coding issue, not a
wordsmithing issue.
Comment 4 Petr Pisl 2004-09-03 11:07:30 UTC
I think that the agreement was, that we will not localized. I close
the bug. If someone disagree, please reopen. 
Comment 5 Ken Frank 2004-09-08 19:35:33 UTC
as per email with Petr, l10n wanr\ts to localixe this; and Petr 
mentioned one line fix

csn it be fixed now socan be tested and te\hen later updated doc 
replace\ing existing one


question -how to deliver to l10n - what module, what l10n.list

and in product, where does localized file live and how shd it be 
named ?

ken.frank
09/12.04
Comment 6 Petr Pisl 2004-10-07 13:33:33 UTC
I committed into the trunk new version of JSP Syntax Reference. The
zip file is located at {cvs_root}/web/external/syntaxref20.zip. The
code is prepared for localization and there are the conditions for
well displaying localized text.

1) The localized zip file has to have name syntaxref20_<locale>.zip.
Example syntaxref20_cs.zip for Czech localization.
2) The html files  have to have the same names.
3) The structure of the html files has to be the same. Mainly the tags
<a name="xxxx"> has to remain. The numbers from these tags are used
for finding the appropriate information.
4) Add the localized zip file to the build. Add to the
/web/external/build.xml to the target netbeans-extra this row:
<copy file="../external/syntaxref20_<locale>.zip"
todir="${netbeans.dest.dir}/${cluster.dir}/${nb.docs.dir}"/>
Comment 7 Ken Frank 2004-10-12 20:38:17 UTC
verified in 1011 daily build - the localized info from this
file shows when using code completion in jsp editor.

for l10n
 need to add meta encoding tag

 translate all items that might be translated but do
not modify the <name=....> tags

name the file syntaxref20_<locale>.zip

have localized build.xml modified so it installs
in <nb>/ide4/docs/ dir, next to the en one

ken.frank@sun.com
10/12/2004