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
-->
bf28e1
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>
7e35dc
<title>CentOS Artwork Repository: 3.35 trunk/Locales</title>
4c79b5
7e35dc
<meta name="description" content="CentOS Artwork Repository: 3.35 trunk/Locales">
7e35dc
<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
af3979
[ < ]
af3979
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
af3979
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
af3979
[Index]
4c79b5
[ ? ]
4c79b5
7e35dc
af3979
7e35dc

3.35 trunk/Locales

be6bef
be6bef
af3979
54b5a5

3.35.1 Goals

008ee0
7e35dc

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

7e35dc

54b5a5
    7e35dc
  • Organize translation files.
  • 7e35dc
  • Organize translation templates used to produce translation files.
  • 54b5a5
    41f1ec
    2bb528
    af3979
    54b5a5

    3.35.2 Description

    6c4982
    7e35dc

    When you create artwork for CentOS distribution you find that some

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

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

      In order to aliviate maintainance of artwork production for such

      7e35dc
      environment, we divided artwork production in three production lines:
      7e35dc

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

        Inside CentOS Artwork Repository, the artworks' translation production

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

        7e35dc

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

        7e35dc
        entries" to organize artworks' "translation files" and artworks'
        7e35dc
        "translation templates".
        7e35dc

        2dc146
        af3979
        7e35dc

        3.35.2.1 Translation Entries

        c2a1bc
        7e35dc

        Translation entries exists for each artwork you want to produce.

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

        7e35dc

        When translation entries are empty directories, the identity entry is

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

        7e35dc

        When translation entries contain translation files, the translation

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

        7e35dc

        To find out correspondence between translation entries and identity

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

        7e35dc
        trunk/Identity/Themes/Motifs/Modern/Distro/Anaconda/Progress
        7e35dc
        7e35dc

        and its translation entry is:

        7e35dc

        7e35dc
        trunk/Translations/Identity/Themes/Distro/Anaconda/Progress
        7e35dc
        7e35dc

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

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

        7e35dc
        info

        Note

        Translation entries related to identity entries under

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

        7e35dc

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

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

        7e35dc
        7e35dc

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

        7e35dc
        identity entries. For example the following identity entries:
        7e35dc

        7e35dc
        trunk/Identity/Themes/Motifs/Modern/Distro/Anaconda/Progress/
        7e35dc
        trunk/Identity/Themes/Motifs/TreeFlower/Distro/Anaconda/Progress/
        7e35dc
        trunk/Identity/Themes/Motifs/Mettle/Distro/Anaconda/Progress/
        7e35dc
        7e35dc

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

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

        7e35dc

        Trying to make things plain and simple: inside CentOS Artwork

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

        c2a1bc
        af3979
        7e35dc

        3.35.2.2 Translation Markers

        7e35dc

        7e35dc
        7e35dc

        7e35dc

        Translation markers are used in "Theme Model Designs" and

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

        7e35dc

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

        7e35dc
        we use the following to represent releases of CentOS distribution:
        7e35dc

        7e35dc
        7e35dc
        <samp>`=MINOR_RELEASE='</samp>
        7e35dc

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

        7e35dc
        release is represented by the N letter.
        7e35dc

        7e35dc
        <samp>`=MAJOR_RELEASE='</samp>
        7e35dc

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

        7e35dc
        the major release is represented by the M letter.
        7e35dc

        7e35dc
        <samp>`=RELEASE='</samp>
        7e35dc

        Replace the full release of CentOS distribution. It is

        7e35dc
        <samp>`=MAJOR_RELEASE=.=MINOR_RELEASE='</samp> basically. 
        7e35dc

        7e35dc
        7e35dc
        7e35dc

        Specific translation markers convenctions are described inside

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

        7e35dc

        Translation markers standardization creates a common point of

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

        7e35dc
        af3979
        7e35dc

        3.35.2.3 Translation Files

        7e35dc
        7e35dc

        Translation files are text files with sed commands inside,

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

        7e35dc

        For example, the Firstboot artwork of CentOS distribution uses the

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

        7e35dc

        If we want to produce Firstboot artwork for different major releases

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

        7e35dc
        info

        Note

        The monolithic visual identity is implemented using

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

        7e35dc
        7e35dc

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

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

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

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

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

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

        The above command produces the following translation entiry:

        7e35dc

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

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

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

        7e35dc
        af3979
        7e35dc

        3.35.2.4 Template Translation Files

        7e35dc
        7e35dc

        Template translation files are translation files stored inside

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

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

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

        7e35dc
        translation file and looks like:
        7e35dc

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

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

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

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

        If template translation files are not empty, replacement commands

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

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

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

        7e35dc
        releases, the translation entry would look like the following:
        7e35dc

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

        Note

        Release-specific translation directories preserve

        7e35dc
        template translation directory structure and file names.
        7e35dc

        7e35dc
        7e35dc

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

        7e35dc
        following:
        7e35dc

        7e35dc
        # ------------------------------------------------------------
        7e35dc
        # $Id: 01-welcome.sed 94 2010-09-18 10:59:42Z al $
        7e35dc
        # ------------------------------------------------------------
        7e35dc
        s/=TITLE=/Welcome to CentOS =MAJOR_RELEASE= !/
        7e35dc
        s/=TEXT1=/Thank you for installing CentOS =MAJOR_RELEASE=./
        7e35dc
        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./
        7e35dc
        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./
        7e35dc
        s/=TEXT4=//
        7e35dc
        s/=TEXT5=//
        7e35dc
        s/=TEXT6=//
        7e35dc
        s!=URL=!http://www.centos.org/!
        7e35dc
        7e35dc

        and, after render the translation entry, specific translation files

        7e35dc
        look like the following:
        7e35dc

        7e35dc
        # Warning: Do not modify this file directly. This file is created
        7e35dc
        # automatically using 'centos-art' command line interface.  Any change
        7e35dc
        # you do in this file will be lost the next time you update
        7e35dc
        # translation files using 'centos-art' command line interface. If you
        7e35dc
        # want to improve the content of this translation file, improve its
        7e35dc
        # template file instead and run the 'centos-art' command line
        7e35dc
        # interface later to propagate your changes.
        7e35dc
        # ------------------------------------------------------------
        7e35dc
        # $Id: 01-welcome.sed 94 2010-09-18 10:59:42Z al $
        7e35dc
        # ------------------------------------------------------------
        7e35dc
        7e35dc
        s/=TITLE=/Welcome to CentOS =MAJOR_RELEASE= !/
        7e35dc
        s/=TEXT1=/Thank you for installing CentOS =MAJOR_RELEASE=./
        7e35dc
        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./
        7e35dc
        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./
        7e35dc
        s/=TEXT4=//
        7e35dc
        s/=TEXT5=//
        7e35dc
        s/=TEXT6=//
        7e35dc
        s!=URL=!http://www.centos.org/!
        7e35dc
        7e35dc
        # Release number information.
        7e35dc
        s!=RELEASE=!=MAJOR_RELEASE=.=MINOR_RELEASE=!g
        7e35dc
        s!=MINOR_RELEASE=!0!g
        7e35dc
        s!=MAJOR_RELEASE=!5!g
        7e35dc
        7e35dc

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

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

        7e35dc
        s/REGEXP/REPLACEMENT/FLAGS
        7e35dc
        7e35dc

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

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

        7e35dc

        The s command is probably the most important in

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

        7e35dc

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

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

        7e35dc
        Info

        Tip

        More information about how to use sed

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

        info sed
        7e35dc
        7e35dc
        7e35dc

        Inside translation files, you can use translation markers not only

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

        7e35dc
        af3979
        7e35dc

        3.35.2.5 Common Translation Files

        7e35dc
        7e35dc

        Common translation files contain common translations or no

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

        7e35dc

        Translation entries, with common translation files inside, look like

        7e35dc
        the following:
        7e35dc

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

        3.35.2.6 Specific Translation Files

        7e35dc
        7e35dc

        Specific translation files contain specific translations for their

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

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

        3.35.2.7 Translation Rendering

        7e35dc
        7e35dc

        When rendering translations, the centos-art script checks

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

        7e35dc
        af3979
        7e35dc

        3.35.2.8 Translation (Pre-)Rendering Configuration Scripts

        7e35dc
        7e35dc

        When the centos-art script finds a translation template

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

        7e35dc

        Translation pre-rendering configuration scripts are stored under

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

        7e35dc

        Bash translation pre-rendering configuration scripts look like the

        7e35dc
        following:
        7e35dc

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

        Translation pre-rendering scripts are function scripts loaded and

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

        7e35dc
        trunk/Translations/Identity/Brands
        7e35dc
        7e35dc

        and the entry inside the translation pre-rendering configuration

        7e35dc
        structure would be:
        7e35dc

        7e35dc
        trunk/Scripts/Bash/Config/Identity/Brands
        7e35dc
        7e35dc

        Once the centos-art script detects that translation

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

        7e35dc
        info

        Note

        Translation pre-rendering configuration files have the

        7e35dc
        following form:
        7e35dc

        render.conf.extension
        7e35dc

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

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

        7e35dc
        7e35dc

        As we are using Bash implementation to describe the translation

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

        7e35dc
        af3979
        7e35dc

        3.35.2.9 Translation Rendering Default Functionality

        7e35dc
        7e35dc

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

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

        7e35dc

        The translation rendering default functionality takes template

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

        7e35dc
        info

        Note

        Release-specific replacement commands are standardized

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

        7e35dc
        7e35dc
        7e35dc
        af3979
        7e35dc

        3.35.3 Usage

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

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

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

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

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

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

        7e35dc
        7e35dc
        7e35dc
        af3979
        5fb024

        3.35.4 See also

        4c79b5
        7e35dc
        7e35dc
        3.1 trunk/Identity  
        7e35dc
        7e35dc
        4c79b5
        4c79b5
        4c79b5
        af3979
        [ < ]
        af3979
        [ > ]
        4c79b5
           
        4c79b5
        [ << ]
        af3979
        [ Up ]
        af3979
        [ >> ]
        4c79b5
        4c79b5

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

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