Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – View All Attachments for
Bug 15334
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Attachment #8321
xml file of english translation
text/xml
2003-02-16 03:32:38 UTC
6.51 KB
no flags
Details
You cannot view the attachment on this page because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Attachment #8322
html file of translation
text/html
2003-02-16 03:34:21 UTC
15.43 KB
no flags
Details
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> <link title="new" rel="stylesheet" href="http://www.gentoo.org/main-new.css" type="text/css"> <link REL="shortcut icon" HREF="http://www.gentoo.org/favicon.ico" TYPE="image/x-icon"> <title>Gentoo Linux Documentation -- Gentoo Linux Localization Guide</title> </head> <body style="margin-left:0px;margin-top:0px;" bgcolor="#ffffff"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td valign="top" height="125" bgcolor="#45347b"><table cellspacing="0" cellpadding="0" border="0" width="193"> <tr><td class="logobg" valign="top" align="center" height="88"><a href="/index.html"><img border="0" src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/gtop-s.jpg" alt="Gentoo Logo"></a></td></tr> <tr><td class="logobg" valign="top" align="center" height="36"><a href="/index.html"><img border="0" src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/gbot-s.gif" alt="Gentoo Logo Side"></a></td></tr> </table></td></tr> <tr><td valign="top" align="right" bgcolor="#ffffff"><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> <td width="99%" class="content" valign="top" align="left"> <br><p class="dochead">Gentoo Linux Localization Guide</p> <form> <b>Contents</b>: <select name="url" size="1" OnChange="location.href=form.url.options[form.url.selectedIndex].value" style="font-family:Arial,Helvetica, sans-serif; font-size:10"><option value="#doc_chap1">1. Timezone</option> <option value="#doc_chap2">2. System Clock</option> <option value="#doc_chap3">3. POSIX Locale</option> <option value="#doc_chap4">4. Keyboard layout for the console</option> <option value="#doc_chap5">5. Keyboard layout for the X server</option> <option value="#doc_chap6">6. The Euro Symbol for the Console</option> <option value="#doc_chap7">7. The Euro Symbol in X</option></select> </form> <p class="chaphead"> <font class="chapnum"><a name="doc_chap1">1.</a></font>Timezone</p> <p>In order to keep time properly, <font class="path">/etc/localtime</font> must point to the correct time zone data file. Look around in <font class="path">/usr/share/zoneinfo/</font> and pick your timezone or a near-by big city. <a name="doc_chap1_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 1.1: setting the timezone</p></td></tr> <tr><td bgcolor="#ddddff"><pre> # <font class="input">ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</font> # <font class="input">date</font> Sun Feb 16 08:26:44 CET 2003 </pre></td></tr> </table> <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#bbffbb"><p class="note"> <b>Note: </b>Make sure that the three-letter timezone indicator (in this case "CET") is correct for your area.</p></td></tr></table> <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#bbffbb"><p class="note"> <b>Note: </b>You can set the value of <font class="input">TZ</font> to be everything after the <font class="path">/usr/share/zoninfo</font> in your shell rc file (<font class="path">.bash_profile</font> for bash) for a user-level setting. In this case <font class="input">TZ="Europe/Berlin"</font>.</p></td></tr></table> </p> <p class="chaphead"> <font class="chapnum"><a name="doc_chap2">2.</a></font>System Clock</p> <p> In most Gentoo Linux installations, your system clock is set to UTC (or GMT, Greenwhich Mean Time) and then your timezone is taken into account to determine the actual, local time. If, for some reason, you need your system clock not to be in UTC, you will need to edit <font class="path">/etc/rc.conf</font> and change the value of <font class="input">CLOCK</font>. <a name="doc_chap2_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 2.1: local vs. GMT clock</p></td></tr> <tr><td bgcolor="#ddddff"><pre> <font class="comment">// recommended:</font> CLOCK="UTC" <font class="comment">// or:</font> CLOCK="local" </pre></td></tr> </table> </p> <p class="chaphead"> <font class="chapnum"><a name="doc_chap3">3.</a></font>POSIX Locale</p> <p> The next step is to set the <font class="input">LANG</font> shell variable, which is used by your shell and window manager (and some other applications). Valid values can be found in <font class="path">/usr/share/locale</font> and generally take the form <font class="input">ab_CD</font>, where <font class="input">ab</font> is your two letter language code and <font class="input">CD</font> is your two letter country code. the <font class="input">_CD</font> is left off if your language is only (or primarily) spoken in one country. <font class="input">LANG</font> can be set in <font class="path">/etc/profile</font> if you want it to take effect system-wide, or in <font class="path">~/.bashrc</font> as a user-specific setting. <a name="doc_chap3_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 3.1: setting the POSIX locale</p></td></tr> <tr><td bgcolor="#ddddff"><pre> export LANG="de_DE@euro" </pre></td></tr> </table> <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#bbffbb"><p class="note"> <b>Note: </b>Appended <font class="input">@euro</font> to your locale if you want to use the new Euro currency symbol (¤)</p></td></tr></table> </p> <p class="chaphead"> <font class="chapnum"><a name="doc_chap4">4.</a></font>Keyboard layout for the console</p> <p> The keyboard layoud used by the console is set in <font class="path">/etc/rc.conf</font> by the <font class="input">KEYMAP</font> variable. Valid values can be found in <font class="path">/usr/share/keymaps/{arch}/</font>. <font class="path">i386</font> has further subdivisions into layout (<font class="path">qwerty/</font>, <font class="path">azerty/</font>, etc.). Some languages have multiple options, so you may wish to experiment to decide which one fits your needs best. <a name="doc_chap4_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 4.1: setting the console keymap</p></td></tr> <tr><td bgcolor="#ddddff"><pre> KEYMAP="de" KEYMAP="de-latin1" KEYMAP="de-latin1-nodeadkeys" </pre></td></tr> </table> </p> <p class="chaphead"> <font class="chapnum"><a name="doc_chap5">5.</a></font>Keyboard layout for the X server</p> <p>The keyboard layout to be used by the X server is specified in <font class="path">/etc/X11/XF86Config</font> by the <font class="input">XkbLayout</font> option. <a name="doc_chap5_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 5.1: setting the X keymap</p></td></tr> <tr><td bgcolor="#ddddff"><pre> Section "InputDevice" Identifier "Keyboard1" ... Option "XkbLayout" "de" # Option XkbVariant" "nodeadkeys" ... </pre></td></tr> </table> </p> <p class="chaphead"> <font class="chapnum"><a name="doc_chap6">6.</a></font>The Euro Symbol for the Console</p> <p> In order to get your console to display the Euro symbol, you will need to set <font class="input">CONSOLEFONT</font> in <font class="path">/etc/rc.conf</font> to a file found in <font class="path">/usr/share/consolefonts/</font> (without the <font class="code">.psfu.gz</font>). <font class="code">lat0-16</font> has the Euro symbol. <a name="doc_chap6_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 6.1: setting the console font</p></td></tr> <tr><td bgcolor="#ddddff"><pre> CONSOLEFONT="lat0-16" </pre></td></tr> </table> </p> <p class="chaphead"> <font class="chapnum"><a name="doc_chap7">7.</a></font>The Euro Symbol in X</p> <p class="secthead"><a name="doc_chap7_sect1">Most Applications </a></p> <p>Getting the Euro symbol to work properly in X is a little bit tougher. The first thing you should do is change the <font class="input"> fixed</font> and <font class="input">variable</font> definitions in <font class="path">/usr/X11R6/lib/X11/fonts/misc/fonts.alias</font> to end in <font class="input">iso8859-15</font> instead of <font class="input">iso8859-1</font>. <a name="doc_chap7_pre1"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 7.1: setting default X fonts</p></td></tr> <tr><td bgcolor="#ddddff"><pre> fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15 variable -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-15 </pre></td></tr> </table> </p> <p>Some applications use their own font, and you will have to tell them separately to use a font with the Euro symbol. You can do this at a user-specific level in <font class="path">.Xdefaults</font> (you can copy this file to <font class="path">/etc/skel/</font> for use by new users), or at a global level for any application with a resource file in <font class="path">/usr/X11R6/lib/X11/app-defaults/</font> (like xterm). In these files you generally have to change an existing line, rather than adding a new one. To change our xterm font, for instance: <a name="doc_chap7_pre2"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 7.2: setting fonts for xterm</p></td></tr> <tr><td bgcolor="#ddddff"><pre> <font class="comment">// (in your home directory)</font> $ <font class="input">echo 'XTerm*font: fixed' >> .Xresources </font> $ <font class="input">xrdb -merge .Xresources</font> </pre></td></tr> </table> </p> <p class="secthead"><a name="doc_chap7_sect2">The Euro symbol in (X)Emacs </a></p> <p>To use the Euro symbol in (X)Emacs, add the following to <font class="path">.Xdefaults</font>: <a name="doc_chap7_pre3"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 7.3: setting the font for emacs</p></td></tr> <tr><td bgcolor="#ddddff"><pre> Emacs.default.attributeFont: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-15 </pre></td></tr> </table> </p> <p>For XEmacs (not plain Emacs), you have to do a little more. In <font class="path">/home/user/.xemacs/init.el</font>, add: <a name="doc_chap7_pre4"></a><table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td class="infohead" bgcolor="#7a5ada"><p class="caption"> Code listing 7.4: setting the font for xemacs</p></td></tr> <tr><td bgcolor="#ddddff"><pre> (define-key global-map '(EuroSign) '[¤]) </pre></td></tr> </table> <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#bbffbb"><p class="note"> <b>Note: </b>The symbol in the []s is the Euro symbol.</p></td></tr></table> </p> <br><br> </td> <td width="1%" bgcolor="#dddaec" valign="top"><table border="0" cellspacing="5" cellpadding="0"> <tr><td><img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"></td></tr> <tr><td align="center" class="alttext"> Updated $Date: 2003/2/15 01:33:44 $</td></tr> <tr><td><img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"></td></tr> <tr><td class="alttext"> <b><a class="altlink" href="mailto:holler@ahsoftware.de"> Alexander Holler</a></b> <br><i>Author</i><br><br><b><a class="altlink" href="mailto:slucy@uchicago.edu"> Steven Lucy</a></b> <br><i>Translator/Editor</i><br><br> </td></tr> <tr><td><img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"></td></tr> <tr><td class="alttext"> <b>Summary:</b> This guide should help users localize their Gentoo Linux distribution to any European locale. It uses Germany as a case-study, since it is translated from the German doc. Includes configuration for use of the Euro currency symbol. </td></tr> <tr><td><img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"></td></tr> <tr><td align="center"> <p class="alttext"> <b>Donate</b> to support our development efforts.</p> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"><input type="hidden" name="business" value="drobbins@gentoo.org"><input type="hidden" name="item_name" value="Gentoo Linux Support"><input type="hidden" name="item_number" value="1000"><input type="hidden" name="image_url" value="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/paypal.png"><input type="hidden" name="no_shipping" value="1"><input type="hidden" name="return" value="http://www.gentoo.org"><input type="hidden" name="cancel_return" value="http://www.gentoo.org"><input type="image" src="http://images.paypal.com/images/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> </form> </td></tr> <tr><td><img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"></td></tr> <tr><td align="center"> <a href="http://www.qksrv.net/click-477620-5032687" target="_top"><img src="http://www.qksrv.net/image-477620-5032687" width="125" height="125" alt="DDR Memory at Crucial.com" border="0"></a><p class="alttext">Purchase RAM from <b>Crucial.com</b> and a percentage of your sale will go towards further Gentoo Linux development.</p> </td></tr> <tr><td><img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"></td></tr> <tr><td><p class="alttext"> <b>Looking for the right Web designer?</b> Marketingtool.com is the world's largest directory of Web developers and other marketing-oriented firms. Use Marketingtool.com's free <a href="http://www.marketingtool.com/editorspick.php?gentoo=1">"Editor's Pick" service</a> to find the Web design team that meets your exact needs. <br><br><b>Are you a Web designer?</b> Then <a href="http://www.marketingtool.com/contribute/webfirm.html?gentoo=1">place a featured listing</a> on Marketingtool.com to get noticed world-wide! <br><br> When you use "Editor's Pick" or place a featured listing, <a href="http://www.marketingtool.com?gentoo=1">Marketingtool.com</a> will donate a portion of revenue to the Gentoo Linux free software project. </p></td></tr> <tr><td><img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"></td></tr> </table></td> </tr></table></td></tr> <tr><td align="right" class="infohead" width="100%" bgcolor="#7a5ada"> Copyright 2001-2002 Gentoo Technologies, Inc. Questions, Comments, Corrections? Email <a class="highlight" href="mailto:gentoo-dev@gentoo.org">gentoo-dev@gentoo.org</a>. </td></tr> </table></body> </html>