Sun Java Solaris Communities My SDN Account Join SDN
 
Article

Solaris Locale Creator

Users may sometimes wish to use a locale which is not part of the Solaris installation, or alternatively, users may wish to have a locale with customized locale data. Both of these objectives can be achieved by using the Locale Creator utility.

This utility allows new locales to be customized and built by the user. The output of Locale Creator is an installable package containing the compiled shared object binary which contains the locale data information which has been optionally customized by the user, as well as a number of other supporting files which are required in order to have a fully working locale on the system.

Once generated, the package can be added to the system by using the pkgadd(IM) command. The pkgrm(1M) command should be used to remove the locale package from the system.

If dtlogin(1X) is the default system login then it needs to be reset by running : svcadm restart cde-login in order that it may be made aware of any new locale(s) added to the system.
No action is required if gdm(1) is the default login.

There are two interfaces to Locale Creator : command line (CLI) and graphical user interface (GUI). In order to customize the locale data the GUI must be used. To create locales with standard locale data according to Unicode's Common Locale Data Repository (CLDR), the CLI is sufficient.

With the CLI it is also possible to generate several locales in a single step, with a separate package being generated for each locale. With the GUI, a single locale is processed at a time.

To launch the GUI, run /usr/bin/localectr with no options. To run from the CLI, run /usr/bin/localectr with the appropriate options.
For further information, see the Locale Creator GUI Help or run :


# man localectr
# /usr/bin/localectr -h   

See also:
Locale Creator GUI demo.
Locale Creator CLI demo.