Blame Manuals/en/Html/Repository/repository_54.html

4c79b5
4c79b5
<html>
4c79b5
4c79b5
can you do inside it.
4c79b5
4c79b5
Copyright C 2009, 2010 CentOS Artwork SIG. All rights
4c79b5
reserved.
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
-->
ca45c0
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>
b8013f
<title>CentOS Artwork Repository: 3.51 trunk/Translations</title>
4c79b5
b8013f
<meta name="description" content="CentOS Artwork Repository: 3.51 trunk/Translations">
b8013f
<meta name="keywords" content="CentOS Artwork Repository: 3.51 trunk/Translations">
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
ca45c0
[ < ]
ca45c0
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
ca45c0
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
ca45c0
[Index]
4c79b5
[ ? ]
4c79b5
b8013f
ca45c0
b8013f

3.51 trunk/Translations

6aec21
fe989b
ca45c0
081970

3.51.1 Goals

6aec21
b8013f

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

b8013f

38bcd9
    b8013f
  • Organize translation files.
  • b8013f
  • Organize translation templates used to produce translation files.
  • 38bcd9
    fe989b
    38bcd9
    ca45c0
    081970

    3.51.2 Description

    fe989b
    b8013f

    When you create artwork for CentOS distribution you find that some

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

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

      In order to aliviate maintainance of artwork production for such

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

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

        Inside CentOS Artwork Repository, the artworks' translation production

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

        b8013f

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

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

        fe989b
        ca45c0
        b8013f

        3.51.2.1 Translation Entries

        6aec21
        b8013f

        Translation entries exists for each artwork you want to produce.

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

        b8013f

        When translation entries are empty directories, the identity entry is

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

        b8013f

        When translation entries contain translation files, the translation

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

        b8013f

        To find out correspondence between translation entries and identity

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

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

        and its translation entry is:

        b8013f

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

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

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

        b8013f
        info

        Note

        Translation entries related to identity entries under

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

        b8013f

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

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

        38bcd9
        b8013f

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

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

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

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

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

        b8013f

        Trying to make things plain and simple: inside CentOS Artwork

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

        6aec21
        ca45c0
        b8013f

        3.51.2.2 Translation Markers

        b8013f

        b8013f
        b8013f

        b8013f

        Translation markers are used in "Theme Model Designs" and

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

        b8013f
        b8013f

        Translation Markers

        b8013f
        b8013f

        Figure 3.6: The image rendering flow.

        b8013f
        b8013f

        b8013f

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

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

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

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

        b8013f
        release is represented by the N letter.
        b8013f

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

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

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

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

        Replace the full release of CentOS distribution. It is

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

        b8013f
        b8013f
        b8013f

        Specific translation markers convenctions are described inside

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

        b8013f

        Translation markers standardization creates a common point of

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

        b8013f
        ca45c0
        b8013f

        3.51.2.3 Translation Files

        b8013f
        b8013f

        Translation files are text files with sed's commands inside,

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

        b8013f

        For example, the Firstboot artwork of CentOS distribution uses the

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

        b8013f

        If we want to produce Firstboot artwork for different major releases

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

        b8013f
        info

        Note

        The monolithic visual identity is implemented using

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

        b8013f
        b8013f

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

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

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

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

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

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

        The above command produces the following translation entiry:

        b8013f

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

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

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

        b8013f
        ca45c0
        b8013f

        3.51.2.4 Template Translation Files

        b8013f
        b8013f

        Template translation files are translation files stored inside

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

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

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

        b8013f
        translation file and looks like:
        b8013f

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

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

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

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

        If template translation files are not empty, replacement commands

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

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

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

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

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

        Note

        Release-specific translation directories preserve

        b8013f
        template translation directory structure and file names.
        b8013f

        b8013f
        b8013f

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

        b8013f
        following:
        b8013f

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

        and, after render the translation entry, specific translation files

        b8013f
        look like the following:
        b8013f

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

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

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

        b8013f
        s/REGEXP/REPLACEMENT/FLAGS
        b8013f
        b8013f

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

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

        b8013f

        The s command is probably the most important in

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

        b8013f

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

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

        b8013f
        Info

        Tip

        More information about how to use sed's

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

        info sed
        b8013f
        b8013f
        b8013f

        Inside translation files, you can use translation markers not only

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

        b8013f
        ca45c0
        b8013f

        3.51.2.5 Common Translation Files

        b8013f
        b8013f

        Common translation files contain common translations or no

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

        b8013f

        Translation entries, with common translation files inside, look like

        b8013f
        the following:
        b8013f

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

        3.51.2.6 Specific Translation Files

        b8013f
        b8013f

        Specific translation files contain specific translations for their

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

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

        3.51.2.7 Translation Rendering

        b8013f
        b8013f

        When rendering translations, the centos-art script checks

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

        b8013f
        ca45c0
        b8013f

        3.51.2.8 Translation (Pre-)Rendering Configuration Scripts

        b8013f
        b8013f

        When the centos-art script finds a translation template

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

        b8013f

        Translation pre-rendering configuration scripts are stored under

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

        b8013f

        Bash's translation pre-rendering configuration scripts look like the

        b8013f
        following:
        b8013f

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

        Translation pre-rendering scripts are function scripts loaded and

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

        b8013f
        trunk/Translations/Identity/Brands
        b8013f
        b8013f

        and the entry inside the translation pre-rendering configuration

        b8013f
        structure would be:
        b8013f

        b8013f
        trunk/Scripts/Bash/Config/Identity/Brands
        b8013f
        b8013f

        Once the centos-art script detects that translation

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

        b8013f
        info

        Note

        Translation pre-rendering configuration files have the

        b8013f
        following form:
        b8013f

        render.conf.extension
        b8013f

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

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

        b8013f
        b8013f

        As we are using Bash implementation to describe the translation

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

        b8013f
        ca45c0
        b8013f

        3.51.2.9 Translation Rendering Default Functionality

        b8013f
        b8013f

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

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

        b8013f

        The translation rendering default functionality takes template

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

        b8013f
        info

        Note

        Release-specific replacement commands are standardized

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

        b8013f
        b8013f
        b8013f
        ca45c0
        b8013f

        3.51.3 Usage

        b8013f
        b8013f
        b8013f
        <samp>`centos-art render 'path/to/dir''</samp>
        b8013f
        b8013f

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

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

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

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

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

        b8013f
        b8013f
        b8013f
        b8013f
        ca45c0
        4c79b5

        3.51.4 See also

        4c79b5
        b8013f
        ca45c0
        3.53 trunk/Translations/Identity/Brands  
        b8013f
        ca45c0
        3.55 trunk/Translations/Identity/Fonts  
        b8013f
        ca45c0
        3.56 trunk/Translations/Identity/Models  
        b8013f
        ca45c0
        3.57 trunk/Translations/Identity/Release  
        b8013f
        ca45c0
        3.58 trunk/Translations/Identity/Themes  
        b8013f
        b8013f
        3.1 trunk/Identity  
        b8013f
        b8013f
        4c79b5
        4c79b5
        4c79b5
        ca45c0
        [ < ]
        ca45c0
        [ > ]
        4c79b5
           
        4c79b5
        [ << ]
        ca45c0
        [ Up ]
        ca45c0
        [ >> ]
        4c79b5
        4c79b5

        4c79b5
         <font size="-1">
        ca45c0
          This document was generated on October, 30 2010 using texi2html 1.76.
        4c79b5
         </font>
        4c79b5
         
        4c79b5
        4c79b5

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