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

4c79b5
4c79b5
<html>
4c79b5
4c79b5
can you do inside it.
4c79b5
4c79b5
Copyright C 2009, 2010 CentOS Artwork SIG. All rights
4c79b5
reserved.
4c79b5
4c79b5
Permission is granted to copy, distribute and/or modify this document
4c79b5
under the terms of the GNU Free Documentation License, Version 1.2 or
4c79b5
any later version published by the Free Software Foundation; with no
4c79b5
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
4c79b5
copy of the license is included in the section entitled GNU Free
4c79b5
Documentation License.  
4c79b5
-->
8d4371
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>
6ba043
<title>CentOS Artwork Repository: 3.53 trunk/Translations</title>
4c79b5
6ba043
<meta name="description" content="CentOS Artwork Repository: 3.53 trunk/Translations">
6ba043
<meta name="keywords" content="CentOS Artwork Repository: 3.53 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
d06c98
[ < ]
d06c98
[ > ]
4c79b5
   
300762
[ << ]
300762
[ Up ]
d06c98
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
d06c98
[Index]
4c79b5
[ ? ]
4c79b5
6ba043
d06c98
6ba043

3.53 trunk/Translations

300762
300762
d06c98
300762

3.53.1 Goals

300762
6ba043

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

6ba043

5fb024
    6ba043
  • Organize translation files.
  • 6ba043
  • Organize translation templates used to produce translation files.
  • 5fb024
    300762
    5fb024
    d06c98
    300762

    3.53.2 Description

    300762
    6ba043

    When you create artwork for CentOS distribution you find that some

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

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

      In order to aliviate maintainance of artwork production for such

      6ba043
      environment, we divided artwork production in three production lines:
      6ba043

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

        Inside CentOS Artwork Repository, the artworks' translation production

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

        6ba043

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

        6ba043
        entries" to organize artworks' "translation files" and artworks'
        6ba043
        "translation templates".
        6ba043

        6ba043
        d06c98
        6ba043

        3.53.2.1 Translation Entries

        6ba043
        6ba043

        Translation entries exists for each artwork you want to produce.

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

        6ba043

        When translation entries are empty directories, the identity entry is

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

        6ba043

        When translation entries contain translation files, the translation

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

        6ba043

        To find out correspondence between translation entries and identity

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

        6ba043
        trunk/Identity/Themes/Motifs/Modern/Distro/Anaconda/Progress
        6ba043
        6ba043

        and its translation entry is:

        6ba043

        6ba043
        trunk/Translations/Identity/Themes/Distro/Anaconda/Progress
        6ba043
        6ba043

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

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

        6ba043
        info

        Note

        Translation entries related to identity entries under

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

        6ba043

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

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

        6ba043
        6ba043

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

        6ba043
        identity entries. For example the following identity entries:
        6ba043

        6ba043
        trunk/Identity/Themes/Motifs/Modern/Distro/Anaconda/Progress/
        6ba043
        trunk/Identity/Themes/Motifs/TreeFlower/Distro/Anaconda/Progress/
        6ba043
        trunk/Identity/Themes/Motifs/Mettle/Distro/Anaconda/Progress/
        6ba043
        6ba043

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

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

        6ba043

        Trying to make things plain and simple: inside CentOS Artwork

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

        6ba043
        d06c98
        6ba043

        3.53.2.2 Translation Markers

        6ba043

        6ba043
        6ba043

        6ba043

        Translation markers are used in "Theme Model Designs" and

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

        6ba043
        8d4371

        Translation Markers

        6ba043
        6ba043

        Figure 3.6: The image rendering flow.

        6ba043
        6ba043

        6ba043

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

        6ba043
        we use the following to represent releases of CentOS distribution:
        6ba043

        6ba043
        6ba043
        <samp>`=MINOR_RELEASE='</samp>
        6ba043

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

        6ba043
        release is represented by the N letter.
        6ba043

        6ba043
        <samp>`=MAJOR_RELEASE='</samp>
        6ba043

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

        6ba043
        the major release is represented by the M letter.
        6ba043

        6ba043
        <samp>`=RELEASE='</samp>
        6ba043

        Replace the full release of CentOS distribution. It is

        6ba043
        <samp>`=MAJOR_RELEASE=.=MINOR_RELEASE='</samp> basically. 
        6ba043

        6ba043
        6ba043
        6ba043

        Specific translation markers convenctions are described inside

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

        6ba043

        Translation markers standardization creates a common point of

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

        6ba043
        d06c98
        6ba043

        3.53.2.3 Translation Files

        6ba043
        6ba043

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

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

        6ba043

        For example, the Firstboot artwork of CentOS distribution uses the

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

        6ba043

        If we want to produce Firstboot artwork for different major releases

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

        6ba043
        info

        Note

        The monolithic visual identity is implemented using

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

        6ba043
        6ba043

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

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

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

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

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

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

        The above command produces the following translation entiry:

        6ba043

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

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

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

        6ba043
        d06c98
        6ba043

        3.53.2.4 Template Translation Files

        6ba043
        6ba043

        Template translation files are translation files stored inside

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

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

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

        6ba043
        translation file and looks like:
        6ba043

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

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

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

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

        If template translation files are not empty, replacement commands

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

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

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

        6ba043
        releases, the translation entry would look like the following:
        6ba043

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

        Note

        Release-specific translation directories preserve

        6ba043
        template translation directory structure and file names.
        6ba043

        6ba043
        6ba043

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

        6ba043
        following:
        6ba043

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

        and, after render the translation entry, specific translation files

        6ba043
        look like the following:
        6ba043

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

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

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

        6ba043
        s/REGEXP/REPLACEMENT/FLAGS
        6ba043
        6ba043

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

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

        6ba043

        The s command is probably the most important in

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

        6ba043

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

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

        6ba043
        Info

        Tip

        More information about how to use sed's

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

        info sed
        6ba043
        6ba043
        6ba043

        Inside translation files, you can use translation markers not only

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

        6ba043
        d06c98
        6ba043

        3.53.2.5 Common Translation Files

        6ba043
        6ba043

        Common translation files contain common translations or no

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

        6ba043

        Translation entries, with common translation files inside, look like

        6ba043
        the following:
        6ba043

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

        3.53.2.6 Specific Translation Files

        6ba043
        6ba043

        Specific translation files contain specific translations for their

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

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

        3.53.2.7 Translation Rendering

        6ba043
        6ba043

        When rendering translations, the centos-art script checks

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

        6ba043
        d06c98
        6ba043

        3.53.2.8 Translation (Pre-)Rendering Configuration Scripts

        6ba043
        6ba043

        When the centos-art script finds a translation template

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

        6ba043

        Translation pre-rendering configuration scripts are stored under

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

        6ba043

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

        6ba043
        following:
        6ba043

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

        Translation pre-rendering scripts are function scripts loaded and

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

        6ba043
        trunk/Translations/Identity/Brands
        6ba043
        6ba043

        and the entry inside the translation pre-rendering configuration

        6ba043
        structure would be:
        6ba043

        6ba043
        trunk/Scripts/Bash/Config/Identity/Brands
        6ba043
        6ba043

        Once the centos-art script detects that translation

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

        6ba043
        info

        Note

        Translation pre-rendering configuration files have the

        6ba043
        following form:
        6ba043

        render.conf.extension
        6ba043

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

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

        6ba043
        6ba043

        As we are using Bash implementation to describe the translation

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

        300762
        d06c98
        6ba043

        3.53.2.9 Translation Rendering Default Functionality

        6ba043
        6ba043

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

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

        6ba043

        The translation rendering default functionality takes template

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

        6ba043
        info

        Note

        Release-specific replacement commands are standardized

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

        300762
        5fb024
        300762
        d06c98
        6ba043

        3.53.3 Usage

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

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

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

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

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

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

        6ba043
        6ba043
        6ba043
        6ba043
        d06c98
        300762

        3.53.4 See also

        300762
        5fb024
        d06c98
        3.55 trunk/Translations/Identity/Brands  
        5fb024
        d06c98
        3.57 trunk/Translations/Identity/Fonts  
        5fb024
        d06c98
        3.58 trunk/Translations/Identity/Models  
        5fb024
        d06c98
        3.59 trunk/Translations/Identity/Release  
        5fb024
        d06c98
        3.60 trunk/Translations/Identity/Themes  
        5fb024
        5fb024
        3.1 trunk/Identity  
        5fb024
        5fb024
        4c79b5
        4c79b5
        4c79b5
        d06c98
        [ < ]
        d06c98
        [ > ]
        4c79b5
           
        300762
        [ << ]
        d06c98
        [ Up ]
        d06c98
        [ >> ]
        4c79b5
        4c79b5

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

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