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

3.36 trunk/Locales

4c79b5
5fb024
7fa1fb
5fb024

3.36.1 Goals

5fb024
7fa1fb

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

7fa1fb

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

    3.36.2 Description

    5fb024
    7fa1fb

    When you create artwork for CentOS distribution you find that some

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

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

      In order to aliviate maintainance of artwork production for such

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

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

        Inside CentOS Artwork Repository, the artworks' translation production

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

        7fa1fb

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

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

        7fa1fb
        7fa1fb
        7fa1fb

        3.36.2.1 Translation Entries

        7fa1fb
        7fa1fb

        Translation entries exists for each artwork you want to produce.

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

        7fa1fb

        When translation entries are empty directories, the identity entry is

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

        7fa1fb

        When translation entries contain translation files, the translation

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

        7fa1fb

        To find out correspondence between translation entries and identity

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

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

        and its translation entry is:

        7fa1fb

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

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

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

        7fa1fb
        info

        Note

        Translation entries related to identity entries under

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

        7fa1fb

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

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

        7fa1fb
        7fa1fb

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

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

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

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

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

        7fa1fb

        Trying to make things plain and simple: inside CentOS Artwork

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

        7fa1fb
        7fa1fb
        7fa1fb

        3.36.2.2 Translation Markers

        7fa1fb

        7fa1fb
        7fa1fb

        7fa1fb

        Translation markers are used in "Theme Model Designs" and

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

        7fa1fb

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

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

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

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

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

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

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

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

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

        Replace the full release of CentOS distribution. It is

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

        7fa1fb
        7fa1fb
        7fa1fb

        Specific translation markers convenctions are described inside

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

        7fa1fb

        Translation markers standardization creates a common point of

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

        7fa1fb
        7fa1fb
        7fa1fb

        3.36.2.3 Translation Files

        7fa1fb
        7fa1fb

        Translation files are text files with sed commands inside,

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

        7fa1fb

        For example, the Firstboot artwork of CentOS distribution uses the

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

        7fa1fb

        If we want to produce Firstboot artwork for different major releases

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

        7fa1fb
        info

        Note

        The monolithic visual identity is implemented using

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

        7fa1fb
        7fa1fb

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

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

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

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

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

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

        The above command produces the following translation entiry:

        7fa1fb

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

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

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

        7fa1fb
        7fa1fb
        7fa1fb

        3.36.2.4 Template Translation Files

        7fa1fb
        7fa1fb

        Template translation files are translation files stored inside

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

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

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

        7fa1fb
        translation file and looks like:
        7fa1fb

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

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

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

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

        If template translation files are not empty, replacement commands

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

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

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

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

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

        Note

        Release-specific translation directories preserve

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

        7fa1fb
        7fa1fb

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

        7fa1fb
        following:
        7fa1fb

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

        and, after render the translation entry, specific translation files

        7fa1fb
        look like the following:
        7fa1fb

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

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

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

        7fa1fb
        s/REGEXP/REPLACEMENT/FLAGS
        7fa1fb
        7fa1fb

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

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

        7fa1fb

        The s command is probably the most important in

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

        7fa1fb

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

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

        7fa1fb
        Info

        Tip

        More information about how to use sed

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

        info sed
        7fa1fb
        7fa1fb
        7fa1fb

        Inside translation files, you can use translation markers not only

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

        7fa1fb
        7fa1fb
        7fa1fb

        3.36.2.5 Common Translation Files

        7fa1fb
        7fa1fb

        Common translation files contain common translations or no

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

        7fa1fb

        Translation entries, with common translation files inside, look like

        7fa1fb
        the following:
        7fa1fb

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

        3.36.2.6 Specific Translation Files

        7fa1fb
        7fa1fb

        Specific translation files contain specific translations for their

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

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

        3.36.2.7 Translation Rendering

        7fa1fb
        7fa1fb

        When rendering translations, the centos-art script checks

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

        7fa1fb
        7fa1fb
        7fa1fb

        3.36.2.8 Translation (Pre-)Rendering Configuration Scripts

        7fa1fb
        7fa1fb

        When the centos-art script finds a translation template

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

        7fa1fb

        Translation pre-rendering configuration scripts are stored under

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

        7fa1fb

        Bash translation pre-rendering configuration scripts look like the

        7fa1fb
        following:
        7fa1fb

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

        Translation pre-rendering scripts are function scripts loaded and

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

        7fa1fb
        trunk/Translations/Identity/Brands
        7fa1fb
        7fa1fb

        and the entry inside the translation pre-rendering configuration

        7fa1fb
        structure would be:
        7fa1fb

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

        Once the centos-art script detects that translation

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

        7fa1fb
        info

        Note

        Translation pre-rendering configuration files have the

        7fa1fb
        following form:
        7fa1fb

        render.conf.extension
        7fa1fb

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

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

        7fa1fb
        7fa1fb

        As we are using Bash implementation to describe the translation

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

        7fa1fb
        7fa1fb
        7fa1fb

        3.36.2.9 Translation Rendering Default Functionality

        7fa1fb
        7fa1fb

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

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

        7fa1fb

        The translation rendering default functionality takes template

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

        7fa1fb
        info

        Note

        Release-specific replacement commands are standardized

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

        7fa1fb
        7fa1fb
        4a9d2a
        2dc146
        63f275

        3.36.3 Usage

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

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

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

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

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

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

        7fa1fb
        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
        [ << ]
        7fa1fb
        [ Up ]
        7fa1fb
        [ >> ]
        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>