[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

understanding how localization works in Debian



Hi,

I read the "Configuring the System for Another Language" paragraph in
"The Debian Administrator's Handbook" and am I correct that
localization works in a way that:

1) pam_env.so sets the environmental variables seen in the output of
locale command based on configuration files(for example
/etc/default/locale) when user logs in

2) nl_langinfo(), setlocale() and (some) other glibc functions used in
programs ask environment variables seen in the output of locale
command

3) based on those environment variables nl_langinfo(), setlocale(),
etc functions check the locale information in
/usr/lib/locale/locale-archive database and change their output
accordingly

4) /usr/lib/locale/locale-archive database is generated with
locale-gen utility based on entries in /etc/locale.gen file and locale
template/configuration files in /usr/share/i18n/locales/

Did I understand this correctly?



thanks,
Martin


Reply to: