Blame Identity/Manual/repository-xhtml/repository_2.65.html

728c6d
728c6d
<html>
728c6d
728c6d
organization, and administration of CentOS Artwork Repository.
728c6d
728c6d
Copyright C 2009-2011 Alain Reguera Delgado
728c6d
728c6d
Permission is granted to copy, distribute and/or modify this document
728c6d
under the terms of the GNU Free Documentation License, Version 1.2 or
728c6d
any later version published by the Free Software Foundation; with no
728c6d
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
728c6d
copy of the license is included in the section entitled GNU Free
728c6d
Documentation License.  
728c6d
-->
728c6d
728c6d
728c6d
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
728c6d
            Karl Berry  <karl@freefriends.org>
728c6d
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
728c6d
            and many others.
728c6d
Maintained by: Many creative people <dev@texi2html.cvshome.org>
728c6d
Send bugs and suggestions to <users@texi2html.cvshome.org>
728c6d
728c6d
-->
728c6d
<head>
728c6d
<title>CentOS Artwork Repository: 2.65 The trunk/Scripts/Functions/Locale Directory</title>
728c6d
728c6d
<meta name="description" content="CentOS Artwork Repository: 2.65 The trunk/Scripts/Functions/Locale Directory">
728c6d
<meta name="keywords" content="CentOS Artwork Repository: 2.65 The trunk/Scripts/Functions/Locale Directory">
728c6d
<meta name="resource-type" content="document">
728c6d
<meta name="distribution" content="global">
728c6d
<meta name="Generator" content="texi2html 1.76">
728c6d
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
728c6d
<style type="text/css">
728c6d
728c6d
/* CSS
728c6d
 *
728c6d
 * repository.css -- This file provides visual style for repository
728c6d
 * documentation manual in HTML format, as output by Texi2html
728c6d
 * program.
728c6d
 *
728c6d
 * Copyright (C) 2009-2011 Alain Reguera Delgado
728c6d
 *
728c6d
 * This program is free software; you can redistribute it and/or
728c6d
 * modify it under the terms of the GNU General Public License as
728c6d
 * published by the Free Software Foundation; either version 2 of the
728c6d
 * License, or (at your option) any later version.
728c6d
 * 
728c6d
 * This program is distributed in the hope that it will be useful, but
728c6d
 * WITHOUT ANY WARRANTY; without even the implied warranty of
728c6d
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
728c6d
 * General Public License for more details.
728c6d
 *
728c6d
 * You should have received a copy of the GNU General Public License
728c6d
 * along with this program; if not, write to the Free Software
728c6d
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
728c6d
 * USA.
728c6d
 * ----------------------------------------------------------------------
728c6d
 * $Id$
728c6d
 * ----------------------------------------------------------------------
728c6d
 */
728c6d
728c6d
@import url("/home/centos/artwork/trunk/Identity/Webenv/Css/base.css");
728c6d
@import url("/home/centos/artwork/trunk/Identity/Webenv/Css/base-app.css");
728c6d
728c6d
a.summary-letter {text-decoration: none}
728c6d
pre.display {font-family: serif}
728c6d
pre.format {font-family: serif}
728c6d
pre.menu-comment {font-family: serif}
728c6d
pre.menu-preformatted {font-family: serif}
728c6d
pre.smalldisplay {font-family: serif; font-size: smaller}
728c6d
pre.smallexample {font-size: smaller}
728c6d
pre.smallformat {font-family: serif; font-size: smaller}
728c6d
pre.smalllisp {font-size: smaller}
728c6d
span.sansserif {font-family:sans-serif; font-weight:normal;}
728c6d
ul.toc {list-style: none}
728c6d
-->
728c6d
</style>
728c6d
728c6d
728c6d
</head>
728c6d
728c6d
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
728c6d
728c6d
728c6d
[ < ]
728c6d
[ > ]
728c6d
   
728c6d
[Contents]
728c6d
[Index]
728c6d
[ ? ]
728c6d
728c6d
728c6d
728c6d

2.65 The <tt>`trunk/Scripts/Functions/Locale'</tt> Directory

728c6d
    728c6d
    2.65.1 Goals 
    728c6d
    2.65.2 Description 
    728c6d
    2.65.3 Usage 
    728c6d
    2.65.4 See also 
    728c6d
    728c6d
    728c6d
    728c6d
    728c6d

    2.65.1 Goals

    728c6d
    728c6d
      728c6d
    • ...
    • 728c6d
      728c6d
      728c6d
      728c6d
      728c6d

      2.65.2 Description

      728c6d
      728c6d

      This command looks for <samp>`.sh'</samp> files inside Bash directory and

      728c6d
      extracts translatable strings from files, using xgettext
      728c6d
      command, in order to create a portable object template
      728c6d
      (<tt>`centos-art.sh.pot'</tt>) file for them.
      728c6d

      728c6d

      With the <tt>`centos-art.sh.pot'</tt> file up to date, the

      728c6d
      centos-art command removes the temporal list of files sotred
      728c6d
      inside <tt>`/tmp'</tt> directory and checks the current language of your
      728c6d
      user's session to create a portable object file for it, in the
      728c6d
      location <tt>`$CLI_LANG/$CLI_LANG.po'</tt>. 
      728c6d

      728c6d

      The CLI_LANG variable discribes the locale language used to

      728c6d
      output messages inside centos-art command. The locale
      728c6d
      language used inside centos-art command is taken from the
      728c6d
      LANG environment variable.  The CLI_LANG variable has the
      728c6d
      <samp>`LL_CC'</samp> format, where <samp>`LL'</samp> is a language code from the
      728c6d
      ISO-639 standard, and <samp>`CC'</samp> a country code from the ISO-3166
      728c6d
      standard.
      728c6d

      728c6d

      The LANG environment variable is set when you do log in to your

      728c6d
      system. If you are using a graphical session, change language to your
      728c6d
      native language and do login. That would set and exoprt the LANG
      728c6d
      environment variable to the correct value. On the other side, if you
      728c6d
      are using a text session edit your <tt>`~/.bash_profile'</tt> file to set
      728c6d
      and export the LANG environment variable to your native locale
      728c6d
      as defines the locale -a command output; do logout, and do
      728c6d
      login again.
      728c6d

      728c6d

      At this point, the LANG environment variable has the appropriate

      728c6d
      value you need, in order to translate centos-art.sh messages
      728c6d
      to your native language (the one set in LANG environment
      728c6d
      variable). 
      728c6d

      728c6d

      With the <tt>`$CLI_LANG/$CLI_LANG.po'</tt> file up to date, the

      728c6d
      centos-art opens it for you to update translation strings.
      728c6d
      The centos-art command uses the value of EDITOR
      728c6d
      environment variable to determine your favorite text editor. If no
      728c6d
      value is defined on EDITOR, the <tt>`/usr/bin/vim'</tt> text editor
      728c6d
      is used as default.
      728c6d

      728c6d

      When you finishd PO file edition and quit text editor, the

      728c6d
      centos-art command creates the related machine object in the
      728c6d
      location <tt>`$CLI_LANG/LC_MESSAGES/$TEXTDOMAIN.mo'</tt>.
      728c6d

      728c6d

      At this point, all translations you made in the PO file should be

      728c6d
      available to your language when runing centos-art.sh script. 
      728c6d

      728c6d

      In order to make the centos-art.sh internationalization, the

      728c6d
      centos-art.sh script was modified as described in the
      728c6d
      gettext info documentation (info gettext).  You
      728c6d
      can find such modifications in the following files:
      728c6d

      728c6d
        728c6d
      • <tt>`trunk/Scripts/Bash/initFunctions.sh'</tt>
      • 728c6d
      • <tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessages.sh'</tt>
      • 728c6d
      • <tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessagesStatus.sh'</tt>
      • 728c6d
        728c6d
        728c6d
          728c6d
        • ...
        • 728c6d
          728c6d
          728c6d
          728c6d
          728c6d

          2.65.3 Usage

          728c6d
          728c6d
          728c6d
          <samp>`centos-art locale --edit'</samp>
          728c6d

          Use this command to translate command-line interface output messages

          728c6d
          in the current system locale you are using (as specified in LANG
          728c6d
          environment variable).
          728c6d

          728c6d
          <samp>`centos-art locale --list'</samp>
          728c6d

          Use this command to see the command-line interface locale report.

          728c6d

          728c6d
          728c6d
          728c6d
          728c6d
          728c6d

          2.65.4 See also

          728c6d
          728c6d
          728c6d
          728c6d
          728c6d
          [Contents]
          728c6d
          [Index]
          728c6d
          [ ? ]
          728c6d
          728c6d

          728c6d
           <font size="-1">
          728c6d
            This document was generated on March, 30 2011 using texi2html 1.76.
          728c6d
           </font>
          728c6d
           
          728c6d
          728c6d

          728c6d
          </body>
          728c6d
          </html>