Blame Documentation/Manpages/tcar_setTranslationMarkers.sh.asciidoc

Alain Reguera Delgado e54180
tcar_setTranslationMarkers(1)
Alain Reguera Delgado e54180
=============================
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
== Name
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
tcar_setTranslationMarkers - Expands translation markers.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
== Synopsis
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
*tcar_setTranslationMarkers "FILE"*
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
== Description
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
The *cli_setTranslationMarkers* standardizes construction of
Alain Reguera Delgado e54180
translation markers and their related expansion. As convention,
Alain Reguera Delgado e54180
translation markers are set inside source files (e.g., DocBook, SVG)
Alain Reguera Delgado e54180
and expanded inside temporal instances used to produce final contents.
Alain Reguera Delgado e54180
The +FILE+ argument should point to the temporal file where
Alain Reguera Delgado e54180
translation markers expansion takes place in.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
Translation markers written in source files must comply the
Alain Reguera Delgado e54180
++=[A-Z_]+=++ regular expression pattern. For example,
Alain Reguera Delgado e54180
+=UNKNOWN_MARKER=+ is a valid translation marker without any
Alain Reguera Delgado e54180
replacement. To prevent *centos-art.sh* script from
Alain Reguera Delgado e54180
expanding translation markers, add a backslash (+\+) between the first
Alain Reguera Delgado e54180
equal sign and the following letter. For example, +=\...=+ won't be
Alain Reguera Delgado e54180
expanded.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
The *cli_setTranslationMarkers* supports the following translation
Alain Reguera Delgado e54180
markers:
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\COPYRIGHT_YEAR_LAST=+, +=\COPYRIGHT_YEAR=+::
Alain Reguera Delgado e54180
    These translation markers expand to the last year used in
Alain Reguera Delgado e54180
    copyright notes. For example, +=COPYRIGHT_YEAR_LAST=+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\COPYRIGHT_YEAR_LIST=+, +=\COPYRIGHT_YEARS_LIST=+::
Alain Reguera Delgado e54180
    This translation markers expand to the list of years used in
Alain Reguera Delgado e54180
    copyright notes. For example, +=COPYRIGHT_YEARS_LIST=+.  The first
Alain Reguera Delgado e54180
    year represents the time we began to work on The CentOS Artwork
Alain Reguera Delgado e54180
    Repository.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\COPYRIGHT_HOLDER=+::
Alain Reguera Delgado e54180
    This translation marker expands to the holder used in copyright
Alain Reguera Delgado e54180
    notes. For example, +=COPYRIGHT_HOLDER=+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\COPYRIGHT_HOLDER_PREDICATE=+::
Alain Reguera Delgado e54180
    This translation marker expands both the holder and the predicate
Alain Reguera Delgado e54180
    used in copyright notes. For example,
Alain Reguera Delgado e54180
    +=COPYRIGHT_HOLDER_PREDICATE=+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\BRAND=+::
Alain Reguera Delgado e54180
    This translation marker expands to the brand name used on files
Alain Reguera Delgado e54180
    names and URLs inside The CentOS Artwork Repository.  For example,
Alain Reguera Delgado e54180
    +=BRAND=+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\LICENSE=+::
Alain Reguera Delgado e54180
    This translation marker expands to the license information used in
Alain Reguera Delgado e54180
    files created by *centos-art.sh* script. For
Alain Reguera Delgado e54180
    example, +=LICENSE=+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\LICENSE_URL=+::
Alain Reguera Delgado e54180
    This translation marker expands to the license URL used in files
Alain Reguera Delgado e54180
    created by *centos-art.sh* script. For example,
Alain Reguera Delgado e54180
    +=LICENSE_URL=+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\THEME=+::
Alain Reguera Delgado e54180
    This translation marker expands to the theme portion of path you
Alain Reguera Delgado e54180
    are producing through centos-art.sh script. As consequence, this
Alain Reguera Delgado e54180
    translation marker should be used in situations where you are
Alain Reguera Delgado e54180
    producing theme components only.  This translation marker expands
Alain Reguera Delgado e54180
    its value by retrieving the theme part of the path you provide as
Alain Reguera Delgado e54180
    non-option argument to *centos-art.sh* script.
Alain Reguera Delgado e54180
    For example, if you provide the path
Alain Reguera Delgado e54180
    +Identity/Images/Themes/Modern/2/Distro/5+,
Alain Reguera Delgado e54180
    this translation will expand to the +Modern/2/+ value.
Alain Reguera Delgado e54180
+
Alain Reguera Delgado e54180
In case you need to retrieve the theme name or version separately one
Alain Reguera Delgado e54180
another, then you can use the +=\THEMENAME=+ and +=\THEMERELEASE=+
Alain Reguera Delgado e54180
translation markers, respectively. When you use these translation
Alain Reguera Delgado e54180
markers, forward slashes are removed from result. So, if you provide
Alain Reguera Delgado e54180
the path
Alain Reguera Delgado e54180
+Identity/Images/Themes/Modern/2/Distro/5+,
Alain Reguera Delgado e54180
+=\THEMENAME=+ will expand to +Modern+ and +=THEMERELEASE=+ will
Alain Reguera Delgado e54180
expand to +2+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\RELEASE=+::
Alain Reguera Delgado e54180
    This translation marker expands to the current release information
Alain Reguera Delgado e54180
    of your CentOS distribution. By default this information is
Alain Reguera Delgado e54180
    retrieved from +/etc/redhat-release+. In case
Alain Reguera Delgado e54180
    the option *--release* be passed, the value specified with it will
Alain Reguera Delgado e54180
    overwrite the default value and will be this the one used as
Alain Reguera Delgado e54180
    section for this translation marker to retrieve the release
Alain Reguera Delgado e54180
    information. So, for example, if you are running a CentOS-5.8
Alain Reguera Delgado e54180
    distribution and no *--release* option is passed to
Alain Reguera Delgado e54180
    *centos-art.sh* script, this translation marker
Alain Reguera Delgado e54180
    expands to +5.8+. On the other hand, if you are still running a
Alain Reguera Delgado e54180
    CentOS-5.8 distribution but provide the *--release=6.3* option to
Alain Reguera Delgado e54180
    *centos-art.sh* script, this translation marker
Alain Reguera Delgado e54180
    expands to +6.3+ instead.
Alain Reguera Delgado e54180
+
Alain Reguera Delgado e54180
In case you need to retrieve minor and major release numbers
Alain Reguera Delgado e54180
separately one another, then you can use the +=\MINOR_RELEASE=+ and
Alain Reguera Delgado e54180
+=\MAJOR_RELEASE=+ translation makers, respectively.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\ARCH=+::
Alain Reguera Delgado e54180
    This translation marker expands to the current architecture of
Alain Reguera Delgado e54180
    your CentOS Distribution. By default this information is retrieved
Alain Reguera Delgado e54180
    from *uname -i*. In case the option *--arch* be
Alain Reguera Delgado e54180
    passed, the value specified with it will overwrite the default
Alain Reguera Delgado e54180
    value and will be the one used as section. For example, if the
Alain Reguera Delgado e54180
    *uname -i* outputs the line
Alain Reguera Delgado e54180
    <computeroutput>i386</computeroutput>, this translation marker
Alain Reguera Delgado e54180
    will expand to +i386+. On the other hand, if you pass the
Alain Reguera Delgado e54180
    *--arch=x86_64* option to *centos-art.sh* script,
Alain Reguera Delgado e54180
    this translation marker will expand to +x86_64+ instead.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\URL=+:: This translation marker expands to the URL which points to
Alain Reguera Delgado e54180
The CentOS Project home page. For example, +=URL=+.  In case you are
Alain Reguera Delgado e54180
using the centos-art.sh script in a different locale but English
Alain Reguera Delgado e54180
(+en_US.UTF-8+), this translation marker expands as usual but with the
Alain Reguera Delgado e54180
language information appended to the end of the string. For example,
Alain Reguera Delgado e54180
if you are executing the centos-art.shscript for Spanish locale (e.g.,
Alain Reguera Delgado e54180
+es_ES.UTF-8+), this translation marker expands to +=URL=es/+.
Alain Reguera Delgado e54180
+
Alain Reguera Delgado e54180
In case you need to expand other URL related to The CentOS Project
Alain Reguera Delgado e54180
domain, use translation markers described in
Alain Reguera Delgado e54180
<<url-related-translation-markers>>.  Likewise =\URL=, translation
Alain Reguera Delgado e54180
markers described in <<url-related-translation-markers>> does append
Alain Reguera Delgado e54180
the current language information to the end of the URL string based on
Alain Reguera Delgado e54180
the locale information you are currently executing the *centos-art.sh*
Alain Reguera Delgado e54180
script.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
[[url-related-translation-markers]]
Alain Reguera Delgado e54180
.URL-related translation markers
Alain Reguera Delgado e54180
-------------------`-----------------
Alain Reguera Delgado e54180
Translation         Marker Expands To
Alain Reguera Delgado e54180
-------------------------------------
Alain Reguera Delgado e54180
=\URL_WIKI=         =URL_WIKI=
Alain Reguera Delgado e54180
=\URL_LISTS=        =URL_LISTS=
Alain Reguera Delgado e54180
=\URL_FORUMS=       =URL_FORUMS=
Alain Reguera Delgado e54180
=\URL_MIRRORS=      =URL_MIRRORS=
Alain Reguera Delgado e54180
=\URL_DOCS=         =URL_DOCS=
Alain Reguera Delgado e54180
=\URL_PROJECTS=     =URL_PROJECTS=
Alain Reguera Delgado e54180
=\URL_SVN=          =URL_SVN=
Alain Reguera Delgado e54180
=\URL_TRAC=         =URL_TRAC=
Alain Reguera Delgado e54180
=\URL_PLANET=       =URL_PLANET=
Alain Reguera Delgado e54180
-------------------------------------
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\MAIL_DOCS=+::
Alain Reguera Delgado e54180
    This translation marker expands to CentOS documentation mailing
Alain Reguera Delgado e54180
    list address. For example, +=MAIL_DOCS=+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\LOCALE=+::
Alain Reguera Delgado e54180
    This translation marker expands to the current locale information
Alain Reguera Delgado e54180
    used by *centos-art.sh* script.  This value is
Alain Reguera Delgado e54180
    retrieved from the <envar>LANG</envar> environment variable and
Alain Reguera Delgado e54180
    should look like +=LOCALE=+.  In case you need to retrieve the
Alain Reguera Delgado e54180
    language and country part separately one another, you can use the
Alain Reguera Delgado e54180
    +=\LOCALE_LL=+ and +=\LOCALE_CC=+, respectively.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\REPO_TLDIR=+::
Alain Reguera Delgado e54180
    This translation marker expands to the absolute path to 
Alain Reguera Delgado e54180
    class="directory">+ directory inside your workstation.  For
Alain Reguera Delgado e54180
    example, +/home/al/Projects/CentOS/artwork/trunk+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
+=\REPO_HOME=+, +=\TCAR_WORKDIR=+::
Alain Reguera Delgado e54180
    This translation marker expands to the absolute path of your
Alain Reguera Delgado e54180
    working copy.  For example, +/home/al/Projects/CentOS/artwork+.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
== Bugs
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
See https://centos.org.cu/bugs/
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
== Authors
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
The *tcar_setTranslationMarkers* function has received contributions
Alain Reguera Delgado e54180
from the following people:
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
- Alain Reguera Delgado <al@centos.org.cu>, =COPYRIGHT_YEAR_LIST=
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
== License
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
Copyright (C) =COPYRIGHT_YEAR_LIST= =COPYRIGHT_HOLDER=
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
This program is free software; you can redistribute it and/or modify
Alain Reguera Delgado e54180
it under the terms of the GNU General Public License as published by
Alain Reguera Delgado e54180
the Free Software Foundation; either version 2 of the License, or (at
Alain Reguera Delgado e54180
your option) any later version.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
This program is distributed in the hope that it will be useful, but
Alain Reguera Delgado e54180
WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado e54180
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Alain Reguera Delgado e54180
General Public License for more details.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
You should have received a copy of the GNU General Public License
Alain Reguera Delgado e54180
along with this program; if not, write to the Free Software
Alain Reguera Delgado e54180
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alain Reguera Delgado e54180
Alain Reguera Delgado e54180
// vim: set syntax=asciidoc: