Blame Manuals/en/Html/Repository/repository_51.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
-->
1e9202
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>
bc3531
<title>CentOS Artwork Repository: 3.48 trunk/Translations</title>
4c79b5
bc3531
<meta name="description" content="CentOS Artwork Repository: 3.48 trunk/Translations">
bc3531
<meta name="keywords" content="CentOS Artwork Repository: 3.48 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
1e9202
[ < ]
1e9202
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
1e9202
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
1e9202
[Index]
4c79b5
[ ? ]
4c79b5
bc3531
1e9202
bc3531

3.48 trunk/Translations

4c79b5
4c79b5
1e9202
4c79b5

3.48.1 Goals

4c79b5
bc3531

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

bc3531

300762
    bc3531
  • Organize translation files.
  • bc3531
  • Organize translation templates used to produce translation files.
  • 300762
    4c79b5
    300762
    1e9202
    4c79b5

    3.48.2 Description

    4c79b5
    bc3531

    When you create artwork for CentOS distribution you find that some

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

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

      In order to aliviate maintainance of artwork production for such

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

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

        Inside CentOS Artwork Repository, the artworks' translation production

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

        bc3531

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

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

        bc3531
        1e9202
        bc3531

        3.48.2.1 Translation Entries

        bc3531
        bc3531

        Translation entries exists for each artwork you want to produce.

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

        bc3531

        When translation entries are empty directories, the identity entry is

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

        bc3531

        When translation entries contain translation files, the translation

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

        bc3531

        To find out correspondence between translation entries and identity

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

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

        and its translation entry is:

        bc3531

        bc3531
        trunk/Translations/Identity/Themes/Distro/Anaconda/Progress
        300762
        bc3531

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

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

        bc3531
        info

        Note

        Translation entries related to identity entries under

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

        bc3531

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

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

        bc3531
        bc3531

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

        bc3531
        identity entries. For example the following identity entries:
        300762

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

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

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

        bc3531

        Trying to make things plain and simple: inside CentOS Artwork

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

        300762
        1e9202
        bc3531

        3.48.2.2 Translation Markers

        bc3531

        bc3531
        bc3531

        bc3531

        Translation markers are used in "Theme Model Designs" and

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

        1e9202
        1e9202

        Translation Markers

        300762
        1e9202

        Figure 3.6: The image rendering flow.

        bc3531
        300762

        bc3531

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

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

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

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

        bc3531
        release is represented by the N letter.
        bc3531

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

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

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

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

        Replace the full release of CentOS distribution. It is

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

        bc3531
        300762
        bc3531

        Specific translation markers convenctions are described inside

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

        bc3531

        Translation markers standardization creates a common point of

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

        bc3531
        1e9202
        bc3531

        3.48.2.3 Translation Files

        4c79b5
        bc3531

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

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

        bc3531

        For example, the Firstboot artwork of CentOS distribution uses the

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

        bc3531

        If we want to produce Firstboot artwork for different major releases

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

        bc3531
        info

        Note

        The monolithic visual identity is implemented using

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

        300762
        bc3531

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

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

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

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

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

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

        The above command produces the following translation entiry:

        bc3531

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

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

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

        300762
        1e9202
        bc3531

        3.48.2.4 Template Translation Files

        bc3531
        bc3531

        Template translation files are translation files stored inside

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

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

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

        bc3531
        translation file and looks like:
        bc3531

        bc3531
        # -------------------------------------
        bc3531
        # $Id: Translations.texi 94 2010-09-18 10:59:42Z al $
        bc3531
        # -------------------------------------
        bc3531
        bc3531

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

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

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

        If template translation files are not empty, replacement commands

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

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

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

        bc3531
        releases, the translation entry would look like the following:
        300762

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

        Note

        Release-specific translation directories preserve

        bc3531
        template translation directory structure and file names.
        300762

        300762
        bc3531

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

        bc3531
        following:
        bc3531

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

        and, after render the translation entry, specific translation files

        bc3531
        look like the following:
        bc3531

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

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

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

        bc3531
        s/REGEXP/REPLACEMENT/FLAGS
        bc3531
        bc3531

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

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

        bc3531

        The s command is probably the most important in

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

        bc3531

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

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

        bc3531
        Info

        Tip

        More information about how to use sed's

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

        info sed
        bc3531
        bc3531
        bc3531

        Inside translation files, you can use translation markers not only

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

        bc3531
        1e9202
        bc3531

        3.48.2.5 Common Translation Files

        bc3531
        bc3531

        Common translation files contain common translations or no

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

        bc3531

        Translation entries, with common translation files inside, look like

        bc3531
        the following:
        bc3531

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

        3.48.2.6 Specific Translation Files

        bc3531
        bc3531

        Specific translation files contain specific translations for their

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

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

        3.48.2.7 Translation Rendering

        bc3531
        bc3531

        When rendering translations, the centos-art script checks

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

        bc3531
        1e9202
        bc3531

        3.48.2.8 Translation (Pre-)Rendering Configuration Scripts

        bc3531
        bc3531

        When the centos-art script finds a translation template

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

        bc3531

        Translation pre-rendering configuration scripts are stored under

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

        bc3531

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

        bc3531
        following:
        bc3531

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

        Translation pre-rendering scripts are function scripts loaded and

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

        bc3531
        trunk/Translations/Identity/Brands
        bc3531
        bc3531

        and the entry inside the translation pre-rendering configuration

        bc3531
        structure would be:
        bc3531

        bc3531
        trunk/Scripts/Bash/Config/Identity/Brands
        bc3531
        bc3531

        Once the centos-art script detects that translation

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

        bc3531
        info

        Note

        Translation pre-rendering configuration files have the

        bc3531
        following form:
        bc3531

        render.conf.extension
        bc3531

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

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

        bc3531
        bc3531

        As we are using Bash implementation to describe the translation

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

        bc3531
        1e9202
        bc3531

        3.48.2.9 Translation Rendering Default Functionality

        bc3531
        bc3531

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

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

        bc3531

        The translation rendering default functionality takes template

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

        bc3531
        info

        Note

        Release-specific replacement commands are standardized

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

        bc3531
        bc3531
        bc3531
        1e9202
        bc3531

        3.48.3 Usage

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

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

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

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

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

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

        bc3531
        bc3531
        bc3531
        bc3531
        1e9202
        4c79b5

        3.48.4 See also

        4c79b5
        300762
        1e9202
        3.50 trunk/Translations/Identity/Brands  
        bc3531
        1e9202
        3.52 trunk/Translations/Identity/Fonts  
        bc3531
        1e9202
        3.53 trunk/Translations/Identity/Models  
        bc3531
        1e9202
        3.54 trunk/Translations/Identity/Release  
        bc3531
        1e9202
        3.55 trunk/Translations/Identity/Themes  
        300762
        bc3531
        3.1 trunk/Identity  
        300762
        300762
        4c79b5
        4c79b5
        4c79b5
        1e9202
        [ < ]
        1e9202
        [ > ]
        4c79b5
           
        4c79b5
        [ << ]
        1e9202
        [ Up ]
        1e9202
        [ >> ]
        4c79b5
        4c79b5

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

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