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