ACC SHELL

Path : /usr/share/gnome/help/opensuse-manuals/C/
File Upload :
Current File : //usr/share/gnome/help/opensuse-manuals/C/cha.y2.lang.html

<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 9. Changing Language and Country Settings with YaST</title><link rel="stylesheet" href="susebooks.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="Documentation"><link rel="up" href="part.reference.administration.html" title="Part III. Administration"><link rel="prev" href="cha.y2.userman.html" title="Chapter 8. Managing Users with YaST"><link rel="next" href="cha.yast.text.html" title="Chapter 10. YaST in Text Mode"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header" border="0" class="bctable"><tr><td width="80%"><div class="breadcrumbs"><p><a href="index.html"> Documentation</a><span class="breadcrumbs-sep"> &gt; </span><a href="book.opensuse.reference.html">Reference</a><span class="breadcrumbs-sep"> &gt; </span><a href="part.reference.administration.html">Administration</a><span class="breadcrumbs-sep"> &gt; </span><strong><a accesskey="p" title="Chapter 8. Managing Users with YaST" href="cha.y2.userman.html"><span>&#9664;</span></a>  <a accesskey="n" title="Chapter 10. YaST in Text Mode" href="cha.yast.text.html"><span>&#9654;</span></a></strong></p></div></td></tr></table></div><div class="chapter" title="Chapter 9. Changing Language and Country Settings with YaST"><div class="titlepage"><div><div><h2 class="title"><a name="cha.y2.lang"></a>Chapter 9. Changing Language and Country Settings with YaST<span class="permalink"><a alt="Permalink" title="Copy Permalink" href="#cha.y2.lang">¶</a></span></h2></div></div></div><div class="toc"><p><b>Contents</b></p><dl><dt><span class="sect1"><a href="cha.y2.lang.html#sec.y2.langmod">9.1. Changing the System Language</a></span></dt><dt><span class="sect1"><a href="cha.y2.lang.html#sec.y2.country">9.2. Changing the Country and Time Settings</a></span></dt></dl></div><a class="indexterm" name="id448751"></a><a class="indexterm" name="id448760"></a><a class="indexterm" name="id448768"></a><a class="indexterm" name="id448773"></a><p>
  Working in different countries or having to work in a multilingual
  environment requires your computer to be set up to support this.
  openSUSE® can handle different <code class="literal">locales</code> in
  parallel. A locale is a set of parameters that defines the language and
  country settings reflected in the user interface.
 </p><p>
  The main system language was selected during installation and keyboard and
  time zone settings were adjusted. However, you can install additional
  languages on your system and determine which of the installed languages
  should be the default.
 </p><p>
  For those tasks, use the YaST language module as described in
  <a class="xref" href="cha.y2.lang.html#sec.y2.langmod" title="9.1. Changing the System Language">Section 9.1, &#8220;Changing the System Language&#8221;</a>. Install secondary languages to get
  optional localizations if you need to start applications or desktops in
  languages other than the primary one.
 </p><p>
  Apart from that, the YaST timezone module allows you to adjust your
  country and timezone settings accordingly. It also lets you synchronize
  your system clock against a time server. For details, refer to
  <a class="xref" href="cha.y2.lang.html#sec.y2.country" title="9.2. Changing the Country and Time Settings">Section 9.2, &#8220;Changing the Country and Time Settings&#8221;</a>.
 </p><div class="sect1" title="9.1. Changing the System Language"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec.y2.langmod"></a>9.1. Changing the System Language<span class="permalink"><a alt="Permalink" title="Copy Permalink" href="#sec.y2.langmod">¶</a></span></h2></div></div></div><p>
   Depending on how you use your desktop and whether you want to switch the
   entire system to another language or just the desktop environment itself,
   there are several ways to achieve this:
  </p><div class="variablelist"><dl><dt><a name="vle.lang.system"></a><span class="term">Changing the System Language Globally</span></dt><dd><p>
      Proceed as described in <a class="xref" href="cha.y2.lang.html#sec.y2.lang.primsec" title="9.1.1. Modifying System Languages with YaST">Section 9.1.1, &#8220;Modifying System Languages with YaST&#8221;</a> and
      <a class="xref" href="cha.y2.lang.html#sec.y2.lang.switch" title="9.1.2. Switching the Default System Language">Section 9.1.2, &#8220;Switching the Default System Language&#8221;</a> to install additional
      localized packages with YaST and to set the default language.
      Changes are effective after relogin. To ensure that the entire system
      reflects the change, reboot the system or close and restart all
      running services, applications, and programs.
     </p></dd><dt><a name="vle.lang.desktop"></a><span class="term">Changing the Language for the Desktop Only</span></dt><dd><p>
      Provided you have previously installed the desired language packages
      for your desktop environment with YaST as described below, you can
      switch the language of your desktop using the desktop's control
      center. <span>If you are using KDE, see
      Procedure &#8220;Adjusting Regional Settings&#8221; (&#8593;KDE User Guide) for details. If
      you are using GNOME, refer to
      Section &#8220;Configuring Language Settings&#8221; (Chapter 3, <i>Customizing Your Settings</i>, &#8593;GNOME User Guide).</span> After the X server
      has been restarted, your entire desktop reflects your new choice of
      language. Applications not belonging to your desktop framework are not
      affected by this change and may still appear in the language that was
      set in YaST.
     </p></dd><dt><a name="vle.lang.application"></a><span class="term">Temporarily Switching Languages for One Application Only</span></dt><dd><p>
      You can also run a single application in another language (that has
      already been installed with YaST). To do so, start it from the
      command line by specifying the language code as described in
      <a class="xref" href="cha.y2.lang.html#sec.y2.lang.applications" title="9.1.3. Switching Languages for Individual Applications">Section 9.1.3, &#8220;Switching Languages for Individual Applications&#8221;</a>.
     </p></dd></dl></div><div class="sect2" title="9.1.1. Modifying System Languages with YaST"><div class="titlepage"><div><div><h3 class="title"><a name="sec.y2.lang.primsec"></a>9.1.1. Modifying System Languages with YaST<span class="permalink"><a alt="Permalink" title="Copy Permalink" href="#sec.y2.lang.primsec">¶</a></span></h3></div></div></div><p>
    YaST knows two different language categories:
   </p><div class="variablelist"><dl><dt><span class="term">Primary Language</span></dt><dd><p>
       The primary language set in YaST applies to the entire system,
       including YaST and the desktop environment. This language is used
       whenever available unless you manually specify another language.
      </p></dd><dt><span class="term">Secondary Languages</span></dt><dd><p>
       Install secondary languages to make your system multilingual.
       Languages installed as secondary languages can be selected manually
       for a specific situation. For example, use a secondary language to
       start an application in a certain language in order to do word
       processing in this language.
      </p></dd></dl></div><p>
    Before installing additional languages, determine which of them should
    be the default system language (primary language) after you have
    installed them.
   </p><p>
    To access the YaST language module, start YaST and click
    <span class="guimenu">System</span>+<span class="guimenu">Language</span>. Alternatively, start the <span class="guimenu">Languages</span>
    dialog directly by running <span class="command"><strong>yast2 language</strong></span> as
    user <code class="systemitem">root</code> from a command line.
   </p><div class="informalfigure"><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0" width="75%"><tr><td><img src="images/yast2-language.png" width="100%"></td></tr></table></div></div><div class="procedure" title="Procedure 9.1. Installing Additional Languages"><a name="pro.yast.lang.additional"></a><p class="title"><b>Procedure 9.1. Installing Additional Languages</b><span class="permalink"><a alt="Permalink" title="Copy Permalink" href="#pro.yast.lang.additional">¶</a></span></p><p>
     When installing additional languages, YaST also allows you to set
     different locale settings for the user <code class="systemitem">root</code>, see
     <a class="xref" href="cha.y2.lang.html#step.yast.lang.additional.root" title="Step 4">Step 4</a>. The option
     <span class="guimenu">Locale Settings for User root</span> determines how the
     locale variables (<code class="envar">LC_*</code>) in the file
     <code class="filename">/etc/sysconfig/language</code> are set for <code class="systemitem">root</code>.
     You can either set them to the same locale as for normal users, keep it
     unaffected by any language changes or only set the variable
     <code class="envar">RC_LC_CTYPE</code> to the same values as for the normal users.
     This variable sets the localization for language-specific function
     calls.
    </p><ol class="procedure" type="1"><li><p>
      To add additional languages in the YaST language module, select the
      <span class="guimenu">Secondary Languages</span> you wish to install.
     </p></li><li><p>
      To make a language the default language, set it as <span class="guimenu">Primary
      Language</span>.
     </p></li><li><p>
      Additionally, adapt the keyboard to the new primary language and
      adjust the time zone, if appropriate.
     </p><div class="tip"><table border="0" cellpadding="3" cellspacing="0" width="100%" summary="Tip"><tr class="head"><td width="32"><img alt="[Tip]" src="admon/tip.png"></td><th align="left"></th></tr><tr><td colspan="2" align="left" valign="top"><p>
       For advanced keyboard or time zone settings, select <span class="guimenu">Hardware</span>+<span class="guimenu"> Keyboard Layout</span> or <span class="guimenu">System</span>+<span class="guimenu">Date
       and Time</span> in YaST to start the respective
       dialogs. For more information, refer to <a class="xref" href="cha.y2.lang.html#sec.y2.country" title="9.2. Changing the Country and Time Settings">Section 9.2, &#8220;Changing the Country and Time Settings&#8221;</a>.
      </p></td></tr></table></div></li><li id="step.yast.lang.additional.root"><p>
      To change language settings specific to the user <code class="systemitem">root</code>, click
      <span class="guimenu">Details</span>.
     </p><ol type="a" class="substeps"><li><p>
        Set <span class="guimenu">Locale Settings for User root</span> to the desired
        value. For more information, click <span class="guimenu">Help</span>.
       </p></li><li><p>
        Decide if you want to <span class="guimenu">Use UTF-8 Encoding</span> for
        <code class="systemitem">root</code> or not.
       </p></li></ol></li><li><p>
      If your locale was not included in the list of primary languages
      available, try specifying it with <span class="guimenu">Detailed Locale
      Setting</span>. However, some of these localizations may be
      incomplete.
     </p></li><li><p>
      Confirm your changes in the dialogs with <span class="guimenu">OK</span>. If you
      have selected secondary languages, YaST installs the localized
      software packages for the additional languages.
     </p></li></ol></div><p>
    The system is now multilingual. However, to start an application in a
    language other than the primary one, you need to set the desired
    language explicitly as explained in
    <a class="xref" href="cha.y2.lang.html#sec.y2.lang.applications" title="9.1.3. Switching Languages for Individual Applications">Section 9.1.3, &#8220;Switching Languages for Individual Applications&#8221;</a>.
   </p></div><div class="sect2" title="9.1.2. Switching the Default System Language"><div class="titlepage"><div><div><h3 class="title"><a name="sec.y2.lang.switch"></a>9.1.2. Switching the Default System Language<span class="permalink"><a alt="Permalink" title="Copy Permalink" href="#sec.y2.lang.switch">¶</a></span></h3></div></div></div><div class="procedure"><ol class="procedure" type="1"><li><p>
      To globally switch the default system language, start the YaST
      language module.
     </p></li><li><p>
      Select the desired new system language as <span class="guimenu">Primary
      Language</span>.
     </p><div class="important"><table border="0" cellpadding="3" cellspacing="0" width="100%" summary="Important: Deleting Former System Languages"><tr class="head"><td width="32"><img alt="[Important]" src="admon/important.png"></td><th align="left">Deleting Former System Languages</th></tr><tr><td colspan="2" align="left" valign="top"><p>
       If you switch to a different primary language, the localized software
       packages for the former primary language will be removed from the
       system. If you want to switch the default system language but want to
       keep the former primary language as additional language, add it as
       <span class="guimenu">Secondary Language</span> by enabling the respective
       checkbox.
      </p></td></tr></table></div></li><li><p>
      Adjust the keyboard and time zone options as desired.
     </p></li><li><p>
      Confirm your changes with <span class="guimenu">OK</span>.
     </p></li><li><p>
      After YaST has applied the changes, restart any X sessions (for
      example, by logging out and logging in again) to make YaST and the
      desktop applications reflect your new language settings.
     </p></li></ol></div></div><div class="sect2" title="9.1.3. Switching Languages for Individual Applications"><div class="titlepage"><div><div><h3 class="title"><a name="sec.y2.lang.applications"></a>9.1.3. Switching Languages for Individual Applications<span class="permalink"><a alt="Permalink" title="Copy Permalink" href="#sec.y2.lang.applications">¶</a></span></h3></div></div></div><p>
    After you have installed the respective language with YaST, you can
    run a single application in another language.
   </p><div class="variablelist"><dl><dt><span class="term">Standard X and GNOME Applications</span></dt><dd><p>
       Start the application from the command line by using the following
       command:
      </p><pre class="screen">LANG=<em class="replaceable"><code>language</code></em> <em class="replaceable"><code>application</code></em></pre><p>
       For example, to start f-spot in German, run
       <span class="command"><strong>LANG=de_DE f-spot</strong></span>. For other languages, use
       the appropriate language code. Get a list of all language codes
       available with the
       <span class="command"><strong>locale <code class="option">-av</code></strong></span> command.
      </p></dd><dt><span class="term">KDE Applications</span></dt><dd><p>
       Start the application from the command line by using the following
       command:
      </p><pre class="screen">KDE_LANG=<em class="replaceable"><code>language</code></em> <em class="replaceable"><code>application</code></em></pre><p>
       For example, to start digiKam in German, run
       <span class="command"><strong>KDE_LANG=de digikam</strong></span>. For other languages, use
       the appropriate language code.
      </p></dd></dl></div></div></div><div class="sect1" title="9.2. Changing the Country and Time Settings"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec.y2.country"></a>9.2. Changing the Country and Time Settings<span class="permalink"><a alt="Permalink" title="Copy Permalink" href="#sec.y2.country">¶</a></span></h2></div></div></div><p>
   Using the YaST date and time module, adjust your system date, clock and
   time zone information to the area you are working in. To access the
   YaST module, start YaST and click <span class="guimenu">System</span>+<span class="guimenu">Date and Time</span>.
   Alternatively, start the <span class="guimenu">Clock and Time Zone</span> dialog
   directly by running <span class="command"><strong>yast2 timezone &amp;</strong></span> as user
   <code class="systemitem">root</code> from a command line.
  </p><div class="informalfigure"><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0" width="75%"><tr><td><img src="images/yast2-timezone.png" width="100%"></td></tr></table></div></div><p>
   First, select a general region, such as <span class="guimenu">Europe</span>. Choose
   an appropriate country that matches the one you are working in, for
   example, <span class="guimenu">Germany</span>.
  </p><p>
   Depending on which operating systems run on your workstation, adjust the
   hardware clock settings accordingly:
  </p><div class="itemizedlist"><ul class="itemizedlist" type="bullet"><li class="listitem" style="list-style-type: disc"><p>
     If you run another operating system on your machine, such as Microsoft
     Windows*, it is likely your system does not use UTC, but local time. In
     this case, uncheck <span class="guimenu">Hardware Clock Set To UTC</span>.
    </p></li><li class="listitem" style="list-style-type: disc"><p>
     If you only run Linux on your machine, set the hardware clock to UTC
     and have the switch form standard time to daylight saving time
     performed automatically.
    </p></li></ul></div><p>
   You can change the date and time manually or opt for synchronizing your
   machine against an NTP server, either permanently or just for adjusting
   your hardware clock.
  </p><div class="procedure" title="Procedure 9.2. Manually Adjusting Time and Date"><a name="id449605"></a><p class="title"><b>Procedure 9.2. Manually Adjusting Time and Date</b></p><ol class="procedure" type="1"><li><p>
     In the YaST timezone module, click <span class="guimenu">Change</span> to set
     date and time.
    </p></li><li><p>
     Select <span class="guimenu">Manually</span> and enter date and time values.
    </p></li><li><p>
     Confirm your changes with <span class="guimenu">Accept</span>.
    </p></li></ol></div><div class="procedure" title="Procedure 9.3. Setting Date and Time With NTP Server"><a name="id449654"></a><p class="title"><b>Procedure 9.3. Setting Date and Time With NTP Server</b></p><ol class="procedure" type="1"><li><p>
     Click <span class="guimenu">Change</span> to set date and time.
    </p></li><li><p>
     Select <span class="guimenu">Synchronize with NTP Server</span>.
    </p></li><li><p>
     Enter the address of an NTP server, if not already populated.
    </p><div class="informalfigure"><div class="mediaobject"><table border="0" summary="manufactured viewport for HTML img" cellspacing="0" cellpadding="0" width="75%"><tr><td><img src="images/yast2-timezone-ntp.png" width="100%"></td></tr></table></div></div></li><li><p>
     Click <span class="guimenu">Synchronize Now</span>, to get your system time set
     correctly.
    </p></li><li><p>
     If you want to make use of NTP permanently, enable <span class="guimenu">Save NTP
     Configuration</span>.
    </p></li><li><p>
     With the <span class="guimenu">Configure</span> button, you can open the advanced
     NTP configuration. For details, see
     <a class="xref" href="cha.netz.xntp.html#sec.netz.xntp.yast" title="25.1. Configuring an NTP Client with YaST">Section 25.1, &#8220;Configuring an NTP Client with YaST&#8221;</a>.
    </p></li><li><p>
     Confirm your changes with <span class="guimenu">Accept</span>.
    </p></li></ol></div></div></div><div class="navfooter"><table width="100%" summary="Navigation footer" border="0" class="bctable"><tr><td width="80%"><div class="breadcrumbs"><p><a href="index.html"> Documentation</a><span class="breadcrumbs-sep"> &gt; </span><a href="book.opensuse.reference.html">Reference</a><span class="breadcrumbs-sep"> &gt; </span><a href="part.reference.administration.html">Administration</a><span class="breadcrumbs-sep"> &gt; </span><strong><a accesskey="p" title="Chapter 8. Managing Users with YaST" href="cha.y2.userman.html"><span>&#9664;</span></a>  <a accesskey="n" title="Chapter 10. YaST in Text Mode" href="cha.yast.text.html"><span>&#9654;</span></a></strong></p></div></td></tr></table></div></body></html>

ACC SHELL 2018