Blame Manuals/Repository/repository-html/repository_37.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>
c12cdc
<title>CentOS Artwork Repository: 3.34 trunk/Locales</title>
4c79b5
c12cdc
<meta name="description" content="CentOS Artwork Repository: 3.34 trunk/Locales">
c12cdc
<meta name="keywords" content="CentOS Artwork Repository: 3.34 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
2c3589
[ < ]
2c3589
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
c12cdc
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
c12cdc
[Index]
4c79b5
[ ? ]
4c79b5
c12cdc
2c3589
c12cdc

3.34 trunk/Locales

6ba043
6ba043
2c3589
7e35dc

3.34.1 Goals

6ba043
c12cdc

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

c12cdc

2c3589
    c12cdc
  • Organize translation files.
  • c12cdc
  • Organize translation templates used to produce translation files.
  • 2c3589
    008ee0
    2c3589
    2c3589
    7e35dc

    3.34.2 Description

    6ba043
    c12cdc

    When you create artwork for CentOS distribution you find that some

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

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

      In order to aliviate maintainance of artwork production for such

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

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

        Inside CentOS Artwork Repository, the artworks' translation production

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

        c12cdc

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

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

        d11e55
        2c3589
        c12cdc

        3.34.2.1 Translation Entries

        4a9d2a
        c12cdc

        Translation entries exists for each artwork you want to produce.

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

        c12cdc

        When translation entries are empty directories, the identity entry is

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

        c12cdc

        When translation entries contain translation files, the translation

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

        c12cdc

        To find out correspondence between translation entries and identity

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

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

        and its translation entry is:

        c12cdc

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

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

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

        c12cdc
        info

        Note

        Translation entries related to identity entries under

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

        c12cdc

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

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

        c12cdc
        c12cdc

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

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

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

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

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

        c12cdc

        Trying to make things plain and simple: inside CentOS Artwork

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

        d11e55
        6a8116
        c12cdc

        3.34.2.2 Translation Markers

        c12cdc

        c12cdc
        c12cdc

        c12cdc

        Translation markers are used in "Theme Model Designs" and

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

        c12cdc

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

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

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

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

        c12cdc
        release is represented by the N letter.
        c12cdc

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

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

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

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

        Replace the full release of CentOS distribution. It is

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

        c12cdc
        c12cdc
        c12cdc

        Specific translation markers convenctions are described inside

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

        c12cdc

        Translation markers standardization creates a common point of

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

        c12cdc
        c12cdc
        c12cdc

        3.34.2.3 Translation Files

        c12cdc
        c12cdc

        Translation files are text files with sed commands inside,

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

        c12cdc

        For example, the Firstboot artwork of CentOS distribution uses the

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

        c12cdc

        If we want to produce Firstboot artwork for different major releases

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

        c12cdc
        info

        Note

        The monolithic visual identity is implemented using

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

        c12cdc
        c12cdc

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

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

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

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

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

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

        The above command produces the following translation entiry:

        c12cdc

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

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

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

        c12cdc
        c12cdc
        c12cdc

        3.34.2.4 Template Translation Files

        c12cdc
        c12cdc

        Template translation files are translation files stored inside

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

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

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

        c12cdc
        translation file and looks like:
        c12cdc

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

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

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

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

        If template translation files are not empty, replacement commands

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

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

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

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

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

        Note

        Release-specific translation directories preserve

        c12cdc
        template translation directory structure and file names.
        c12cdc

        c12cdc
        c12cdc

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

        c12cdc
        following:
        c12cdc

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

        and, after render the translation entry, specific translation files

        c12cdc
        look like the following:
        c12cdc

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

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

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

        c12cdc
        s/REGEXP/REPLACEMENT/FLAGS
        c12cdc
        c12cdc

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

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

        c12cdc

        The s command is probably the most important in

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

        c12cdc

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

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

        c12cdc
        Info

        Tip

        More information about how to use sed

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

        info sed
        c12cdc
        c12cdc
        c12cdc

        Inside translation files, you can use translation markers not only

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

        c12cdc
        c12cdc
        c12cdc

        3.34.2.5 Common Translation Files

        c12cdc
        c12cdc

        Common translation files contain common translations or no

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

        c12cdc

        Translation entries, with common translation files inside, look like

        c12cdc
        the following:
        c12cdc

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

        3.34.2.6 Specific Translation Files

        c12cdc
        c12cdc

        Specific translation files contain specific translations for their

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

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

        3.34.2.7 Translation Rendering

        c12cdc
        c12cdc

        When rendering translations, the centos-art script checks

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

        c12cdc
        c12cdc
        c12cdc

        3.34.2.8 Translation (Pre-)Rendering Configuration Scripts

        c12cdc
        c12cdc

        When the centos-art script finds a translation template

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

        c12cdc

        Translation pre-rendering configuration scripts are stored under

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

        c12cdc

        Bash translation pre-rendering configuration scripts look like the

        c12cdc
        following:
        c12cdc

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

        Translation pre-rendering scripts are function scripts loaded and

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

        c12cdc
        trunk/Translations/Identity/Brands
        c12cdc
        c12cdc

        and the entry inside the translation pre-rendering configuration

        c12cdc
        structure would be:
        c12cdc

        c12cdc
        trunk/Scripts/Bash/Config/Identity/Brands
        c12cdc
        c12cdc

        Once the centos-art script detects that translation

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

        c12cdc
        info

        Note

        Translation pre-rendering configuration files have the

        c12cdc
        following form:
        c12cdc

        render.conf.extension
        c12cdc

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

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

        c12cdc
        c12cdc

        As we are using Bash implementation to describe the translation

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

        c12cdc
        c12cdc
        c12cdc

        3.34.2.9 Translation Rendering Default Functionality

        c12cdc
        c12cdc

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

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

        c12cdc

        The translation rendering default functionality takes template

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

        c12cdc
        info

        Note

        Release-specific replacement commands are standardized

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

        c12cdc
        c12cdc
        c12cdc
        c12cdc
        c12cdc

        3.34.3 Usage

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

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

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

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

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

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

        c12cdc
        c12cdc
        c12cdc
        c12cdc
        5fb024

        3.34.4 See also

        4c79b5
        c12cdc
        c12cdc
        3.1 trunk/Identity  
        c12cdc
        c12cdc
        4c79b5
        bc3531
        4c79b5
        c12cdc
        [ < ]
        c12cdc
        [ > ]
        4c79b5
           
        4c79b5
        [ << ]
        2c3589
        [ Up ]
        c12cdc
        [ >> ]
        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>