HP 9000 User Manual page 54

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

Creating a Locale
The standard locales cover most languages. If none of the existing locales are
appropriate, you can create a locale that meets your specific requirements.
This is most easily done if there is an existing locale that is similar to the one
you need. If there is, you can get a copy of the locale description in localedef
format, modify the description so that it conforms to your needs, then install it
as a new locale.
For example, suppose you need a locale that is the same as the american locale
except that it has a different date format.
For the american locale, date produces output of the form:
Fri, May 5, 1989 04:37:33 PM
Suppose the desired format is:
Fri, 5 May 1989, 04:37:33 PM
The format for date is controlled by the d_ t_fmt and d_fmt items of the
LC_ TIME
category. You can change these to give the desired format.
To create the new locale, get a localedef script of the american locale by
executing:
localedef -d american
>
new_locale
You can now modify the localedef script to define the desired locale:
vi new_locale
Localizing International Software
5·5
5

Advertisement

Table of Contents
loading

Table of Contents