Blame Manuals/Repository/repository-html/repository_38.html

4c79b5
4c79b5
<html>
ccb7a3
4c79b5
4c79b5
Permission is granted to copy, distribute and/or modify this document
4c79b5
under the terms of the GNU Free Documentation License, Version 1.2 or
4c79b5
any later version published by the Free Software Foundation; with no
4c79b5
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
4c79b5
copy of the license is included in the section entitled GNU Free
4c79b5
Documentation License.  
4c79b5
-->
acd47b
4c79b5
4c79b5
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
4c79b5
            Karl Berry  <karl@freefriends.org>
4c79b5
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
4c79b5
            and many others.
4c79b5
Maintained by: Many creative people <dev@texi2html.cvshome.org>
4c79b5
Send bugs and suggestions to <users@texi2html.cvshome.org>
4c79b5
4c79b5
-->
4c79b5
<head>
c2a1bc
<title>CentOS Artwork Repository: 3.35 trunk/Locales</title>
4c79b5
c2a1bc
<meta name="description" content="CentOS Artwork Repository: 3.35 trunk/Locales">
c2a1bc
<meta name="keywords" content="CentOS Artwork Repository: 3.35 trunk/Locales">
4c79b5
<meta name="resource-type" content="document">
4c79b5
<meta name="distribution" content="global">
4c79b5
<meta name="Generator" content="texi2html 1.76">
4c79b5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4c79b5
<style type="text/css">
4c79b5
1e9202
@import "/home/centos/artwork/trunk/Identity/Models/Css/Texi2html/common.css";
4c79b5
4c79b5
a.summary-letter {text-decoration: none}
4c79b5
pre.display {font-family: serif}
4c79b5
pre.format {font-family: serif}
4c79b5
pre.menu-comment {font-family: serif}
4c79b5
pre.menu-preformatted {font-family: serif}
4c79b5
pre.smalldisplay {font-family: serif; font-size: smaller}
4c79b5
pre.smallexample {font-size: smaller}
4c79b5
pre.smallformat {font-family: serif; font-size: smaller}
4c79b5
pre.smalllisp {font-size: smaller}
4c79b5
span.sansserif {font-family:sans-serif; font-weight:normal;}
4c79b5
ul.toc {list-style: none}
4c79b5
-->
4c79b5
</style>
4c79b5
4c79b5
4c79b5
</head>
4c79b5
4c79b5
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
4c79b5
4c79b5
2dc146
[ < ]
2dc146
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
c2a1bc
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
c2a1bc
[Index]
4c79b5
[ ? ]
4c79b5
c2a1bc
2dc146
c2a1bc

3.35 trunk/Locales

be6bef
be6bef
2dc146
54b5a5

3.35.1 Goals

008ee0
c2a1bc

The <tt>`trunk/Translations'</tt> directory exists to:

c2a1bc

54b5a5
    c2a1bc
  • Organize translation files.
  • c2a1bc
  • Organize translation templates used to produce translation files.
  • 54b5a5
    41f1ec
    2bb528
    2dc146
    54b5a5

    3.35.2 Description

    6c4982
    c2a1bc

    When you create artwork for CentOS distribution you find that some

    c2a1bc
    artworks need to be created for different major releases of CentOS
    c2a1bc
    distribution and inside each major release that needs to be created for
    c2a1bc
    different locales. To get an approximate idea of how many files we are
    c2a1bc
    talking about, consider the followig approximate statistic:
    c2a1bc

    c2a1bc
      c2a1bc
    • Inside CentOS distribution, there are around 30 images to
    • c2a1bc
      rebrand.(2)
      c2a1bc
      c2a1bc
    • There are near to four major releases of CentOS distribution to
    • c2a1bc
      rebrand in parallel development.(3) 
      c2a1bc
      c2a1bc
    • Each CentOS distribution in parallel development supports more
    • c2a1bc
      than two hundreds locales.(4)
      c2a1bc
      c2a1bc
      c2a1bc

      In order to aliviate maintainance of artwork production for such

      c2a1bc
      environment, we divided artwork production in three production lines:
      c2a1bc

      c2a1bc
        c2a1bc
      1. See section trunk/Identity/Themes/Models, to define artworks
      2. c2a1bc
        characteristics (e.g., dimensions, position on the screen, etc.).
        c2a1bc
      3. See section trunk/Identity/Themes/Motifs, to define artworks visual
      4. c2a1bc
        styles (e.g., the look and feel).
        c2a1bc
      5. Translations, to define which major releases and locales
      6. c2a1bc
        artworks are produced for. 
        c2a1bc
        c2a1bc
        c2a1bc

        Inside CentOS Artwork Repository, the artworks' translation production

        c2a1bc
        line is stored under <tt>`trunk/Translations'</tt> directory.
        c2a1bc

        c2a1bc

        Inside <tt>`trunk/Translations'</tt> directory, we use "translation

        c2a1bc
        entries" to organize artworks' "translation files" and artworks'
        c2a1bc
        "translation templates".
        c2a1bc

        2dc146
        2dc146
        c2a1bc

        3.35.2.1 Translation Entries

        2b5e61
        c2a1bc

        Translation entries exists for each artwork you want to produce.

        c2a1bc
        Translation entries can be empty directories, or directories
        c2a1bc
        containing translation files and translation templates.  
        c2a1bc

        c2a1bc

        When translation entries are empty directories, the identity entry is

        c2a1bc
        used as reference to create file names and directories layout for
        c2a1bc
        rendered files.  In this case, the centos-art script takes
        c2a1bc
        one design template and outputs one non-translated file for each
        c2a1bc
        design template available.  This configuration is mainly used to
        c2a1bc
        produce non-translatable artworks like themes' backgrounds.
        c2a1bc

        c2a1bc

        When translation entries contain translation files, the translation

        c2a1bc
        entry implements the CentOS release schema and is used as reference to
        c2a1bc
        create file names and directories layout for translated artworks. In
        c2a1bc
        this case, the centos-art script applies one translation
        c2a1bc
        file to one design template to create one translated instance which is
        c2a1bc
        used to output one translated file. When the translated file is
        c2a1bc
        rendered, the centos-art script remove the previous instance
        c2a1bc
        and takes the next file in the list of translation files to repate the
        c2a1bc
        whole process once again, and so on for all files in the list. This
        c2a1bc
        configuration is mainly used to produce translatable artworks like
        c2a1bc
        Anaconda progress slide images.
        c2a1bc

        c2a1bc

        To find out correspondence between translation entries and identity

        c2a1bc
        entries, you need to look the path of both translation entries and
        c2a1bc
        identity entries. For example, if you are using the Modern
        c2a1bc
        artisitic motif, the identity entry for Anaconda progress artwork is:
        c2a1bc

        c2a1bc
        trunk/Identity/Themes/Motifs/Modern/Distro/Anaconda/Progress
        c2a1bc
        c2a1bc

        and its translation entry is:

        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Themes/Distro/Anaconda/Progress
        c2a1bc
        c2a1bc

        Note how the <tt>`Translations/'</tt> directory prefixes <tt>`Identity/'</tt>

        c2a1bc
        directory, also how static values (e.g., Identity, Themes, Distro,
        c2a1bc
        etc.) in the identity entry path remain in translation entry path, and
        c2a1bc
        how variable values like theme names (e.g., Modern) are stript
        c2a1bc
        out from translation entry path. The same convenction can be applied
        c2a1bc
        to other identity entries in order to determine their translation
        c2a1bc
        entries, or to other translation entries to determine their identity
        c2a1bc
        entries.
        c2a1bc

        c2a1bc
        info

        Note

        Translation entries related to identity entries under

        c2a1bc
        <tt>`trunk/Identity/Themes/Motifs'</tt> do not use <tt>`Motifs/'</tt> in the
        c2a1bc
        path.  We've done this because <tt>`trunk/Identity/Themes/Models'</tt>
        c2a1bc
        structure, the other structure under <tt>`trunk/Identity/Themes'</tt>,
        c2a1bc
        doesn't require translation paths so far. So in the sake of saving
        c2a1bc
        characters space when building translation entries for
        c2a1bc
        <tt>`trunk/Identity/Themes/Motifs'</tt> structure, we organize Motifs
        c2a1bc
        translation entries under <tt>`trunk/Translations/Identity/Themes/'</tt>
        c2a1bc
        directly. 
        c2a1bc

        c2a1bc

        If for some reason <tt>`trunk/Identity/Themes/Models'</tt> structure

        c2a1bc
        requires translation entries, we need to re-oraganize the current
        c2a1bc
        directory structure accordingly.
        c2a1bc

        c2a1bc
        c2a1bc

        Translation entries, as described above, can be re-used by similar

        c2a1bc
        identity entries. For example the following identity entries:
        c2a1bc

        c2a1bc
        trunk/Identity/Themes/Motifs/Modern/Distro/Anaconda/Progress/
        c2a1bc
        trunk/Identity/Themes/Motifs/TreeFlower/Distro/Anaconda/Progress/
        c2a1bc
        trunk/Identity/Themes/Motifs/Mettle/Distro/Anaconda/Progress/
        c2a1bc
        c2a1bc

        are all valid identity entries able to re-use translation files inside

        c2a1bc
        Anaconda progress translation entry (the one shown in our example
        c2a1bc
        above). This way, you can create several identity entries and maintain
        c2a1bc
        just one translation entry for all of them.  Once you change the
        c2a1bc
        translation files inside the common translation entry, changes inside
        c2a1bc
        identity entries will take effect inside the next you render them.
        c2a1bc

        c2a1bc

        Trying to make things plain and simple: inside CentOS Artwork

        c2a1bc
        Repository, graphic designers can concentrate their efforts in
        c2a1bc
        artworks look and feel (the identity entries), and translators in
        c2a1bc
        artworks translations (the translation entries).
        c2a1bc

        2b5e61
        7fa1fb
        c2a1bc

        3.35.2.2 Translation Markers

        c2a1bc

        c2a1bc
        c2a1bc

        c2a1bc

        Translation markers are used in "Theme Model Designs" and

        c2a1bc
        "Translation Files" as replacement patterns to commit content
        c2a1bc
        translation.  When you are rendering content using
        c2a1bc
        centos-art script inisde <tt>`trunk/Identity'</tt> structure,
        c2a1bc
        artistic motifs and translation files are applied to model designs to
        c2a1bc
        produce translated content as result. In order to have the appropriate
        c2a1bc
        translation in content rendered, markers defintion in translation
        c2a1bc
        files should match markers in model designs exactly. 
        c2a1bc

        c2a1bc

        Translation markers can be whatever text you want, but as convenction

        c2a1bc
        we use the following to represent releases of CentOS distribution:
        c2a1bc

        c2a1bc
        c2a1bc
        <samp>`=MINOR_RELEASE='</samp>
        c2a1bc

        Replace with minor release of CentOS distribution. In the schema M.N, the minor

        c2a1bc
        release is represented by the N letter.
        c2a1bc

        c2a1bc
        <samp>`=MAJOR_RELEASE='</samp>
        c2a1bc

        Replace with major release of CentOS distribution. In the schema M.N,

        c2a1bc
        the major release is represented by the M letter.
        c2a1bc

        c2a1bc
        <samp>`=RELEASE='</samp>
        c2a1bc

        Replace the full release of CentOS distribution. It is

        c2a1bc
        <samp>`=MAJOR_RELEASE=.=MINOR_RELEASE='</samp> basically. 
        c2a1bc

        c2a1bc
        c2a1bc
        c2a1bc

        Specific translation markers convenctions are described inside

        c2a1bc
        specific translation entries. Read translation entries documentation
        c2a1bc
        to know more about supported translation markers.
        c2a1bc

        c2a1bc

        Translation markers standardization creates a common point of

        c2a1bc
        reference for translators and graphic designers. To have translation
        c2a1bc
        markers well defined makes possible that translators and graphic
        c2a1bc
        designers can work together but independently one another.
        c2a1bc

        c2a1bc
        c2a1bc
        c2a1bc

        3.35.2.3 Translation Files

        c2a1bc
        c2a1bc

        Translation files are text files with sed commands inside,

        c2a1bc
        replacement commands mainly. As convenction, translation file names
        c2a1bc
        end in <samp>`.sed'</samp>. Translation files are used by centos-art
        c2a1bc
        script to produce translated artworks for specific major releases of
        c2a1bc
        CentOS Distribution. There are common translation files, specific
        c2a1bc
        translation, and template translation files.
        c2a1bc

        c2a1bc

        For example, the Firstboot artwork of CentOS distribution uses the

        c2a1bc
        images <tt>`splash-small.png'</tt> and <tt>`firstboot-left.png'</tt> as based
        c2a1bc
        to control its visual style. The <tt>`splash-small.png'</tt> image
        c2a1bc
        contains, in its graphic design, the release number information of
        c2a1bc
        CentOS distribution. So the <tt>`splash-small.png'</tt> is
        c2a1bc
        release-specific. In the other hand, the <tt>`firstboot-left.png'</tt>
        c2a1bc
        doesn't contain release number information. So the
        c2a1bc
        <tt>`firstboot-left.png'</tt> is not release-specific.
        c2a1bc

        c2a1bc

        If we want to produce Firstboot artwork for different major releases

        c2a1bc
        of CentOS distribution, using a monolithic visual identity, all
        c2a1bc
        Firstboot images should have the same visual style and, at the same
        c2a1bc
        time, the release-specific information in the release-specific images. 
        c2a1bc

        c2a1bc
        info

        Note

        The monolithic visual identity is implemented using

        c2a1bc
        theme models (see section trunk/Identity/Themes/Models) and artistic
        c2a1bc
        motifs (see section trunk/Identity/Themes/Motifs).
        c2a1bc

        c2a1bc
        c2a1bc

        Assuming that both theme models and theme motifs are ready for using,

        c2a1bc
        the initial translation entry to produce Firstboot artworks would look
        c2a1bc
        like the following:
        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Themes/Distro/BootUp/Firstboot/
        c2a1bc
        |-- Tpl
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        `-- firstboot-left.sed
        c2a1bc
        c2a1bc

        With the translation entry above, centos-art command is able

        c2a1bc
        to produce the image <tt>`firstboot-left.png'</tt> only. To produce
        c2a1bc
        <tt>`splash-small.png'</tt> images for major releases (e.g., 3, 4, 5, and
        c2a1bc
        6) of CentOS distribution we need to produce the release-specific
        c2a1bc
        translation files using the centos-art script as following:
        c2a1bc

        c2a1bc
        centos-art render --entry=/home/centos/artwork/trunk/Translations/Identity/Themes/BootUp/Firstboot --filter='3,4,5,6'
        c2a1bc
        c2a1bc

        The above command produces the following translation entiry:

        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Themes/Distro/BootUp/Firstboot/
        c2a1bc
        |-- 3
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 4
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 5
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 6
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- Tpl
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        `-- firstboot-left.sed
        c2a1bc
        c2a1bc

        At this point centos-art is able to produce the Firstboot

        c2a1bc
        artwork images for major releases of CentOS distribution. To add new
        c2a1bc
        release-specific translation files, run the translation rendering
        c2a1bc
        command with the release number you want to produce translation files
        c2a1bc
        for in the <samp>`--filter='release-number''</samp> argument.
        c2a1bc

        c2a1bc
        c2a1bc
        c2a1bc

        3.35.2.4 Template Translation Files

        c2a1bc
        c2a1bc

        Template translation files are translation files stored inside

        c2a1bc
        translation template directory. Template translation files are used by
        c2a1bc
        centos-art script to produce specific translation files
        c2a1bc
        only. Template translation files may be empty or contain sed
        c2a1bc
        replacement commands. If template translation files are empty files,
        c2a1bc
        the final specifc translation file built from it contains
        c2a1bc
        release-specific replacement commands only. For example, see the
        c2a1bc
        following translation entry:
        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Themes/Distro/BootUp/Firstboot/
        c2a1bc
        |-- 3
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 4
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 5
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 6
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- Tpl
        c2a1bc
        |   `-- splash-small.sed    <-- template translation file.
        c2a1bc
        `-- firstboot-left.sed
        c2a1bc
        c2a1bc

        In the above exmaple, the <tt>`splash-small.sed'</tt> file is a template

        c2a1bc
        translation file and looks like:
        c2a1bc

        c2a1bc
        # -------------------------------------
        c2a1bc
        # $Id: splash-small.sed 94 2010-09-18 10:59:42Z al $
        c2a1bc
        # -------------------------------------
        c2a1bc
        c2a1bc

        In the above template translation file there are three comments lines,

        c2a1bc
        but when you render it, the centos-art adds the
        c2a1bc
        release-specific replacement commands. In our Firstboot example, after
        c2a1bc
        rendering Firstboot translation entry, the <tt>`splash-small.sed'</tt>
        c2a1bc
        translation file specific to CentOS 5, looks like the following:
        c2a1bc

        c2a1bc
        # Warning: Do not modify this file directly. This file is created
        c2a1bc
        # automatically using 'centos-art' command line interface.  Any change
        c2a1bc
        # you do in this file will be lost the next time you update
        c2a1bc
        # translation files using 'centos-art' command line interface. If you
        c2a1bc
        # want to improve the content of this translation file, improve its
        c2a1bc
        # template file instead and run the 'centos-art' command line
        c2a1bc
        # interface later to propagate your changes.
        c2a1bc
        # -------------------------------------
        c2a1bc
        # $Id: splash-small.sed 94 2010-09-18 10:59:42Z al $
        c2a1bc
        # -------------------------------------
        c2a1bc
        c2a1bc
        # Release number information.
        c2a1bc
        s!=RELEASE=!=MAJOR_RELEASE=.=MINOR_RELEASE=!g
        c2a1bc
        s!=MINOR_RELEASE=!0!g
        c2a1bc
        s!=MAJOR_RELEASE=!5!g
        c2a1bc
        c2a1bc

        If template translation files are not empty, replacement commands

        c2a1bc
        inside template translation files are preserved inside
        c2a1bc
        release-specific translation files.  For example, consider the English
        c2a1bc
        template translation file of Anaconda progress welcome slide.  The
        c2a1bc
        translation template directory structure looks like the following:
        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Themes/Distro/Anaconda/Progress/
        c2a1bc
        `-- Tpl
        c2a1bc
            `-- en
        c2a1bc
                `-- 01-welcome.sed
        c2a1bc
        c2a1bc

        and if we render translation files for CentOS 4 and CentOS 5 major

        c2a1bc
        releases, the translation entry would look like the following:
        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Themes/Distro/Anaconda/Progress/
        c2a1bc
        |-- 4
        c2a1bc
        |   `-- en
        c2a1bc
        |       `-- 01-welcome.sed
        c2a1bc
        |-- 5
        c2a1bc
        |   `-- en
        c2a1bc
        |       `-- 01-welcome.sed
        c2a1bc
        `-- Tpl
        c2a1bc
            `-- en
        c2a1bc
                `-- 01-welcome.sed
        c2a1bc
        c2a1bc
        info

        Note

        Release-specific translation directories preserve

        c2a1bc
        template translation directory structure and file names.
        c2a1bc

        c2a1bc
        c2a1bc

        In the example above, the template translation file looks like the

        c2a1bc
        following:
        c2a1bc

        c2a1bc
        # ------------------------------------------------------------
        c2a1bc
        # $Id: 01-welcome.sed 94 2010-09-18 10:59:42Z al $
        c2a1bc
        # ------------------------------------------------------------
        c2a1bc
        s/=TITLE=/Welcome to CentOS =MAJOR_RELEASE= !/
        c2a1bc
        s/=TEXT1=/Thank you for installing CentOS =MAJOR_RELEASE=./
        c2a1bc
        s/=TEXT2=/CentOS is an enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor./
        c2a1bc
        s/=TEXT3=/CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. CentOS mainly changes packages to remove upstream vendor branding and artwork./
        c2a1bc
        s/=TEXT4=//
        c2a1bc
        s/=TEXT5=//
        c2a1bc
        s/=TEXT6=//
        c2a1bc
        s!=URL=!http://www.centos.org/!
        c2a1bc
        c2a1bc

        and, after render the translation entry, specific translation files

        c2a1bc
        look like the following:
        c2a1bc

        c2a1bc
        # Warning: Do not modify this file directly. This file is created
        c2a1bc
        # automatically using 'centos-art' command line interface.  Any change
        c2a1bc
        # you do in this file will be lost the next time you update
        c2a1bc
        # translation files using 'centos-art' command line interface. If you
        c2a1bc
        # want to improve the content of this translation file, improve its
        c2a1bc
        # template file instead and run the 'centos-art' command line
        c2a1bc
        # interface later to propagate your changes.
        c2a1bc
        # ------------------------------------------------------------
        c2a1bc
        # $Id: 01-welcome.sed 94 2010-09-18 10:59:42Z al $
        c2a1bc
        # ------------------------------------------------------------
        c2a1bc
        c2a1bc
        s/=TITLE=/Welcome to CentOS =MAJOR_RELEASE= !/
        c2a1bc
        s/=TEXT1=/Thank you for installing CentOS =MAJOR_RELEASE=./
        c2a1bc
        s/=TEXT2=/CentOS is an enterprise-class Linux Distribution derived from sources freely provided to the public by a prominen t North American Enterprise Linux vendor./
        c2a1bc
        s/=TEXT3=/CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. Cent OS mainly changes packages to remove upstream vendor branding and artwork./
        c2a1bc
        s/=TEXT4=//
        c2a1bc
        s/=TEXT5=//
        c2a1bc
        s/=TEXT6=//
        c2a1bc
        s!=URL=!http://www.centos.org/!
        c2a1bc
        c2a1bc
        # Release number information.
        c2a1bc
        s!=RELEASE=!=MAJOR_RELEASE=.=MINOR_RELEASE=!g
        c2a1bc
        s!=MINOR_RELEASE=!0!g
        c2a1bc
        s!=MAJOR_RELEASE=!5!g
        c2a1bc
        c2a1bc

        In the example above, relevant lines begin with the <samp>`s'</samp> word

        c2a1bc
        followed by a separation character (e.g., <samp>`/'</samp>, <samp>`!'</samp>, etc.).
        c2a1bc
        These lines have the following format:
        c2a1bc

        c2a1bc
        s/REGEXP/REPLACEMENT/FLAGS
        c2a1bc
        c2a1bc

        The <samp>`/'</samp> characters may be uniformly replaced by any other single

        c2a1bc
        character within any given s command.  The <samp>`/'</samp>
        c2a1bc
        character (or whatever other character is used in its stead) can
        c2a1bc
        appear in the REGEXP or REPLACEMENT only if it is preceded by a
        c2a1bc
        <samp>`\'</samp> character.
        c2a1bc

        c2a1bc

        The s command is probably the most important in

        c2a1bc
        sed and has a lot of different options.  Its basic concept
        c2a1bc
        is simple: the s command attempts to match the pattern space
        c2a1bc
        against the supplied REGEXP; if the match is successful, then that
        c2a1bc
        portion of the pattern space which was matched is replaced with
        c2a1bc
        REPLACEMENT.
        c2a1bc

        c2a1bc

        In the context of our translation files, the REGEXP is where you

        c2a1bc
        define translation markers and REPLACEMENT where you define the
        c2a1bc
        translation text you want to have after artworks rendering.  Sometimes
        c2a1bc
        we use the FLAG component with the <samp>`g'</samp> command to apply the
        c2a1bc
        replacements globally.
        c2a1bc

        c2a1bc
        Info

        Tip

        More information about how to use sed

        c2a1bc
        replacement commands and flags is available in sed
        c2a1bc
        documentation manual. To read sed documentation manual type
        c2a1bc
        the following command: 
        c2a1bc

        info sed
        c2a1bc
        c2a1bc
        c2a1bc

        Inside translation files, you can use translation markers not only

        c2a1bc
        inside the REGEXP but in the REPLACEMENT too. In order for this
        c2a1bc
        configuration to work, the REPLACEMENT of translation markers needs to
        c2a1bc
        be define after its definition. For example, see in the
        c2a1bc
        release-specific translation file above, how the
        c2a1bc
        <samp>`s!=MAJOR_RELASE=!5!g'</samp> replacement command is defined
        c2a1bc
        after <samp>`=MAJOR_RELASE='</samp> translation marker definition in
        c2a1bc
        the REPLACEMENT of <samp>`=TITLE='</samp> translation marker replacement
        c2a1bc
        command.
        c2a1bc

        c2a1bc
        c2a1bc
        c2a1bc

        3.35.2.5 Common Translation Files

        c2a1bc
        c2a1bc

        Common translation files contain common translations or no

        c2a1bc
        translation at all for their related artworks.  They are in the root
        c2a1bc
        directory of the translation entry. Common translation files create
        c2a1bc
        common artworks for all major releases of CentOS Distribution. 
        c2a1bc

        c2a1bc

        Translation entries, with common translation files inside, look like

        c2a1bc
        the following:
        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Themes/Distro/BootUp/Firstboot/
        c2a1bc
        |-- 3
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 4
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 5
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- 6
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        |-- Tpl
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        `-- firstboot-left.sed      <-- common translation file.
        c2a1bc
        c2a1bc
        c2a1bc
        c2a1bc

        3.35.2.6 Specific Translation Files

        c2a1bc
        c2a1bc

        Specific translation files contain specific translations for their

        c2a1bc
        related artworks. Specific translation files are not in the root
        c2a1bc
        directory of the translation entry, but inside directories which
        c2a1bc
        describe the type of translation they are doing. Specific translation
        c2a1bc
        files are produced automatically using the centos-art
        c2a1bc
        script.
        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Themes/Distro/BootUp/Firstboot/
        c2a1bc
        |-- 3
        c2a1bc
        |   `-- splash-small.sed    <-- CentOS 3 specific translation file.
        c2a1bc
        |-- 4
        c2a1bc
        |   `-- splash-small.sed    <-- CentOS 4 specific translation file.
        c2a1bc
        |-- 5
        c2a1bc
        |   `-- splash-small.sed    <-- CentOS 5 specific translation file.
        c2a1bc
        |-- 6
        c2a1bc
        |   `-- splash-small.sed    <-- CentOS 6 specific translation file.
        c2a1bc
        |-- Tpl
        c2a1bc
        |   `-- splash-small.sed
        c2a1bc
        `-- firstboot-left.sed
        c2a1bc
        c2a1bc
        c2a1bc
        c2a1bc

        3.35.2.7 Translation Rendering

        c2a1bc
        c2a1bc

        When rendering translations, the centos-art script checks

        c2a1bc
        the translation entry to verify that it has a translation template
        c2a1bc
        directory inside. The translation template directory (<tt>`Tpl/'</tt>)
        c2a1bc
        contains common translation files used to build release-specific
        c2a1bc
        translation files. If the translation template directory doesn't exist
        c2a1bc
        inside the translation entry the translation rendering fails. In this
        c2a1bc
        case the centos-art script outputs a message and quits
        c2a1bc
        script execution.
        c2a1bc

        c2a1bc
        c2a1bc
        c2a1bc

        3.35.2.8 Translation (Pre-)Rendering Configuration Scripts

        c2a1bc
        c2a1bc

        When the centos-art script finds a translation template

        c2a1bc
        directory inside translation entry, it looks for translations
        c2a1bc
        pre-rendering configuration scripts for that translation entry.
        c2a1bc
        Translation pre-rendering configuration scripts let you extend
        c2a1bc
        translation default functionality (described below). 
        c2a1bc

        c2a1bc

        Translation pre-rendering configuration scripts are stored under

        c2a1bc
        <tt>`trunk/Scripts'</tt> directory, specifically under the appropriate
        c2a1bc
        language implementation. If you are using centos-art Bash
        c2a1bc
        implementation, the translation pre-rendering scripts are store in the
        c2a1bc
        <tt>`trunk/Scripts/Bash/Config'</tt> location; if you are using
        c2a1bc
        centos-art Python implementation, then translation
        c2a1bc
        pre-rendering scripts are stored in the
        c2a1bc
        <tt>`trunk/Scripts/Python/Config'</tt> location, and so on for other
        c2a1bc
        implementations.
        c2a1bc

        c2a1bc

        Bash translation pre-rendering configuration scripts look like the

        c2a1bc
        following:
        c2a1bc

        c2a1bc
        #!/bin/bash
        c2a1bc
        #
        c2a1bc
        # render_loadConfig.sh -- brief description here.
        c2a1bc
        #
        c2a1bc
        # Copyright (C) YEAR YOURNAME
        c2a1bc
        # 
        c2a1bc
        # This program is free software; you can redistribute it and/or modify
        c2a1bc
        # it under the terms of the GNU General Public License as published by
        c2a1bc
        # the Free Software Foundation; either version 2 of the License, or
        c2a1bc
        # (at your option) any later version.
        c2a1bc
        # 
        c2a1bc
        # This program is distributed in the hope that it will be useful, but
        c2a1bc
        # WITHOUT ANY WARRANTY; without even the implied warranty of
        c2a1bc
        # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
        c2a1bc
        # General Public License for more details.
        c2a1bc
        #
        c2a1bc
        # You should have received a copy of the GNU General Public License
        c2a1bc
        # along with this program; if not, write to the Free Software
        c2a1bc
        # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
        c2a1bc
        # USA.
        c2a1bc
        # 
        c2a1bc
        # ----------------------------------------------------------------------
        c2a1bc
        # $Id: render_loadConfig.sh 94 2010-09-18 10:59:42Z al $
        c2a1bc
        # ----------------------------------------------------------------------
        c2a1bc
        c2a1bc
        function render_loadConfig {
        c2a1bc
        ...
        c2a1bc
        }
        c2a1bc
        c2a1bc

        Translation pre-rendering scripts are function scripts loaded and

        c2a1bc
        executed when rendering a translation entry. Translation pre-rendering
        c2a1bc
        scripts are loaded using the translation entry being rendered as
        c2a1bc
        reference. For example, suppose you are using the
        c2a1bc
        centos-art Bash implementation, and you are rendering
        c2a1bc
        translations for CentOS brands, in this situation the translation
        c2a1bc
        entry would be:
        c2a1bc

        c2a1bc
        trunk/Translations/Identity/Brands
        c2a1bc
        c2a1bc

        and the entry inside the translation pre-rendering configuration

        c2a1bc
        structure would be:
        c2a1bc

        c2a1bc
        trunk/Scripts/Bash/Config/Identity/Brands
        c2a1bc
        c2a1bc

        Once the centos-art script detects that translation

        c2a1bc
        pre-rendering configuration directory exists, the centos-art
        c2a1bc
        script looks for the translation pre-rendering configuration file.  If
        c2a1bc
        the translation pre-rendering configuration file exists, it is loaded
        c2a1bc
        and executed.  Once the translation pre-rendering configuration file
        c2a1bc
        has been executed the translation rendering process is over, and so
        c2a1bc
        the script execution.
        c2a1bc

        c2a1bc
        info

        Note

        Translation pre-rendering configuration files have the

        c2a1bc
        following form:
        c2a1bc

        render.conf.extension
        c2a1bc

        where <samp>`extension'</samp> refers the programming language implementation

        c2a1bc
        you are using. For example, <samp>`sh'</samp> for Bash, <samp>`py'</samp> for Python,
        c2a1bc
        <samp>`pl'</samp> for Perl, and so on for other implementations.
        c2a1bc

        c2a1bc
        c2a1bc

        As we are using Bash implementation to describe the translation

        c2a1bc
        pre-rendering configuration example, the translation pre-rendering
        c2a1bc
        configuration file that centos-art looks for, inside the
        c2a1bc
        above translation pre-rendering configuration directory, is
        c2a1bc
        <tt>`render.conf.sh'</tt>.
        c2a1bc

        c2a1bc
        c2a1bc
        c2a1bc

        3.35.2.9 Translation Rendering Default Functionality

        c2a1bc
        c2a1bc

        In the other hand, if the translation pre-rendering configuration file

        c2a1bc
        doesn't exist, or it isn't written as function script, the
        c2a1bc
        centos-art script ignore translation pre-rendering
        c2a1bc
        configuration functionality and passes to render translation using
        c2a1bc
        default functionality instead.
        c2a1bc

        c2a1bc

        The translation rendering default functionality takes template

        c2a1bc
        translation directory structure, duplicates it for each release number
        c2a1bc
        specified in the <samp>`--filter='release-number''</samp> argument and
        c2a1bc
        produces release-specific directories. As part of template translation
        c2a1bc
        duplication process take place, the centos-art script adds
        c2a1bc
        release-specific replacement commands for each specific translation
        c2a1bc
        file inside release-specific directories. As result, specific
        c2a1bc
        translation files, inside release-specific directories, contain
        c2a1bc
        template translation replacement commands plus,
        c2a1bc
        release-specific replacement commands.
        c2a1bc

        c2a1bc
        info

        Note

        Release-specific replacement commands are standardized

        c2a1bc
        inside centos-art script using predifined release
        c2a1bc
        translation markers. Release translation markers are described in the
        c2a1bc
        translation marker section
        c2a1bc
        (see Translation Markers).
        c2a1bc

        c2a1bc
        c2a1bc
        c2a1bc
        c2a1bc
        c2a1bc

        3.35.3 Usage

        c2a1bc
        c2a1bc
        c2a1bc
        <samp>`centos-art render --entry='path/to/dir''</samp>
        c2a1bc
        c2a1bc

        When <samp>`path/to/dir'</samp> refers one directory under

        c2a1bc
        <samp>`trunk/Translations'</samp>, this command orverwrites available
        c2a1bc
        translation files using translation templates.
        c2a1bc

        c2a1bc
        c2a1bc
        <samp>`centos-art render --entry='path/to/dir' --filter='pattern''</samp>
        c2a1bc
        c2a1bc

        When <samp>`path/to/dir'</samp> refers one directory under

        c2a1bc
        <tt>`trunk/Translations'</tt>, this command renders release-specific
        c2a1bc
        translation files as you specify in the <samp>`--filter='pattern''</samp>
        c2a1bc
        argument. In this case, <samp>`pattern'</samp> not a regular expression but an
        c2a1bc
        number (e.g., <samp>`5'</samp>) or a list of numbers separated by commas
        c2a1bc
        (e.g., <samp>`3,4,5,6'</samp>) that specify the major release of CentOS
        c2a1bc
        distribution you want to render translations for.  
        c2a1bc

        c2a1bc
        c2a1bc
        c2a1bc
        c2a1bc
        5fb024

        3.35.4 See also

        4c79b5
        c2a1bc
        c2a1bc
        3.1 trunk/Identity  
        c2a1bc
        c2a1bc
        4c79b5
        4c79b5
        4c79b5
        c2a1bc
        [ < ]
        c2a1bc
        [ > ]
        4c79b5
           
        4c79b5
        [ << ]
        2dc146
        [ Up ]
        c2a1bc
        [ >> ]
        4c79b5
        4c79b5

        4c79b5
         <font size="-1">
        acd47b
          This document was generated on February, 26 2011 using texi2html 1.76.
        4c79b5
         </font>
        4c79b5
         
        4c79b5
        4c79b5

        4c79b5
        </body>
        4c79b5
        </html>