Browse Prior Art Database

Language Switching Using the Product Loader

IP.com Disclosure Number: IPCOM000121608D
Original Publication Date: 1991-Sep-01
Included in the Prior Art Database: 2005-Apr-03
Document File: 1 page(s) / 44K

Publishing Venue

IBM

Related People

Cox, D: AUTHOR [+3]

Abstract

This article describes a method for OS/2* Office to load resources and strings based on National Language Support (NLS) language currently in use.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 71% of the total text.

Language Switching Using the Product Loader

      This article describes a method for OS/2* Office to load
resources and strings based on National Language Support (NLS)
language currently in use.

      In order to support products in multiple languages using the
same code, language-specific text strings must be isolated and loaded
based on the current language in use.

      OS/2 Office packaged language-specific text strings in resource
DLLs which have the language code embedded in the name of the DLL.
Applications request resources using the Product Loader program,
which was written to load DLLs based on an ID rather than a string.
An application will always request the same resource ID from the
product loader.  The Product Loader will then look up the appropriate
DLL name from the mapping table, which maps the IDs to the particular
filename of the resource.  However, at this point, the Product Loader
will also determine if this filename is a filename requiring NLS
language determination.  This is accomplished by the Product Loader
in the following manner:
o  A DLL name which contains "++" in any two positions will denote
language dependence to the Product Loader.  The two plus signs are
replaced by the two character language code of the language currently
in use. "EXP++", for example, will denote EXPUS.DLL (for US English)
or EXPFR.DLL (for French).

      When the Product Loader encounters a DLL name which contains
the language-dependent place hol...