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

4c79b5
4c79b5
<html>
09d4f2
09d4f2
09d4f2
The CentOS Artwork Repository exists to organize and automate The
09d4f2
CentOS Project corporate visual identity (, to
09d4f2
start on).
4c79b5
6c4982
Copyright C 2009, 2010 Alain Reguera Delgado. 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
-->
49b888
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>
c6292c
<title>CentOS Artwork Repository: 3.50 trunk/Translations</title>
4c79b5
c6292c
<meta name="description" content="CentOS Artwork Repository: 3.50 trunk/Translations">
c6292c
<meta name="keywords" content="CentOS Artwork Repository: 3.50 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
035049
[ < ]
035049
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
c6292c
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
c6292c
[Index]
4c79b5
[ ? ]
4c79b5
c6292c
035049
c6292c

3.50 trunk/Translations

cb2a5d
cb2a5d
035049
6aec21

3.50.1 Goals

c9b54d
c6292c

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

c6292c

54b5a5
    c6292c
  • Organize translation files.
  • c6292c
  • Organize translation templates used to produce translation files.
  • 54b5a5
    54b5a5
    55c2ff
    035049
    008ee0

    3.50.2 Description

    55c2ff
    c6292c

    When you create artwork for CentOS distribution you find that some

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

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

      In order to aliviate maintainance of artwork production for such

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

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

        Inside CentOS Artwork Repository, the artworks' translation production

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

        c6292c

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

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

        035049
        035049
        c6292c

        3.50.2.1 Translation Entries

        63f275
        c6292c

        Translation entries exists for each artwork you want to produce.

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

        c6292c

        When translation entries are empty directories, the identity entry is

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

        c6292c

        When translation entries contain translation files, the translation

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

        c6292c

        To find out correspondence between translation entries and identity

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

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

        and its translation entry is:

        c6292c

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

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

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

        c6292c
        info

        Note

        Translation entries related to identity entries under

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

        c6292c

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

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

        63f275
        c6292c

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

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

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

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

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

        c6292c

        Trying to make things plain and simple: inside CentOS Artwork

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

        63f275
        49b888
        c6292c

        3.50.2.2 Translation Markers

        c6292c

        c6292c
        c6292c

        c6292c

        Translation markers are used in "Theme Model Designs" and

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

        c6292c
        c6292c

        Translation Markers

        c6292c
        c6292c

        Figure 3.15: The image rendering flow.

        c6292c
        c6292c

        c6292c

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

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

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

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

        c6292c
        release is represented by the N letter.
        c6292c

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

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

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

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

        Replace the full release of CentOS distribution. It is

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

        c6292c
        c6292c
        c6292c

        Specific translation markers convenctions are described inside

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

        c6292c

        Translation markers standardization creates a common point of

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

        c6292c
        c6292c
        c6292c

        3.50.2.3 Translation Files

        c6292c
        c6292c

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

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

        c6292c

        For example, the Firstboot artwork of CentOS distribution uses the

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

        c6292c

        If we want to produce Firstboot artwork for different major releases

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

        c6292c
        info

        Note

        The monolithic visual identity is implemented using

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

        c6292c
        c6292c

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

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

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

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

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

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

        The above command produces the following translation entiry:

        c6292c

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

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

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

        c6292c
        c6292c
        c6292c

        3.50.2.4 Template Translation Files

        c6292c
        c6292c

        Template translation files are translation files stored inside

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

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

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

        c6292c
        translation file and looks like:
        c6292c

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

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

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

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

        If template translation files are not empty, replacement commands

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

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

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

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

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

        Note

        Release-specific translation directories preserve

        c6292c
        template translation directory structure and file names.
        c6292c

        c6292c
        c6292c

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

        c6292c
        following:
        c6292c

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

        and, after render the translation entry, specific translation files

        c6292c
        look like the following:
        c6292c

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

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

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

        c6292c
        s/REGEXP/REPLACEMENT/FLAGS
        c6292c
        c6292c

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

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

        c6292c

        The s command is probably the most important in

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

        c6292c

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

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

        c6292c
        Info

        Tip

        More information about how to use sed's

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

        info sed
        c6292c
        c6292c
        c6292c

        Inside translation files, you can use translation markers not only

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

        c6292c
        c6292c
        c6292c

        3.50.2.5 Common Translation Files

        c6292c
        c6292c

        Common translation files contain common translations or no

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

        c6292c

        Translation entries, with common translation files inside, look like

        c6292c
        the following:
        c6292c

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

        3.50.2.6 Specific Translation Files

        c6292c
        c6292c

        Specific translation files contain specific translations for their

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

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

        3.50.2.7 Translation Rendering

        c6292c
        c6292c

        When rendering translations, the centos-art script checks

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

        c6292c
        c6292c
        c6292c

        3.50.2.8 Translation (Pre-)Rendering Configuration Scripts

        c6292c
        c6292c

        When the centos-art script finds a translation template

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

        c6292c

        Translation pre-rendering configuration scripts are stored under

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

        c6292c

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

        c6292c
        following:
        c6292c

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

        Translation pre-rendering scripts are function scripts loaded and

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

        c6292c
        trunk/Translations/Identity/Brands
        c6292c
        c6292c

        and the entry inside the translation pre-rendering configuration

        c6292c
        structure would be:
        c6292c

        c6292c
        trunk/Scripts/Bash/Config/Identity/Brands
        c6292c
        c6292c

        Once the centos-art script detects that translation

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

        c6292c
        info

        Note

        Translation pre-rendering configuration files have the

        c6292c
        following form:
        c6292c

        render.conf.extension
        c6292c

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

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

        c6292c
        c6292c

        As we are using Bash implementation to describe the translation

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

        c6292c
        c6292c
        c6292c

        3.50.2.9 Translation Rendering Default Functionality

        c6292c
        c6292c

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

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

        c6292c

        The translation rendering default functionality takes template

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

        c6292c
        info

        Note

        Release-specific replacement commands are standardized

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

        c6292c
        c6292c
        c6292c
        c6292c
        c6292c

        3.50.3 Usage

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

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

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

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

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

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

        c6292c
        c6292c
        c6292c
        c6292c
        4c79b5

        3.50.4 See also

        4c79b5
        c6292c
        c6292c
        3.52 trunk/Translations/Identity/Brands  
        c6292c
        c6292c
        3.54 trunk/Translations/Identity/Fonts  
        c6292c
        c6292c
        3.55 trunk/Translations/Identity/Models  
        c6292c
        c6292c
        3.56 trunk/Translations/Identity/Release  
        c6292c
        c6292c
        3.57 trunk/Translations/Identity/Themes  
        c6292c
        c6292c
        3.1 trunk/Identity  
        c6292c
        c6292c
        300762
        300762
        4c79b5
        c6292c
        [ < ]
        c6292c
        [ > ]
        4c79b5
           
        4c79b5
        [ << ]
        035049
        [ Up ]
        c6292c
        [ >> ]
        4c79b5
        4c79b5

        4c79b5
         <font size="-1">
        49b888
          This document was generated on December, 5 2010 using texi2html 1.76.
        4c79b5
         </font>
        4c79b5
         
        4c79b5
        4c79b5

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