Blame Manual/repository-html/repository_75.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
-->
52772c
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>
1075b9
<title>CentOS Artwork Repository: 2.68 The trunk/Scripts/Bash/Cli/Functions/Locale Directory</title>
632e8b
1075b9
<meta name="description" content="CentOS Artwork Repository: 2.68 The trunk/Scripts/Bash/Cli/Functions/Locale Directory">
1075b9
<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
1075b9
[ < ]
52772c
[ > ]
632e8b
   
1075b9
[ << ]
1075b9
[ Up ]
1075b9
[ >> ]
632e8b
   
632e8b
   
632e8b
   
632e8b
   
1075b9
[Top]
1075b9
[Contents]
1075b9
[Index]
1075b9
[ ? ]
632e8b
1075b9
52772c
52772c

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

632e8b
06d106
52772c
52772c

2.68.1 Goals

9bfd15
52772c
    52772c
  • ...
  • 52772c
    06d106
    632e8b
    52772c
    52772c

    2.68.2 Description

    52772c
    52772c

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

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

    52772c

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

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

    52772c

    The CLI_LANG variable discribes the locale language used to

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

    52772c

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

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

    52772c

    At this point, the LANG environment variable has the appropriate

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

    52772c

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

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

    52772c

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

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

    52772c

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

    52772c
    available to your language when runing centos-art.sh script. 
    52772c

    52772c

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

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

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

        2.68.3 Usage

        632e8b
        632e8b
        52772c
        <samp>`centos-art locale --edit'</samp>
        52772c

        Use this command to translate command-line interface output messages

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

        52772c
        <samp>`centos-art locale --list'</samp>
        52772c

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

        632e8b

        632e8b
        632e8b
        06d106
        52772c
        52772c

        2.68.4 See also

        632e8b
        632e8b
        632e8b
        632e8b
        52772c
        [ < ]
        1075b9
        [ > ]
        632e8b
           
        1075b9
        [ << ]
        52772c
        [ Up ]
        1075b9
        [ >> ]
        632e8b
        632e8b

        632e8b
         <font size="-1">
        52772c
          This document was generated on March, 22 2011 using texi2html 1.76.
        632e8b
         </font>
        632e8b
         
        632e8b
        632e8b

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