Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249273 - localization guide: add gettext's $LANGUAGE
Summary: localization guide: add gettext's $LANGUAGE
Status: RESOLVED LATER
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.8-stable
  Show dependency tree
 
Reported: 2008-11-29 16:33 UTC by Zhang Le (RETIRED)
Modified: 2008-12-07 09:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the patch (guide-localization.patch,1.65 KB, patch)
2008-11-29 16:34 UTC, Zhang Le (RETIRED)
Details | Diff
guide-localization.xml.patch (guide-localization.xml.patch,1.01 KB, patch)
2008-11-30 11:54 UTC, Jan Kundrát (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zhang Le (RETIRED) gentoo-dev 2008-11-29 16:33:29 UTC
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.
Comment 1 Zhang Le (RETIRED) gentoo-dev 2008-11-29 16:34:22 UTC
Created attachment 173780 [details, diff]
the patch
Comment 2 Jan Kundrát (RETIRED) gentoo-dev 2008-11-29 21:12:58 UTC
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
Comment 3 Zhang Le (RETIRED) gentoo-dev 2008-11-30 06:23:02 UTC
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.
Comment 4 Jan Kundrát (RETIRED) gentoo-dev 2008-11-30 10:43:45 UTC
The environment is just a set of key-value pairs, the order in which they are defined is not relevant at all.
Comment 5 Jan Kundrát (RETIRED) gentoo-dev 2008-11-30 11:43:27 UTC
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.
Comment 6 Jan Kundrát (RETIRED) gentoo-dev 2008-11-30 11:54:51 UTC
Created attachment 173860 [details, diff]
guide-localization.xml.patch
Comment 7 Jan Kundrát (RETIRED) gentoo-dev 2008-11-30 11:55:31 UTC
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.
Comment 8 Zhang Le (RETIRED) gentoo-dev 2008-11-30 15:43:27 UTC
http://sourceware.org/ml/libc-help/2008-11/msg00066.html

haven't got reply yet, but i modified the description a little bit.