Blame Manual/repository-html/repository_70.html

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

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

632e8b
632e8b
9bfd15
632e8b

2.66.1 Goals

632e8b
632e8b
    632e8b
  • ...
  • 632e8b
    632e8b
    632e8b
    9bfd15
    632e8b

    2.66.2 Description

    632e8b
    9bfd15

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

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

    9bfd15

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

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

    9bfd15

    The CLI_LANG variable discribes the locale language used to

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

    9bfd15

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

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

    9bfd15

    At this point, the LANG environment variable has the appropriate

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

    9bfd15

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

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

    9bfd15

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

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

    9bfd15

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

    9bfd15
    available to your language when runing centos-art.sh script. 
    9bfd15

    9bfd15

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

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

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

        2.66.3 Usage

        632e8b
        9bfd15
        9bfd15
        <samp>`centos-art locale --edit'</samp>
        9bfd15

        Use this command to translate command-line interface output messages

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

        9bfd15
        <samp>`centos-art locale --list'</samp>
        9bfd15

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

        9bfd15

        9bfd15
        632e8b
        632e8b
        9bfd15
        632e8b

        2.66.4 See also

        632e8b
        f66721
        f66721
        f66721
        9bfd15
        [ < ]
        9bfd15
        [ > ]
        f66721
           
        632e8b
        [ << ]
        9bfd15
        [ Up ]
        9bfd15
        [ >> ]
        f66721
        f66721

        f66721
         <font size="-1">
        9bfd15
          This document was generated on March, 8 2011 using texi2html 1.76.
        f66721
         </font>
        f66721
         
        f66721
        f66721

        f66721
        </body>
        f66721
        </html>