Files
Mozilla/l10nkits/client/windows/docs/nav40/troubleshooting.html
relliott 767fcda0dd First release of universal localization program kits
git-svn-id: svn://10.0.0.236/trunk@206 18797224-902f-48f8-a5cc-f745e15eee43
1998-04-13 23:32:42 +00:00

126 lines
4.8 KiB
HTML

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Rick Elliott">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (Win95; I) [Netscape]">
<TITLE>Troubleshooting</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000">
<H2>
<A NAME="troubleshooting"></A>5. Troubleshooting</H2>
This section discusses tools and tips for diagnosing, correcting or avoiding
problems encountered using this localization kit.
<H3>
<A NAME="idbuild"></A>Using the idBuild</H3>
A special build of the US English product is provided with this kit, called
the idBuild.&nbsp; This version of the product is designed to help you
locate where specific strings are coming from within the resources.&nbsp;
It does this by prepending to the resource string (putting in front) a
token representing the resource ID.&nbsp; The token will be in the following
form:
<UL>
<LI>
an initial letter, either M, D or S, which stands for MENU, DIALOG or STRINGTABLE.&nbsp;
(RCDATA is ignored.)</LI>
<LI>
the resource's numeric id</LI>
<LI>
for Menus and Dialogs, a dash followed by the Item number</LI>
<P>Example: D2298-3 = DIALOG2298Item3</UL>
This knowledge can help expand upon the information provided in the localization
notes by giving you the actual context in which a specific string appears.&nbsp;
It can also help you locate problematic issues, such as STRINGTABLE resources
being used in menus, concatenated strings, etc.
<P>NOTE: the idBuild is provided "AS IS" with no guarantees as to functionality,
stability or fitness for any purpose.&nbsp; It may crash, or some features
may not work due to the unexpected way in which the resources have been
modified.&nbsp; Use it at your own risk.
<P><B>To use the idBuild:</B>
<BR>&nbsp;
<UL>
<LI>
Install the current version of Communicator (4.03 as of this writing)</LI>
<LI>
Make backup copies of the 8 resource binaries listed in the<A HREF="#localize_these_files">
table above</A>.&nbsp; Store these copies somewhere safe.</LI>
<LI>
Copy the 8 resource binaries provided in the <B><TT><I>kitRoot\</I>products\client\windows\32bit\en\nav40\program\idBuild
</TT></B>directory to the installed version's <B><TT>Program</TT></B> directory
(replacing the originals).</LI>
<LI>
Start the program as usual.</LI>
</UL>
What you will see will be the modified Communicator, with resource IDs
visible next to the actual English strings.&nbsp; In some cases, you might
not be able to see the entire string because of the increased string length.&nbsp;
If absolutely necessary, you can modify the idBuild's binaries using MSDEV
to produce a more useful version, or you may simply inspect the strings
you can't fully see at runtime.
<P><FONT SIZE=-1>idBuild Main Menu</FONT>
<BR><IMG SRC="idBuild.jpg" BORDER=1 HEIGHT=366 WIDTH=673>
<P>In the image above, you can see the Communicator's main menu and the
toolbar buttons displayed with attached resource IDs. Note how most of
the menu items begin with "M", telling you they are standard menu resources.&nbsp;
However, a few begin "S", indicating they come from the STRINGTABLE resources.&nbsp;
These require special attention when assigning pickletters.
<P>If you see a string in the product itself (not a web page being displayed)
that does not have a resource ID attached, there are 4 possibilities as
it's origin:
<P>1. It is part of a multipart string.&nbsp; For example, the toolbar
buttons are made up of strings with 3 components, each separated by newline
characters (<TT>\n</TT> ).&nbsp; The first part is the status bar message;
this will have the resource ID.&nbsp; The second and third components are
the ToolTip (pop-up help message) and the button label itself.&nbsp; These
won't show the resource ID because it is prepended to the first part.
<P>2. The string comes from an RCDATA resource.&nbsp; For example, the
Help menu contains a number of entries that come from CONFIG_PREFS.&nbsp;
These are not touched by the idBuild generation process.
<P>3. The string comes from an external source.&nbsp; For example, the
idBuild doesn't contain the MFC resources, so any strings coming from MFC42.dll
will be in there original form.
<P>4. The string is hard coded in the Netscape binary.&nbsp; There are
still several strings that have not been resourced (for example, the Java
Console is entirely hard coded).&nbsp; You will not be able to localize
these for this version.
<BR>&nbsp;
<BR>&nbsp;
<CENTER><TABLE COLS=3 WIDTH="50%" >
<TR>
<TD>
<CENTER>[<A HREF="testKit.html">BACK</A>]</CENTER>
</TD>
<TD>
<CENTER>[<A HREF="returnKit.html">NEXT</A>]</CENTER>
</TD>
<TD>
<CENTER>[<A HREF="toc.html">CONTENTS</A>]</CENTER>
</TD>
</TR>
</TABLE></CENTER>
<CENTER>&nbsp;<BR>
<FONT FACE="Arial, Helvetica"><FONT SIZE=-2>1998, Copyright Netscape Communications
Corp. All Rights Reserved</FONT></FONT></CENTER>
&nbsp;
</BODY>
</HTML>