From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FjIby-0006tm-D7 for garchives@archives.gentoo.org; Thu, 25 May 2006 16:22:58 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k4PGMeKn020568; Thu, 25 May 2006 16:22:40 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k4PGMcb1018305 for ; Thu, 25 May 2006 16:22:39 GMT Received: from lark (lark.gentoo.osuosl.org [140.211.166.177]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with SMTP id 7FFB4644AD for ; Thu, 25 May 2006 16:22:38 +0000 (UTC) Received: by lark (sSMTP sendmail emulation); Thu, 25 May 2006 16:22:38 +0000 From: "Xavier Neys" Date: Thu, 25 May 2006 16:22:38 +0000 To: gentoo-doc-cvs@lists.gentoo.org Subject: [gentoo-doc-cvs] cvs commit: guide-localization.xml Message-Id: <20060525162238.7FFB4644AD@smtp.gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-doc-cvs@gentoo.org Reply-to: docs-team@lists.gentoo.org X-Archives-Salt: 715fb458-eeb9-492c-8220-cd7cf39e552e X-Archives-Hash: c2c39932dcdc2f8708252b45ea9119aa 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