|
|
4c79b5 |
|
|
|
4c79b5 |
<html>
|
|
|
09d4f2 |
|
|
|
09d4f2 |
|
|
|
09d4f2 |
The CentOS Artwork Repository exists to organize and automate The
|
|
|
09d4f2 |
CentOS Project corporate visual identity (, to
|
|
|
09d4f2 |
start on).
|
|
|
4c79b5 |
|
|
|
6c4982 |
Copyright C 2009, 2010 Alain Reguera Delgado. 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 |
-->
|
|
|
008ee0 |
|
|
|
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>
|
|
|
e68a7a |
<title>CentOS Artwork Repository: 3.39 trunk/Scripts/Bash/Functions/Locale</title>
|
|
|
4c79b5 |
|
|
|
e68a7a |
<meta name="description" content="CentOS Artwork Repository: 3.39 trunk/Scripts/Bash/Functions/Locale">
|
|
|
e68a7a |
<meta name="keywords" content="CentOS Artwork Repository: 3.39 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 |
|
|
|
cbf5a9 |
[ < ]
|
|
|
cbf5a9 |
[ > ]
|
|
|
4c79b5 |
|
|
|
4c79b5 |
[ << ]
|
|
|
4c79b5 |
[ Up ]
|
|
|
b0644c |
[ >> ]
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
[Top]
|
|
|
4c79b5 |
[Contents]
|
|
|
b0644c |
[Index]
|
|
|
4c79b5 |
[ ? ]
|
|
|
4c79b5 |
|
|
|
e68a7a |
|
|
|
cbf5a9 |
|
|
|
e68a7a |
3.39 trunk/Scripts/Bash/Functions/Locale
|
|
|
54264c |
|
|
|
54264c |
|
|
|
cbf5a9 |
|
|
|
54264c |
3.39.1 Goals
|
|
|
54264c |
|
|
|
63f275 |
|
|
|
63f275 |
...
|
|
|
63f275 |
|
|
|
54b5a5 |
|
|
|
54b5a5 |
|
|
|
cbf5a9 |
|
|
|
63f275 |
3.39.2 Description
|
|
|
54b5a5 |
|
|
|
e68a7a |
This command looks for <samp>`.sh'</samp> files inside Bash directory and
|
|
|
e68a7a |
extracts translatable strings from files, using xgettext
|
|
|
e68a7a |
command, in order to create a portable object template
|
|
|
e68a7a |
(<tt>`centos-art.sh.pot'</tt>) file for them.
|
|
|
e68a7a |
|
|
|
e68a7a |
With the <tt>`centos-art.sh.pot'</tt> file up to date, the
|
|
|
e68a7a |
centos-art command removes the temporal list of files sotred
|
|
|
e68a7a |
inside <tt>`/tmp'</tt> directory and checks the current language of your
|
|
|
e68a7a |
user's session to create a portable object file for it, in the
|
|
|
e68a7a |
location <tt>`$CLI_LANG/$CLI_LANG.po'</tt>.
|
|
|
e68a7a |
|
|
|
e68a7a |
The CLI_LANG variable discribes the locale language used to
|
|
|
e68a7a |
output messages inside centos-art command. The locale
|
|
|
e68a7a |
language used inside centos-art command is taken from the
|
|
|
e68a7a |
LANG environment variable. The CLI_LANG variable has the
|
|
|
e68a7a |
<samp>`LL_CC'</samp> format, where <samp>`LL'</samp> is a language code from the
|
|
|
e68a7a |
ISO-639 standard, and <samp>`CC'</samp> a country code from the ISO-3166
|
|
|
e68a7a |
standard.
|
|
|
e68a7a |
|
|
|
e68a7a |
The LANG environment variable is set when you do log in to your
|
|
|
e68a7a |
system. If you are using a graphical session, change language to your
|
|
|
e68a7a |
native language and do login. That would set and exoprt the LANG
|
|
|
e68a7a |
environment variable to the correct value. On the other side, if you
|
|
|
e68a7a |
are using a text session edit your <tt>`~/.bash_profile'</tt> file to set
|
|
|
e68a7a |
and export the LANG environment variable to your native locale
|
|
|
e68a7a |
as defines the locale -a command output; do logout, and do
|
|
|
e68a7a |
login again.
|
|
|
e68a7a |
|
|
|
e68a7a |
At this point, the LANG environment variable has the appropriate
|
|
|
e68a7a |
value you need, in order to translate centos-art.sh messages
|
|
|
e68a7a |
to your native language (the one set in LANG environment
|
|
|
e68a7a |
variable).
|
|
|
e68a7a |
|
|
|
e68a7a |
With the <tt>`$CLI_LANG/$CLI_LANG.po'</tt> file up to date, the
|
|
|
e68a7a |
centos-art opens it for you to update translation strings.
|
|
|
e68a7a |
The centos-art command uses the value of EDITOR
|
|
|
e68a7a |
environment variable to determine your favorite text editor. If no
|
|
|
e68a7a |
value is defined on EDITOR, the <tt>`/usr/bin/vim'</tt> text editor
|
|
|
e68a7a |
is used as default.
|
|
|
e68a7a |
|
|
|
e68a7a |
When you finish PO file's edition and quit text editor, the
|
|
|
e68a7a |
centos-art command creates the related machine object in the
|
|
|
e68a7a |
location <tt>`$CLI_LANG/LC_MESSAGES/$TEXTDOMAIN.mo'</tt>.
|
|
|
e68a7a |
|
|
|
e68a7a |
At this point, all translations you made in the PO file should be
|
|
|
e68a7a |
available to your language when runing centos-art.sh script.
|
|
|
e68a7a |
|
|
|
e68a7a |
In order to make the centos-art.sh internationalization, the
|
|
|
e68a7a |
centos-art.sh script was modified as described in the
|
|
|
e68a7a |
gettext info documentation (info gettext ). You
|
|
|
e68a7a |
can find such modifications in the following files:
|
|
|
e68a7a |
|
|
|
e68a7a |
|
|
|
e68a7a |
<tt>`trunk/Scripts/Bash/initFunctions.sh'</tt>
|
|
|
e68a7a |
<tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessages.sh'</tt>
|
|
|
e68a7a |
<tt>`trunk/Scripts/Bash/Functions/Help/cli_localeMessagesStatus.sh'</tt>
|
|
|
e68a7a |
|
|
|
e68a7a |
|
|
|
63f275 |
|
|
|
63f275 |
...
|
|
|
63f275 |
|
|
|
54b5a5 |
|
|
|
081970 |
|
|
|
cbf5a9 |
|
|
|
008ee0 |
3.39.3 Usage
|
|
|
008ee0 |
|
|
|
e68a7a |
|
|
|
e68a7a |
<samp>`centos-art locale --edit'</samp>
|
|
|
e68a7a |
Use this command to translate command-line interface output messages
|
|
|
e68a7a |
in the current system locale you are using (as specified in LANG
|
|
|
e68a7a |
environment variable).
|
|
|
e68a7a |
|
|
|
e68a7a |
<samp>`centos-art locale --list'</samp>
|
|
|
e68a7a |
Use this command to see the command-line interface locale report.
|
|
|
e68a7a |
|
|
|
e68a7a |
|
|
|
54b5a5 |
|
|
|
54b5a5 |
|
|
|
cbf5a9 |
|
|
|
54b5a5 |
3.39.4 See also
|
|
|
54b5a5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
cbf5a9 |
[ < ]
|
|
|
cbf5a9 |
[ > ]
|
|
|
4c79b5 |
|
|
|
4c79b5 |
[ << ]
|
|
|
cbf5a9 |
[ Up ]
|
|
|
b0644c |
[ >> ]
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<font size="-1">
|
|
|
008ee0 |
This document was generated on December, 2 2010 using texi2html 1.76.
|
|
|
4c79b5 |
</font>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
</body>
|
|
|
4c79b5 |
</html>
|