Simplified Chinese Solaris User's Guide

Starting OpenWindows

This section describes the OpenWindows files required for using the Simplified Chinese operating environment.

Checking Your User Environment for the First Time

Before you log in, your system administrator should have set your required user environment variables and corresponding entries in the .cshrc file in your home directory. These system environment variables are essential to using Simplified Chinese features.

.cshrc File

These system environment variables might not have been set. So the first time you log in, before you start OpenWindows for the first time, check to make sure lines like the following are in the .cshrc file in your home directory:


setenv LANG zh
setenv OPENWINHOME /usr/openwin
 
set path=( /usr/SUNWale/bin $OPENWINHOME/bin $path )
 
...
 
if ($?USER != 0 && $?prompt != 0) then
   /bin/stty cs8 -istrip defeucw
endif

Make sure the LANG variable is set to C (ASCII) or zh (Chinese) before the if...endif statement and that no prompt is set before the if...endif.

If these lines are not present or are different, contact your system administrator. If you are your own system administrator or an advanced user, refer to Simplified Chinese Solaris System Administrator's Guide for further information on setting up your Simplified Chinese Solaris system.

.openwin-init File

If you have a .openwin-init file in your home directory and might use the Simplified Chinese character input facilities, check this file for the presence of an htt command, as described in "How and When htt Is Started".

.xinitrc File

If your system has a .xinitrc file in your home directory, check and make sure it contains at least the lines provided in Simplified Chinese Solaris $OPENWINHOME/lib/Xinitrc file.

Starting the Simplified Chinese OpenWindows Environment

After you verify that your .cshrc file has set your user environment correctly for Simplified Chinese language operation, you are ready to start the Chinese OpenWindows environment as follows:

    Type the following command at the system prompt to start the Simplified Chinese OpenWindows environment:


system% openwin 

Using Localization on the Workspace Properties Worksheet

The Simplified Chinese OpenWindows Workspace Properties worksheet contains a localization field. To change the language setting for the next OpenWindows tool you start:

  1. Choose Properties... on the main window Workspace menu.

  2. Choose the Locale category on the Category pull down menu.

    The English and Simplified Chinese versions of the Workspace Properties worksheet appear as follows:

    GraphicGraphic

    You can set the display and input mechanisms of the Simplified Chinese OpenWindows environment by using the Locale field in the Workspace Properties worksheet. You can switch between the U.S.A. and the China setting.

    The Locale setting determines which characters (ASCII, Simplified Chinese) appear in new tool windows when they are started. Changing the locale does not affect the appearance or operation of tools windows that are started before the change.

Changing Your System Locale Setting

To change the Locale setting on the Workspace Properties worksheet (and in the .OWdefaults file as explained in Simplified Chinese Solaris System Administrator's Guide):

  1. Access the Workspace Properties Locale worksheet.

  2. Change the Locale setting by choosing U.S.A. or China on the Basic Locale menu.

    The English and the Simplified Chinese versions of this worksheet appear as follows. In this example, China is selected as the locale.

    GraphicGraphic
  3. Click the Apply button to set the locale on the system.

    The English version of this menu is on the left and the Simplified Chinese equivalent is on the right.

    GraphicGraphic

    Clicking Apply then applies these settings, overwriting your current .OWdefaults file. This file contains the start-up settings OpenWindows uses to start your applications. For explanations of the contents and functions of the .OWdefaults file, refer to Solaris Internationalization Guide for Developers and Simplified Chinese Solaris System Administrator's Guide.