Blame Manuals/Repository/repository-html/repository_54.html

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

3.51 trunk/Scripts/Bash/Functions/Locale

6aec21
fe989b
4a9d2a
081970

3.51.1 Goals

6aec21
008ee0
    ec5f63
  • ...
  • 008ee0
    fe989b
    008ee0
    4a9d2a
    273af8

    3.51.2 Description

    60c152
    c2a1bc

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

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

    c2a1bc

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

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

    c2a1bc

    The CLI_LANG variable discribes the locale language used to

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

    c2a1bc

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

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

    c2a1bc

    At this point, the LANG environment variable has the appropriate

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

    c2a1bc

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

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

    c2a1bc

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

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

    c2a1bc

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

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

    c2a1bc

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

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

    c2a1bc
      c2a1bc
    • <tt>`trunk/Scripts/Bash/initFunctions.sh'</tt>
    • c2a1bc
    • <tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessages.sh'</tt>
    • c2a1bc
    • <tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessagesStatus.sh'</tt>
    • c2a1bc
      c2a1bc
      035049
        ec5f63
      • ...
      • 035049
        e37211
        e37211
        4a9d2a
        e37211

        3.51.3 Usage

        e37211
        c2a1bc
        c2a1bc
        <samp>`centos-art locale --edit'</samp>
        c2a1bc

        Use this command to translate command-line interface output messages

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

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

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

        c2a1bc

        c2a1bc
        e37211
        035049
        4a9d2a
        4c79b5

        3.51.4 See also

        4c79b5
        4c79b5
        4c79b5
        4c79b5
        4a9d2a
        [ < ]
        4a9d2a
        [ > ]
        4c79b5
           
        4c79b5
        [ << ]
        4a9d2a
        [ Up ]
        c2a1bc
        [ >> ]
        4c79b5
        4c79b5

        4c79b5
         <font size="-1">
        acd47b
          This document was generated on February, 26 2011 using texi2html 1.76.
        4c79b5
         </font>
        4c79b5
         
        4c79b5
        4c79b5

        4c79b5
        </body>
        4c79b5
        </html>