Novell NETWARE 6-DOCUMENTATION Manual page 2143

Table of Contents

Advertisement

Specifying Locales within Template Filenames
214 Getting Results with Novell Web Services
The first line of the example indicates the Chinese language (ZH) and the
geographic location as Taiwan. The second line of the example indicates the
Chinese language (ZH) but China as the geographic location.
This combination of language and country codes is called a locale. For more
information about locales, refer to
NetWare Web Search Server consists of three primary servlets: SearchServlet,
PrintServlet, and AdminServlet. Each servlet returns information to the Web
client using server-side templates. Templates are stored on at
volume:\searchroot\TEMPLATES. For more information about templates, see
Chapter 16, "Understanding Templates," on page
After determining a Web client's locale, Web Search attempts to locate a
matching search result template. That is, each of the Web Search services
automatically attempts to locate a version of the requested template that most
closely matches the Web client's locale.
IMPORTANT:
NetWare Web Search cannot find locale-specific templates without
the two-character language code and the optional two-character country code. See
Table 16 on page 222
For example, if a Web client requests to see search results using the
ResultListTemplate.html file and the client is a Chinese language user from
Taiwan and the server is Russian, then Web Search will try to find a Chinese-
Taiwan version of the template first (ResultListTemplate_zh_TW.html)
because that exactly matches the client's language and country. The following
table lists the template names the system would look up in this example in
order of priority.
Template Name
1. ResultListTemplate_zh_TW.html
2, ResultListTemplate_zh.html
3. ResultListTemplate.html
4. ResultListTemplate_ru.html
5. ResultListTemplate_en.html
6. ResultListTemplate.html
Table 16 on page
for more information about language code syntax.
What Web Search Concludes
Specific client locale
Simplified client locale
Client requested name
Specific server locale (no simplified
versions)
English language version
Up to the first underscore ( _ )
222.
177.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netware 6

Table of Contents