Changeset d295e92 for postlfs


Ignore:
Timestamp:
06/29/2004 01:54:49 PM (20 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
c03da74e
Parents:
de471fc
Message:

Changed wording of i18n section in Bash Shell Startup Files

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2398 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/profile.xml

    rde471fc rd295e92  
    281281<sect3>
    282282<title><filename>/etc/profile.d/i18n.sh</filename></title>
     283</sect3>
    283284
    284285<para>This script shows how to set some environment variables necessary for
    285 <application>Bash</application> to accept keystrokes properly, even in
    286 non-English locales. Replace <replaceable>[ll]</replaceable> with the
    287 two-letter code for your language (e.g., <quote>en</quote>) and
    288 <replaceable>[cc]</replaceable> with the two-letter code for your country
     286native language support. Setting these variables properly gives you:</para>
     287
     288<itemizedlist spacing="compact">
     289<listitem><para>the output of programs translated into your native
     290language</para></listitem>
     291<listitem><para>correct classification of characters into letters, digits and
     292other classes &ndash; this is necessary for <application>Bash</application> to
     293accept keystrokes properly in non-English locales</para></listitem>
     294<listitem><para>the alphabetical sorting order correct for your
     295country</para></listitem>
     296<listitem><para>proper default paper size</para></listitem>
     297<listitem><para>correct formatting of monetary, time and date
     298values</para></listitem>
     299</itemizedlist>
     300
     301<para>Replace <replaceable>[ll]</replaceable> with the two-letter code for
     302your language (e.g., <quote>en</quote>) and
     303<replaceable>[CC]</replaceable> with the two-letter code for your country
    289304(e.g., <quote>GB</quote>). Also you may need to specify (and this is actually
    290305the preferred form) your character encoding (e.g., <quote>iso8859-1</quote>)
     
    299314<screen><userinput><command>locale -a</command></userinput></screen>
    300315
    301 <para>Now, when you are sure about your locale settings, create the
     316<para>After you are sure about your locale settings, create the
    302317<filename>/etc/profile.d/i18n.sh</filename> file:</para>
    303318 
    304319<screen><userinput><command>cat &gt; /etc/profile.d/i18n.sh &lt;&lt; "EOF"</command>
    305320# Set up i18n variables
    306 export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[cc]</replaceable>
    307 export LANG=<replaceable>[ll]</replaceable>_<replaceable>[cc]</replaceable>
    308 <command>EOF</command></userinput></screen>
     321export LC_ALL=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
     322export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>
     323<command>EOF</command></userinput></screen>
     324
     325<para>Note: Setting LC_ALL sets the same value for all locale categories. For
     326better control, you may prefer to set values individually for all categories
     327listed in the output of the <command>locale</command> command.</para>
     328
     329<sect3>
     330<title><filename>Other initialization values</filename></title>
    309331
    310332<para>Other initialization can easily be added to the <filename>profile</filename>
Note: See TracChangeset for help on using the changeset viewer.