http://info2html.sourceforge.net/cgi-bin/info2html-demo/info2html?(libc.info.gz)Using%2520gettextized%2520software I myself has once analyzed the relevant code in glibc. http://zhllg.spaces.live.com/Blog/cns!1pZICR9vxlDKAQZ1A4wqfIbw!824.entry In addition to fixing the order, I have also added an introduction of LANGUAGE variable. A patch will be posted soon.
Created attachment 173780 [details, diff] the patch
Please describe what exactly is broken in our current guide and reopen. I'm missing reasons/details for the following: a) Summary of required changes b) Precedence of $LANGUAGE c) Reasons for shuffling the definitions
1. required changes: 1.1 added LANGUAGE for completeness 1.2 correct the order of the variables 1.3 shuffle the varibles definetion in /etc/env.d/02locale to reflect the correct order. 2. The LANGUAGE variable has the highest precedence. Please take a look at the following excerpt from http://info2html.sourceforge.net/cgi-bin/info2html-demo/info2html?(libc.info.gz)Using%2520gettextized%2520software In detail, for the category `LC_xxx' the following variables in this order are examined: `LANGUAGE' `LC_ALL' `LC_xxx' `LANG' 3. "shuffling the definition" is a minor issue. if you really think it is not necessary, just skip it. With the previous correction kept in mind, the original definition sequence won't hurt, either.
The environment is just a set of key-value pairs, the order in which they are defined is not relevant at all.
Doesn't seem to work with sys-devel/gettext-0.17 USE="acl nls openmp -doc -emacs -nocxx": jkt@velbloud ~ $ LC_MESSAGES=de_DE.utf8 svn Geben Sie »svn help« für weitere Hilfe ein. jkt@velbloud ~ $ LANGUAGE=de_DE.utf8 svn Type 'svn help' for usage.
Created attachment 173860 [details, diff] guide-localization.xml.patch
12:52 < r0bertz> ok, i will read the code and find how it works now. when i read the relevent code in glibc, the version is still 2.3.6 12:52 < r0bertz> now it is 2.8 Please reopen when the glibc which supports this feature is keyworded stable.
http://sourceware.org/ml/libc-help/2008-11/msg00066.html haven't got reply yet, but i modified the description a little bit.