Changeset 62750a1


Ignore:
Timestamp:
12/21/2013 08:18:45 PM (10 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
8f2ff12b
Parents:
6463df6
Message:

Expand locale page to contain localectl examples

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10408 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/locale.xml

    r6463df6 r62750a1  
    119119EOF</userinput></screen>
    120120
     121  <para>Note that you can modify <filename>/etc/locale.conf</filename> with
     122  Systemd <command>localectl</command> utility. To use <command>localectl</command>
     123  for the example above, run:</para>
     124
     125<screen><userinput>localectl set-locale LANG="<replaceable>&lt;ll&gt;_&lt;CC&gt;.&lt;charmap&gt;&lt;@modifiers&gt;"</replaceable></userinput></screen>
     126
     127  <para>You can also specify other language specific environment variables such
     128  as <envar>LANG</envar>, <envar>LC_CTYPE</envar>, <envar>LC_NUMERIC</envar> or
     129  any other environment variable from <command>locale</command> output. Just
     130  seperate them with a space. An example where <envar>LANG</envar> is set as
     131  en_US.UTF-8 but <envar>LC_CTYPE</envar> is set as just en_US is:</para>
     132
     133<screen><userinput>localectl set-locale LANG="en_US.UTF-8" LC_CTYPE="en_US"</userinput></screen>
     134
     135  <note><para>Please note that <command>localectl</command> command can
     136  be used  only on a system booted with Systemd.</para></note>
     137
    121138  <para>The <quote>C</quote> (default) and <quote>en_US</quote> (the recommended
    122139  one for United States English users) locales are different. <quote>C</quote>
Note: See TracChangeset for help on using the changeset viewer.