Gentoo Archives: gentoo-doc-cvs

From: "Sven Vermeulen (swift)" <swift@g.o>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] gentoo commit in xml/htdocs/doc/en: guide-localization.xml
Date: Mon, 12 Sep 2011 19:42:38
Message-Id: 20110912194227.5B9222004C@flycatcher.gentoo.org
swift       11/09/12 19:42:27

  Modified:             guide-localization.xml
  Log:
  Fix bug #382525 - Updates for OpenRC on localization guide. Patch by Francisco "klondike"

Revision  Changes    Path
1.63                 xml/htdocs/doc/en/guide-localization.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/guide-localization.xml?rev=1.63&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/guide-localization.xml?rev=1.63&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/guide-localization.xml?r1=1.62&r2=1.63

Index: guide-localization.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- guide-localization.xml	4 Sep 2011 17:53:40 -0000	1.62
+++ guide-localization.xml	12 Sep 2011 19:42:27 -0000	1.63
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='UTF-8'?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.62 2011/09/04 17:53:40 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.63 2011/09/12 19:42:27 swift Exp $ -->
 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
 
 <guide>
@@ -25,6 +25,9 @@
 <author title="Editor">
   <mail link="nightmorph"/>
 </author>
+<author title="Editor">
+  <mail link="klondike"/>
+</author>
 
 <abstract>
 This guide should help users localize their Gentoo Linux distribution to any
@@ -32,8 +35,8 @@
 the German doc. Includes configuration for use of the euro currency symbol.
 </abstract>
 
-<version>1.46</version>
-<date>2010-02-14</date>
+<version>2</version>
+<date>2011-09-12</date>
 
 <chapter>
 <title>Time zone</title>
@@ -44,7 +47,7 @@
 In order to keep time properly, you need to select your timezone so that your
 system knows where it is located. Look for your timezone in
 <path>/usr/share/zoneinfo</path>. You then set your timezone in
-<path>/etc/conf.d/clock</path>. Please avoid the
+<path>/etc/timezone</path>. Please avoid the
 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
 </p>
@@ -55,8 +58,8 @@
 <comment>(First copy the proper zone to localtime)</comment>
 # <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i>
 <comment>(Now specify your timezone)</comment>
-# <i>nano -w /etc/conf.d/clock</i>
-TIMEZONE="Europe/Brussels"
+# <i>nano -w /etc/timezone</i>
+Europe/Brussels
 
 # <i>date</i>
 Wed Mar  8 00:46:05 CET 2006
@@ -88,15 +91,16 @@
 UTC (or GMT, Greenwich Mean Time) and then your timezone is
 taken into account to determine the actual, local time.  If,
 for some reason, you need your hardware clock not to be in UTC,
-you will need to edit <path>/etc/conf.d/clock</path> and change the
-value of <c>CLOCK</c> from <c>UTC</c> to <c>local</c>.
+you will need to edit <path>/etc/conf.d/hwclock</path> (or if you use Gentoo
+BSD: <path>/etc/conf.d/adjkerntz</path>) and change the
+value of <c>clock</c> from <c>UTC</c> to <c>local</c>.
 </p>
 
 <pre caption="local vs. GMT clock">
 <comment>(recommended:)</comment>
-CLOCK="UTC"
+clock="UTC"
 <comment>(or:)</comment>
-CLOCK="local"
+clock="local"
 </pre>
 
 </body>
@@ -222,7 +226,7 @@
 
 <note>
 Use <c>de_DE@euro</c> as your LANG if you want to use the Euro currency symbol
-(€).
+(€) on non UTF-8 based locales.
 </note>
 
 <p>
@@ -347,7 +351,7 @@
 
 <p>
 The keyboard layout used by the console is set in
-<path>/etc/conf.d/keymaps</path> by the <c>KEYMAP</c> variable.
+<path>/etc/conf.d/keymaps</path> by the <c>keymap</c> variable.
 Valid values can be found in
 <path>/usr/share/keymaps/<c>{arch}</c>/</path>.
 <path>i386</path> has further subdivisions into layout
@@ -357,9 +361,9 @@
 </p>
 
 <pre caption="Setting the console keymap">
-KEYMAP="de"
-KEYMAP="de-latin1"
-KEYMAP="de-latin1-nodeadkeys"
+keymap="de"
+keymap="de-latin1"
+keymap="de-latin1-nodeadkeys"
 </pre>
 
 </body>
@@ -378,13 +382,13 @@
 </p>
 
 <pre caption="Setting the X keymap">
- Section "InputDevice"
-     Identifier  "Keyboard1"
-     ...
-     Option "XkbLayout"    "de"
-     #Option "XkbModel"     "pc105"    <comment>## this is for international keyboards.</comment>
-     # Option "XkbVariant"  "nodeadkeys" <comment>## this would be used for xterm input</comment>
-     ...
+Section "InputClass"
+	Identifier "keyboard-all"
+	Driver "evdev"
+	Option "XkbLayout" "de"
+	#Option "XkbModel" "pc105"
+	MatchIsKeyboard "on"
+EndSection
 </pre>
 
 <p>
@@ -408,11 +412,13 @@
 </p>
 
 <pre caption="Switching between two keyboard layouts">
- Section "InputDevice"
-     Identifier  "Keyboard1"
-     ...
-     Option "XkbLayout"    "us,ru"
-     Option "XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll"
+Section "InputClass"
+	Identifier "keyboard-all"
+	Driver "evdev"
+	Option "XkbLayout"    "us,ru"
+	Option "XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll"
+	MatchIsKeyboard "on"
+EndSection
 </pre>
 
 <p>
@@ -448,25 +454,25 @@
 
 <p>
 In order to get your console to display the Euro symbol, you will need to set
-<c>CONSOLEFONT</c> in <path>/etc/conf.d/consolefont</path> to a file found in
+<c>consolefont</c> in <path>/etc/conf.d/consolefont</path> to a file found in
 <path>/usr/share/consolefonts/</path> (without the <c>.psfu.gz</c>).
 <c>lat9w-16</c> has the Euro symbol.
 </p>
 
 <pre caption="Setting the console font">
-CONSOLEFONT="lat9w-16"
+consolefont="lat9w-16"
 </pre>
 
 <p>
-You should verify that <c>CONSOLEFONT</c> is in the boot runlevel:
+You should verify that <c>consolefont</c> is in the boot runlevel:
 </p>
 
 <pre caption="Verify the proper runlevel">
-# <i>rc-update -v show | grep -i consolefont</i>
+# <i>rc-update -v show | grep consolefont</i>
 </pre>
 
 <p>
-If no runlevel is displayed for <c>CONSOLEFONT</c>, then add it to the proper level:
+If no runlevel is displayed for <c>consolefont</c>, then add it to the proper level:
 </p>
 
 <pre caption="Add consolefont to boot">