Blame Identity/Manual/repository-html/repository_72.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
-->
f456e5
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>
ed9de5
<title>CentOS Artwork Repository: 2.65 The trunk/Scripts/Functions/Locale Directory</title>
632e8b
ed9de5
<meta name="description" content="CentOS Artwork Repository: 2.65 The trunk/Scripts/Functions/Locale Directory">
ed9de5
<meta name="keywords" content="CentOS Artwork Repository: 2.65 The trunk/Scripts/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
f456e5
@import "/home/centos/artwork/trunk/Identity/Manual/repository.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
ed9de5
[ < ]
ed9de5
[ > ]
632e8b
   
1075b9
[ << ]
1075b9
[ Up ]
ed9de5
[ >> ]
632e8b
   
632e8b
   
632e8b
   
632e8b
   
1075b9
[Top]
1075b9
[Contents]
ed9de5
[Index]
1075b9
[ ? ]
632e8b
ed9de5
ed9de5
ed9de5

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

632e8b
632e8b
ed9de5
52772c

2.65.1 Goals

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

    2.65.2 Description

    06d106
    ed9de5

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

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

    ed9de5

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

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

    ed9de5

    The CLI_LANG variable discribes the locale language used to

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

    ed9de5

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

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

    ed9de5

    At this point, the LANG environment variable has the appropriate

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

    ed9de5

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

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

    ed9de5

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

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

    ed9de5

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

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

    ed9de5

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

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

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

        2.65.3 Usage

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

        Use this command to translate command-line interface output messages

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

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

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

        ed9de5

        ed9de5
        632e8b
        632e8b
        ed9de5
        52772c

        2.65.4 See also

        632e8b
        632e8b
        632e8b
        632e8b
        ed9de5
        [ < ]
        ed9de5
        [ > ]
        632e8b
           
        1075b9
        [ << ]
        ed9de5
        [ Up ]
        ed9de5
        [ >> ]
        632e8b
        632e8b

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

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