Blame Manual/repository-html/repository_57.html

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

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

ee1f37
ee1f37
b9dbd3
b9dbd3

2.55.1 Goals

ee1f37
b130a0
    b130a0
  • ...
  • b130a0
    b130a0
    ee1f37
    b9dbd3
    b9dbd3

    2.55.2 Description

    ee1f37
    b9dbd3

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

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

    b9dbd3

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

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

    b9dbd3

    The CLI_LANG variable discribes the locale language used to

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

    b9dbd3

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

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

    b9dbd3

    At this point, the LANG environment variable has the appropriate

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

    b9dbd3

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

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

    b9dbd3

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

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

    b9dbd3

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

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

    b9dbd3

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

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

    b130a0
      b9dbd3
    • <tt>`trunk/Scripts/Bash/initFunctions.sh'</tt>
    • b9dbd3
    • <tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessages.sh'</tt>
    • b9dbd3
    • <tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessagesStatus.sh'</tt>
    • b130a0
      ee1f37
      b130a0
        b130a0
      • ...
      • b130a0
        aaf678
        aaf678
        b9dbd3
        b9dbd3

        2.55.3 Usage

        b9dbd3
        b9dbd3
        b9dbd3
        <samp>`centos-art locale --edit'</samp>
        b9dbd3

        Use this command to translate command-line interface output messages

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

        b9dbd3
        <samp>`centos-art locale --list'</samp>
        b9dbd3

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

        b9dbd3

        b9dbd3
        b9dbd3
        b9dbd3
        b9dbd3
        b9dbd3

        2.55.4 See also

        ee1f37
        ee1f37
        ee1f37
        ee1f37
        b9dbd3
        [ < ]
        b9dbd3
        [ > ]
        ee1f37
           
        b9dbd3
        [ << ]
        b9dbd3
        [ Up ]
        b9dbd3
        [ >> ]
        ee1f37
        ee1f37

        ee1f37
         <font size="-1">
        406f69
          This document was generated on March, 1 2011 using texi2html 1.76.
        ee1f37
         </font>
        ee1f37
         
        ee1f37
        ee1f37

        ee1f37
        </body>
        ee1f37
        </html>