[ < ] | [ > ] | [Contents] | [Index] | [ ? ] |
This command looks for `.sh' files inside Bash directory and
extracts translatable strings from files, using xgettext
command, in order to create a portable object template
(`centos-art.sh.pot') file for them.
With the `centos-art.sh.pot' file up to date, the
centos-art
command removes the temporal list of files sotred
inside `/tmp' directory and checks the current language of your
user's session to create a portable object file for it, in the
location `$CLI_LANG/$CLI_LANG.po'.
The CLI_LANG variable discribes the locale language used to
output messages inside centos-art
command. The locale
language used inside centos-art
command is taken from the
LANG
environment variable. The CLI_LANG variable has the
`LL_CC' format, where `LL' is a language code from the
ISO-639 standard, and `CC' a country code from the ISO-3166
standard.
The LANG
environment variable is set when you do log in to your
system. If you are using a graphical session, change language to your
native language and do login. That would set and exoprt the LANG
environment variable to the correct value. On the other side, if you
are using a text session edit your `~/.bash_profile' file to set
and export the LANG
environment variable to your native locale
as defines the locale -a
command output; do logout, and do
login again.
At this point, the LANG
environment variable has the appropriate
value you need, in order to translate centos-art.sh
messages
to your native language (the one set in LANG
environment
variable).
With the `$CLI_LANG/$CLI_LANG.po' file up to date, the
centos-art
opens it for you to update translation strings.
The centos-art
command uses the value of EDITOR
environment variable to determine your favorite text editor. If no
value is defined on EDITOR, the `/usr/bin/vim' text editor
is used as default.
When you finishd PO file edition and quit text editor, the
centos-art
command creates the related machine object in the
location `$CLI_LANG/LC_MESSAGES/$TEXTDOMAIN.mo'.
At this point, all translations you made in the PO file should be
available to your language when runing centos-art.sh
script.
In order to make the centos-art.sh
internationalization, the
centos-art.sh
script was modified as described in the
gettext
info documentation (info gettext
). You
can find such modifications in the following files:
Use this command to translate command-line interface output messages
in the current system locale you are using (as specified in LANG
environment variable).
Use this command to see the command-line interface locale report.
[Contents] | [Index] | [ ? ] |
This document was generated on March, 30 2011 using texi2html 1.76.