neysx 06/05/25 16:22:37 Modified: guide-localization.xml Log: #134032 Mention system locale vs user locale Revision Changes Path 1.39 xml/htdocs/doc/en/guide-localization.xml file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml?rev=1.39&content-type=text/x-cvsweb-markup&cvsroot=gentoo plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml?rev=1.39&content-type=text/plain&cvsroot=gentoo diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml.diff?r1=1.38&r2=1.39&cvsroot=gentoo Index: guide-localization.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- guide-localization.xml 15 May 2006 12:32:31 -0000 1.38 +++ guide-localization.xml 25 May 2006 16:22:37 -0000 1.39 @@ -1,5 +1,5 @@ - + @@ -29,8 +29,8 @@ the German doc. Includes configuration for use of the euro currency symbol. -1.28 -2006-05-15 +1.29 +2006-05-25 Time zone @@ -45,7 +45,7 @@ indicate the expected zones. For instance, GMT-8 is in fact GMT+8.

-
+
 # cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
 # date
 Sun Feb 16 08:26:44 CET 2003
@@ -198,20 +198,36 @@
 the environment variable manually from command line:
 

-
+
 export LANG="de_DE@euro"
 
Append @euro to your locale if you want to use the Euro -currency symbol (€) +currency symbol (€)

+It is also possible to set a system-wide locale for all users and programs: +

+ +
+LC_ALL="de_DE@euro"
+LANG="de_DE@euro"
+
+ +

+A common practice is to use only per user locale settings and leave the +default system locale unset. In this case system locale defaults to a +special value "C", which for historical reasons maps to the English +locale. +

+ +

For message based localization to work in programs that support it, you will probably need to have programs compiled with the nls (Native language support) USE flag set. Most of the programs using nls also need the gettext -library to extract and use localized messages. Of course, Gentoo's Portage will +library to extract and use localized messages. Of course, Portage will automatically install it when needed.

@@ -221,7 +237,11 @@

+(For system-wide default locale:)
 # env-update && source /etc/profile
+
+(For user-specific locale:
+$ source ~/.bashrc
 

@@ -246,7 +266,7 @@ place to set it is /etc/make.conf:

-
+
 # nano -w /etc/make.conf
 (Add in the LINGUAS variable. For instance, 
 for German, Finnish and English:)
@@ -344,7 +364,7 @@
 to decide which one fits your needs best.
 

-
+
 KEYMAP="de"
 KEYMAP="de-latin1"
 KEYMAP="de-latin1-nodeadkeys"
@@ -365,7 +385,7 @@
 option.
 

-
+
  Section "InputDevice"
      Identifier  "Keyboard1"
      ...
@@ -441,7 +461,7 @@
 .psfu.gz).  lat9w-16 has the Euro symbol.
 

-
+
 CONSOLEFONT="lat9w-16"
 
@@ -479,7 +499,7 @@ in iso8859-15 instead of iso8859-1.

-
+
 fixed        -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15
 variable     -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-15
 
@@ -497,7 +517,7 @@ instance:

-
+
 (in your home directory)
 $ echo 'XTerm*font: fixed' >> .Xresources 
 $ xrdb -merge .Xresources
@@ -524,7 +544,7 @@
 

-(define-key global-map '(EuroSign) '[€])
+(define-key global-map '(EuroSign) '[€])
 
-- gentoo-doc-cvs@gentoo.org mailing list