Blame Scripts/Documentation/Manpages/tcar-locale.asciidoc

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