Solaris Common Desktop Environment: Motif Transition Guide

Ensure Correct CDE NLS Environment

You must make sure that the NLSPATH environment variable is set properly. This ensures that your application will find message catalogs.

If your application calls DtInitialize(), then NLSPATH is set to the CDE default location for finding message catalogs. The default location is /<CDE_INSTALLATION>/lib/nls/msg/<locale>/<application>.cat; for example, /usr/dt/lib/nls/msg/ja/dtcm.cat.

DtInitialize() sets other variables and performs other tasks. Consult its manpage to determine whether you need this function. DtInitialize() is in libDtSvc. If your application does not already link to this library, you may not want to invoke DtInitialize() just to set NLSPATH.

If your application does not call DtInitialize(), you must set NLSPATH to ensure that your application can find message catalogs.

If your application installs or expects message files to be in a location other than the default location, you should append that location to NLSPATH.


Note -

Other CDE applications may not be able to find their message catalogs if you reset NLSPATH entirely. It is better to append to NLSPATH if your message file location differs from the default location.