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

4c79b5
4c79b5
<html>
ccb7a3
4c79b5
4c79b5
Permission is granted to copy, distribute and/or modify this document
4c79b5
under the terms of the GNU Free Documentation License, Version 1.2 or
4c79b5
any later version published by the Free Software Foundation; with no
4c79b5
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
4c79b5
copy of the license is included in the section entitled GNU Free
4c79b5
Documentation License.  
4c79b5
-->
acd47b
4c79b5
4c79b5
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
4c79b5
            Karl Berry  <karl@freefriends.org>
4c79b5
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
4c79b5
            and many others.
4c79b5
Maintained by: Many creative people <dev@texi2html.cvshome.org>
4c79b5
Send bugs and suggestions to <users@texi2html.cvshome.org>
4c79b5
4c79b5
-->
4c79b5
<head>
fa7cae
<title>CentOS Artwork Repository: 3.36 trunk/Locales</title>
4c79b5
fa7cae
<meta name="description" content="CentOS Artwork Repository: 3.36 trunk/Locales">
fa7cae
<meta name="keywords" content="CentOS Artwork Repository: 3.36 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
fa7cae
[ < ]
fa7cae
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
fa7cae
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
fa7cae
[Index]
4c79b5
[ ? ]
4c79b5
fa7cae
fa7cae
fa7cae

3.36 trunk/Locales

4c79b5
5fb024
fa7cae
5fb024

3.36.1 Goals

5fb024
fa7cae

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

fa7cae

4a9d2a
    fa7cae
  • Organize translation files.
  • fa7cae
  • Organize translation templates used to produce translation files.
  • 4a9d2a
    4a9d2a
    5fb024
    fa7cae
    5fb024

    3.36.2 Description

    5fb024
    fa7cae

    When you create artwork for CentOS distribution you find that some

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

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

      In order to aliviate maintainance of artwork production for such

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

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

        Inside CentOS Artwork Repository, the artworks' translation production

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

        fa7cae

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

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

        fa7cae
        fa7cae
        fa7cae

        3.36.2.1 Translation Entries

        fa7cae
        fa7cae

        Translation entries exists for each artwork you want to produce.

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

        fa7cae

        When translation entries are empty directories, the identity entry is

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

        fa7cae

        When translation entries contain translation files, the translation

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

        fa7cae

        To find out correspondence between translation entries and identity

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

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

        and its translation entry is:

        fa7cae

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

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

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

        fa7cae
        info

        Note

        Translation entries related to identity entries under

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

        fa7cae

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

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

        fa7cae
        fa7cae

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

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

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

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

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

        fa7cae

        Trying to make things plain and simple: inside CentOS Artwork

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

        fa7cae
        fa7cae
        fa7cae

        3.36.2.2 Translation Markers

        fa7cae

        fa7cae
        fa7cae

        fa7cae

        Translation markers are used in "Theme Model Designs" and

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

        fa7cae

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

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

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

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

        fa7cae
        release is represented by the N letter.
        fa7cae

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

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

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

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

        Replace the full release of CentOS distribution. It is

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

        fa7cae
        fa7cae
        fa7cae

        Specific translation markers convenctions are described inside

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

        fa7cae

        Translation markers standardization creates a common point of

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

        fa7cae
        fa7cae
        fa7cae

        3.36.2.3 Translation Files

        fa7cae
        fa7cae

        Translation files are text files with sed commands inside,

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

        fa7cae

        For example, the Firstboot artwork of CentOS distribution uses the

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

        fa7cae

        If we want to produce Firstboot artwork for different major releases

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

        fa7cae
        info

        Note

        The monolithic visual identity is implemented using

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

        fa7cae
        fa7cae

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

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

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

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

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

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

        The above command produces the following translation entiry:

        fa7cae

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

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

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

        fa7cae
        fa7cae
        fa7cae

        3.36.2.4 Template Translation Files

        fa7cae
        fa7cae

        Template translation files are translation files stored inside

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

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

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

        fa7cae
        translation file and looks like:
        fa7cae

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

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

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

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

        If template translation files are not empty, replacement commands

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

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

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

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

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

        Note

        Release-specific translation directories preserve

        fa7cae
        template translation directory structure and file names.
        fa7cae

        fa7cae
        fa7cae

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

        fa7cae
        following:
        fa7cae

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

        and, after render the translation entry, specific translation files

        fa7cae
        look like the following:
        fa7cae

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

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

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

        fa7cae
        s/REGEXP/REPLACEMENT/FLAGS
        fa7cae
        fa7cae

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

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

        fa7cae

        The s command is probably the most important in

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

        fa7cae

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

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

        fa7cae
        Info

        Tip

        More information about how to use sed

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

        info sed
        fa7cae
        fa7cae
        fa7cae

        Inside translation files, you can use translation markers not only

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

        fa7cae
        fa7cae
        fa7cae

        3.36.2.5 Common Translation Files

        fa7cae
        fa7cae

        Common translation files contain common translations or no

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

        fa7cae

        Translation entries, with common translation files inside, look like

        fa7cae
        the following:
        fa7cae

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

        3.36.2.6 Specific Translation Files

        fa7cae
        fa7cae

        Specific translation files contain specific translations for their

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

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

        3.36.2.7 Translation Rendering

        fa7cae
        fa7cae

        When rendering translations, the centos-art script checks

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

        fa7cae
        fa7cae
        fa7cae

        3.36.2.8 Translation (Pre-)Rendering Configuration Scripts

        fa7cae
        fa7cae

        When the centos-art script finds a translation template

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

        fa7cae

        Translation pre-rendering configuration scripts are stored under

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

        fa7cae

        Bash translation pre-rendering configuration scripts look like the

        fa7cae
        following:
        fa7cae

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

        Translation pre-rendering scripts are function scripts loaded and

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

        fa7cae
        trunk/Translations/Identity/Brands
        fa7cae
        fa7cae

        and the entry inside the translation pre-rendering configuration

        fa7cae
        structure would be:
        fa7cae

        fa7cae
        trunk/Scripts/Bash/Config/Identity/Brands
        fa7cae
        fa7cae

        Once the centos-art script detects that translation

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

        fa7cae
        info

        Note

        Translation pre-rendering configuration files have the

        fa7cae
        following form:
        fa7cae

        render.conf.extension
        fa7cae

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

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

        fa7cae
        fa7cae

        As we are using Bash implementation to describe the translation

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

        fa7cae
        fa7cae
        fa7cae

        3.36.2.9 Translation Rendering Default Functionality

        fa7cae
        fa7cae

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

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

        fa7cae

        The translation rendering default functionality takes template

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

        fa7cae
        info

        Note

        Release-specific replacement commands are standardized

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

        fa7cae
        fa7cae
        4a9d2a
        2dc146
        63f275

        3.36.3 Usage

        54b5a5
        fa7cae
        fa7cae
        <samp>`centos-art render --entry='path/to/dir''</samp>
        fa7cae
        fa7cae

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

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

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

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

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

        fa7cae
        2dc146
        5fb024
        2dc146
        5fb024

        3.36.4 See also

        5fb024
        ec5f63
        2dc146
        3.1 trunk/Identity  
        ec5f63
        ec5f63
        4c79b5
        4c79b5
        4c79b5
        2dc146
        [ < ]
        2dc146
        [ > ]
        4c79b5
           
        4c79b5
        [ << ]
        fa7cae
        [ Up ]
        fa7cae
        [ >> ]
        4c79b5
        4c79b5

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

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