Blame Manual/repository-html/repository_69.html

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

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

632e8b
632e8b
632e8b
632e8b

2.65.1 Goals

632e8b
632e8b
    632e8b
  • ...
  • 632e8b
    632e8b
    632e8b
    632e8b
    632e8b

    2.65.2 Description

    632e8b
    632e8b

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

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

    632e8b

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

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

    632e8b

    The CLI_LANG variable discribes the locale language used to

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

    632e8b

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

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

    632e8b

    At this point, the LANG environment variable has the appropriate

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

    632e8b

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

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

    632e8b

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

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

    632e8b

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

    632e8b
    available to your language when runing centos-art.sh script. 
    632e8b

    632e8b

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

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

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

        2.65.3 Usage

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

        Use this command to translate command-line interface output messages

        632e8b
        in the current system locale you are using (as specified in LANG
        632e8b
        environment variable).
        671838

        632e8b
        <samp>`centos-art locale --list'</samp>
        632e8b

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

        671838

        671838
        34051a
        34051a
        632e8b
        632e8b

        2.65.4 See also

        632e8b
        632e8b
        632e8b
        34051a
        632e8b
        [ < ]
        632e8b
        [ > ]
        34051a
           
        632e8b
        [ << ]
        632e8b
        [ Up ]
        632e8b
        [ >> ]
        34051a
        34051a

        34051a
         <font size="-1">
        632e8b
          This document was generated on March, 4 2011 using texi2html 1.76.
        34051a
         </font>
        34051a
         
        34051a
        34051a

        34051a
        </body>
        34051a
        </html>