Blame Manual/repository-html/repository_72.html

632e8b
632e8b
<html>
632e8b
632e8b
organization, and administration of CentOS Artwork Repository.
632e8b
632e8b
Copyright C 2009-2011 Alain Reguera Delgado
632e8b
632e8b
Permission is granted to copy, distribute and/or modify this document
632e8b
under the terms of the GNU Free Documentation License, Version 1.2 or
632e8b
any later version published by the Free Software Foundation; with no
632e8b
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
632e8b
copy of the license is included in the section entitled GNU Free
632e8b
Documentation License.  
632e8b
-->
949b9b
632e8b
632e8b
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
632e8b
            Karl Berry  <karl@freefriends.org>
632e8b
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
632e8b
            and many others.
632e8b
Maintained by: Many creative people <dev@texi2html.cvshome.org>
632e8b
Send bugs and suggestions to <users@texi2html.cvshome.org>
632e8b
632e8b
-->
632e8b
<head>
06d106
<title>CentOS Artwork Repository: 2.68 The trunk/Scripts/Bash/Cli/Functions/Locale Directory</title>
632e8b
06d106
<meta name="description" content="CentOS Artwork Repository: 2.68 The trunk/Scripts/Bash/Cli/Functions/Locale Directory">
06d106
<meta name="keywords" content="CentOS Artwork Repository: 2.68 The trunk/Scripts/Bash/Cli/Functions/Locale Directory">
632e8b
<meta name="resource-type" content="document">
632e8b
<meta name="distribution" content="global">
632e8b
<meta name="Generator" content="texi2html 1.76">
632e8b
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
632e8b
<style type="text/css">
632e8b
632e8b
@import "/home/centos/artwork/trunk/Identity/Models/Css/Texi2html/common.css";
632e8b
632e8b
a.summary-letter {text-decoration: none}
632e8b
pre.display {font-family: serif}
632e8b
pre.format {font-family: serif}
632e8b
pre.menu-comment {font-family: serif}
632e8b
pre.menu-preformatted {font-family: serif}
632e8b
pre.smalldisplay {font-family: serif; font-size: smaller}
632e8b
pre.smallexample {font-size: smaller}
632e8b
pre.smallformat {font-family: serif; font-size: smaller}
632e8b
pre.smalllisp {font-size: smaller}
632e8b
span.sansserif {font-family:sans-serif; font-weight:normal;}
632e8b
ul.toc {list-style: none}
632e8b
-->
632e8b
</style>
632e8b
632e8b
632e8b
</head>
632e8b
632e8b
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
632e8b
632e8b
995423
[ < ]
995423
[ > ]
632e8b
   
632e8b
[ << ]
632e8b
[ Up ]
06d106
[ >> ]
632e8b
   
632e8b
   
632e8b
   
632e8b
   
632e8b
[Top]
632e8b
[Contents]
06d106
[Index]
632e8b
[ ? ]
632e8b
06d106
995423
06d106

2.68 The <tt>`trunk/Scripts/Bash/Cli/Functions/Locale'</tt> Directory

632e8b
632e8b
995423
9bfd15

2.68.1 Goals

9bfd15
06d106
    06d106
  • ...
  • 06d106
    06d106
    632e8b
    995423
    9bfd15

    2.68.2 Description

    632e8b
    06d106

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

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

    06d106

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

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

    06d106

    The CLI_LANG variable discribes the locale language used to

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

    06d106

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

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

    06d106

    At this point, the LANG environment variable has the appropriate

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

    06d106

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

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

    06d106

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

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

    06d106

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

    06d106
    available to your language when runing centos-art.sh script. 
    06d106

    06d106

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

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

    06d106
      06d106
    • <tt>`trunk/Scripts/Bash/initFunctions.sh'</tt>
    • 06d106
    • <tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessages.sh'</tt>
    • 06d106
    • <tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessagesStatus.sh'</tt>
    • 06d106
      06d106
      06d106
        06d106
      • ...
      • 06d106
        9bfd15
        632e8b
        06d106
        9bfd15

        2.68.3 Usage

        632e8b
        632e8b
        06d106
        <samp>`centos-art locale --edit'</samp>
        06d106

        Use this command to translate command-line interface output messages

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

        06d106
        <samp>`centos-art locale --list'</samp>
        06d106

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

        06d106

        632e8b
        632e8b
        632e8b
        06d106
        9bfd15

        2.68.4 See also

        632e8b
        632e8b
        632e8b
        632e8b
        06d106
        [ < ]
        06d106
        [ > ]
        632e8b
           
        632e8b
        [ << ]
        995423
        [ Up ]
        06d106
        [ >> ]
        632e8b
        632e8b

        632e8b
         <font size="-1">
        949b9b
          This document was generated on March, 11 2011 using texi2html 1.76.
        632e8b
         </font>
        632e8b
         
        632e8b
        632e8b

        632e8b
        </body>
        632e8b
        </html>