Blame Manuals/en/Html/Repository/repository_46.html

4c79b5
4c79b5
<html>
4c79b5
4c79b5
can you do inside it.
4c79b5
4c79b5
Copyright C 2009, 2010 CentOS Artwork SIG. All rights
4c79b5
reserved.
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
-->
300762
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>
300762
<title>CentOS Artwork Repository: 3.43 trunk/Scripts/Bash/Locale</title>
4c79b5
300762
<meta name="description" content="CentOS Artwork Repository: 3.43 trunk/Scripts/Bash/Locale">
300762
<meta name="keywords" content="CentOS Artwork Repository: 3.43 trunk/Scripts/Bash/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
4c79b5
@import "/home/centos/artwork/trunk/Identity/Themes/Motifs/Modern/Web/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
300762
[ < ]
300762
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
300762
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
300762
[Index]
4c79b5
[ ? ]
4c79b5
300762
300762
300762

3.43 trunk/Scripts/Bash/Locale

4c79b5
4c79b5
300762
4c79b5

3.43.1 Goals

4c79b5
4c79b5
    300762
  • Organize <tt>`centos-art.sh'</tt> locale files.
  • 4c79b5
    4c79b5
    4c79b5
    300762
    4c79b5

    3.43.2 Description

    4c79b5
    300762

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

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

    300762

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

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

    300762

    The CLI_LANG variable discribes the locale language used to

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

    300762

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

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

    300762

    At this point, the LANG environment variable has the appropriate

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

    300762

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

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

    300762

    When you finish PO file's edition and quit text editor, the

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

    300762

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

    300762
    available to your language when runing centos-art.sh script. 
    4c79b5

    4c79b5
    300762
    300762

    3.43.2.1 Configuration files

    4c79b5
    300762

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

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

    300762
      300762
    • <tt>`trunk/Scripts/Bash/initFunctions.sh'</tt>
    • 300762
    • <tt>`trunk/Scripts/Bash/Functions/Config/cli_localeMessages.sh'</tt>
    • 300762
    • <tt>`trunk/Scripts/Bash/Functions/Config/cli_localeMessagesStatus.sh'</tt>
    • 300762
      4c79b5
      4c79b5
      300762
      4c79b5

      3.43.3 Usage

      4c79b5
      4c79b5
      300762
      300762

      3.43.3.1 The centos-art <samp>`locale-cli'</samp> action

      300762
      300762
      300762
      <samp>`centos-art locale-cli --edit'</samp>
      300762

      Use this command to translate command-line interface output messages

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

      300762
      <samp>`centos-art locale-cli --list'</samp>
      300762

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

      300762

      300762
      300762
      300762
      300762
      4c79b5

      3.43.4 See also

      4c79b5
      4c79b5
      300762
      3.28 trunk/Scripts/Bash/Config  
      300762
      300762
      3.31 trunk/Scripts/Bash/Functions  
      4c79b5
      300762
      3.26 trunk/Scripts  
      4c79b5
      4c79b5
      4c79b5
      4c79b5
      4c79b5
      300762
      [ < ]
      300762
      [ > ]
      4c79b5
         
      4c79b5
      [ << ]
      300762
      [ Up ]
      300762
      [ >> ]
      4c79b5
      4c79b5

      4c79b5
       <font size="-1">
      300762
        This document was generated on September, 23 2010 using texi2html 1.76.
      4c79b5
       </font>
      4c79b5
       
      4c79b5
      4c79b5

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