|
Alain Reguera Delgado |
f72cfe |
locale(1)
|
|
Alain Reguera Delgado |
f72cfe |
=========
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Name
|
|
Alain Reguera Delgado |
f72cfe |
----
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
locale - Create, edit and delete translation files for images,
|
|
Alain Reguera Delgado |
f72cfe |
documents and automation scripts.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Synopsis
|
|
Alain Reguera Delgado |
f72cfe |
--------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
*centos-art.sh locale --help*::
|
|
Alain Reguera Delgado |
f72cfe |
Print module's documentation.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
*centos-art.sh locale --version*::
|
|
Alain Reguera Delgado |
f72cfe |
Print module's version.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
*centos-art.sh locale DIRECTORY [--update|--edit|--delete|--filter="REGEX"]*::
|
|
Alain Reguera Delgado |
f72cfe |
Perform directory localization.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
*centos-art.sh locale FILE [--update|--edit|--delete]*::
|
|
Alain Reguera Delgado |
f72cfe |
Perform file localization.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Description
|
|
Alain Reguera Delgado |
f72cfe |
-----------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
The *locale* produces translations files for images, documents and
|
|
Alain Reguera Delgado |
f72cfe |
automation scripts based on the LANG environment variable. In order to
|
|
Alain Reguera Delgado |
f72cfe |
produce locale-specific translation files, the current language
|
|
Alain Reguera Delgado |
f72cfe |
information set by the LANG environment variable must be different to
|
|
Alain Reguera Delgado |
f72cfe |
English (`en'). If the current language is English, the *locale*
|
|
Alain Reguera Delgado |
f72cfe |
module ends its execution with an error message. When the current
|
|
Alain Reguera Delgado |
f72cfe |
language is different to English, the *locale* looks for source files,
|
|
Alain Reguera Delgado |
f72cfe |
based on the arguments you passed through the command-line.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
When the argument you provided is a ``DIRECTORY'', the *locale* module
|
|
Alain Reguera Delgado |
f72cfe |
looks for configuration files inside it and produces translation files
|
|
Alain Reguera Delgado |
f72cfe |
based on the *render-from* and *locale-from* variables set in there.
|
|
Alain Reguera Delgado |
f72cfe |
On the other hand, when a ``FILE'' is provided, it takes the file
|
|
Alain Reguera Delgado |
f72cfe |
extension (i.e., the characters after the last dot in the file name)
|
|
Alain Reguera Delgado |
f72cfe |
and looks recursively in the file's directory for all the files that
|
|
Alain Reguera Delgado |
f72cfe |
have the same file extension the ``FILE'' does, and builds the list of
|
|
Alain Reguera Delgado |
f72cfe |
source files that will be used to produce the translation files. In
|
|
Alain Reguera Delgado |
f72cfe |
this case, the translation files are stored in a ``Locales''
|
|
Alain Reguera Delgado |
f72cfe |
directory, at the same level of the ``FILE'' you provided as argument
|
|
Alain Reguera Delgado |
f72cfe |
to *locale* module's command-line.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Translation files are the files we use to store translatable strings.
|
|
Alain Reguera Delgado |
f72cfe |
These files can be either portable objects (`.po'), machine objects
|
|
Alain Reguera Delgado |
f72cfe |
(`.po') or portable object templates (`.pot'). Machine objects are
|
|
Alain Reguera Delgado |
f72cfe |
built from portable objects. Portable objects are built from portable
|
|
Alain Reguera Delgado |
f72cfe |
object templates (`.pot'). Portable object templates are built using
|
|
Alain Reguera Delgado |
f72cfe |
*xgettext* or *xml2po* programs, according to the source files you are
|
|
Alain Reguera Delgado |
f72cfe |
retrieving translatable strings from. From these files, portable
|
|
Alain Reguera Delgado |
f72cfe |
objects (`.po') are used by *render* module to produce both localized
|
|
Alain Reguera Delgado |
f72cfe |
images and localized documentation while machine objects (`.mo') are
|
|
Alain Reguera Delgado |
f72cfe |
used by *gettext* program to produce localized output messages from
|
|
Alain Reguera Delgado |
f72cfe |
automation scripts.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Options
|
|
Alain Reguera Delgado |
f72cfe |
-------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
The *locale* module accepts the following options:
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
*--help*::
|
|
Alain Reguera Delgado |
f72cfe |
Print module's documentation.
|
|
Alain Reguera Delgado |
f72cfe |
*--version*::
|
|
Alain Reguera Delgado |
f72cfe |
Print module's version.
|
|
Alain Reguera Delgado |
f72cfe |
*--filter="REGEX"*::
|
|
Alain Reguera Delgado |
f72cfe |
When ``DIRECTORY'' is passed as argument, this option reduces the
|
|
Alain Reguera Delgado |
f72cfe |
number of section blocks inside configuration files the *locale*
|
|
Alain Reguera Delgado |
f72cfe |
module will take for processing by using the ``REGEX'' value is a
|
|
Alain Reguera Delgado |
f72cfe |
regular expression pattern to match one or more section names
|
|
Alain Reguera Delgado |
f72cfe |
inside the configuration files found under ``DIRECTORY''. When
|
|
Alain Reguera Delgado |
f72cfe |
``FILE'' is passed as argument, in the other hand, it limits the
|
|
Alain Reguera Delgado |
f72cfe |
number of files that will be set in the list of source files used
|
|
Alain Reguera Delgado |
f72cfe |
to build the final translation files.
|
|
Alain Reguera Delgado |
f72cfe |
*--update*::
|
|
Alain Reguera Delgado |
f72cfe |
*--edit*::
|
|
Alain Reguera Delgado |
f72cfe |
*--delete*::
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Localizing Image Files
|
|
Alain Reguera Delgado |
f72cfe |
----------------------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Hi
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Localizing Documentation Files
|
|
Alain Reguera Delgado |
f72cfe |
------------------------------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Hi
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Localizing Automation Scripts
|
|
Alain Reguera Delgado |
f72cfe |
-----------------------------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Hi
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Author
|
|
Alain Reguera Delgado |
f72cfe |
------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Written by mailto:al@centos.org.cu[Alain Reguera Delgado]
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Copyright
|
|
Alain Reguera Delgado |
f72cfe |
---------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
Copyright (C) 2009-2013 The CentOS Project
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
This program is free software; you can redistribute it and/or modify
|
|
Alain Reguera Delgado |
f72cfe |
it under the terms of the GNU General Public License as published by
|
|
Alain Reguera Delgado |
f72cfe |
the Free Software Foundation; either version 2 of the License, or (at
|
|
Alain Reguera Delgado |
f72cfe |
your option) any later version.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
This program is distributed in the hope that it will be useful, but
|
|
Alain Reguera Delgado |
f72cfe |
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Alain Reguera Delgado |
f72cfe |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Alain Reguera Delgado |
f72cfe |
General Public License for more details.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
You should have received a copy of the GNU General Public License
|
|
Alain Reguera Delgado |
f72cfe |
along with this program; if not, write to the Free Software
|
|
Alain Reguera Delgado |
f72cfe |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
See Also
|
|
Alain Reguera Delgado |
f72cfe |
--------
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
centos-art.sh(1), centos-art.sh-render(1), gettext(1)
|
|
Alain Reguera Delgado |
f72cfe |
|
|
Alain Reguera Delgado |
f72cfe |
// vim: set syntax=asciidoc:
|