diff --git a/Automation/Modules/Locale/Manuals/centos-art.sh-locale.asciidoc b/Automation/Modules/Locale/Manuals/centos-art.sh-locale.asciidoc new file mode 100644 index 0000000..0c6e85f --- /dev/null +++ b/Automation/Modules/Locale/Manuals/centos-art.sh-locale.asciidoc @@ -0,0 +1,113 @@ +centos-art.sh-locale(1) +======================= + +Name +---- +centos-art.sh-locale - Retrieve, edit and delete translation files for +images, documents and automation scripts. + +Synopsis +-------- + +centos-art.sh locale [OPTIONS] [DIRECTORY ...|FILE ...] + +Description +----------- + +The *locale* produces translations files for images, documents and +automation scripts based on the current locale information. In order +to produce locale-specific translation files, the current language +information set by the LANG environment variable must be different to +English (`en'). If the current language is English, the *locale* +module ends its execution with an error message. When the current +language is different to English, the *locale* looks for source files, +based on the arguments you passed through the command-line. + +When the argument you provided is a ``DIRECTORY'', the *locale* module +looks for configuration files inside it and produces translation files +based on the *render-from* and *locale-from* variables set in there. +On the other hand, when a ``FILE'' is provided, it takes the file +extension (i.e., the characters after the last dot in the file name) +and looks recursively in the file's directory for all the files that +have the same file extension the ``FILE'' does, and builds the list of +source files that will be used to produce the translation files. In +this case, the translation files are stored in a ``Locales'' +directory, at the same level of the ``FILE'' you provided as argument +to *locale* module's command-line. + +Translation files are the files we use to store translatable strings. +These files can be either portable objects (`.po'), machine objects +(`.po') or portable object templates (`.pot'). Machine objects are +built from portable objects. Portable objects are built from portable +object templates (`.pot'). Portable object templates are built using +*xgettext* or *xml2po* programs, according to the source files you are +retrieving translatable strings from. From these files, portable +objects (`.po') are used by *render* module to produce both localized +images and localized documentation while machine objects (`.mo') are +used by *gettext* program to produce localized output messages from +automation scripts. + +Options +------- + +The *locale* module accepts the following options: + +*-h, --help*:: +*--filter="REGEX"*:: + When ``DIRECTORY'' is passed as argument, this option reduces the + number of section blocks inside configuration files the *locale* + module will take for processing by using the ``REGEX'' value is a + regular expression pattern to match one or more section names + inside the configuration files found under ``DIRECTORY''. When + ``FILE'' is passed as argument, in the other hand, it limits the + number of files that will be set in the list of source files used + to build the final translation files. +*--update*:: +*--edit*:: +*--delete*:: + +Localizing Image Files +---------------------- + +Hi + +Localizing Documentation Files +------------------------------ + +Hi + +Localizing Automation Scripts +----------------------------- + +Hi + +Author +------ + +Written by mailto:al@centos.org.cu[Alain Reguera Delgado] + +Copyright +--------- + +Copyright (C) 2009-2013 The CentOS Project + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +See Also +-------- + +centos-art.sh(1), centos-art.sh-render(1), gettext(1) + +// vim: set syntax=asciidoc: diff --git a/Automation/Modules/Locale/Manuals/centos-art.sh-locale.asciidoc.pot b/Automation/Modules/Locale/Manuals/centos-art.sh-locale.asciidoc.pot new file mode 100644 index 0000000..80649dc --- /dev/null +++ b/Automation/Modules/Locale/Manuals/centos-art.sh-locale.asciidoc.pot @@ -0,0 +1,168 @@ +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2013-08-06 01:51-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "centos-art.sh-locale" +msgstr "" + +msgid "1" +msgstr "" + +msgid "" +"Retrieve, edit and delete translation files for images, documents " +"and automation scripts." +msgstr "" + +msgid "centos-art.sh locale [OPTIONS] [DIRECTORY …|FILE …]" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "" +"The locale produces " +"translations files for images, documents and automation scripts " +"based on the current locale information. In order to produce locale-" +"specific translation files, the current language information set by " +"the LANG environment variable must be different to English (`en'). " +"If the current language is English, the locale module ends its execution with an error " +"message. When the current language is different to English, the " +"locale looks for source files, " +"based on the arguments you passed through the command-line." +msgstr "" + +msgid "" +"When the argument you provided is a “DIRECTORY”, the locale module looks for configuration files " +"inside it and produces translation files based on the render-from and locale-from variables set in there. On the other " +"hand, when a “FILE” is provided, it takes the file extension (i.e., " +"the characters after the last dot in the file name) and looks " +"recursively in the file's directory for all the files that have the " +"same file extension the “FILE” does, and builds the list of source " +"files that will be used to produce the translation files. In this " +"case, the translation files are stored in a “Locales” directory, at " +"the same level of the “FILE” you provided as argument to locale module's command-line." +msgstr "" + +msgid "" +"Translation files are the files we use to store translatable " +"strings. These files can be either portable objects (." +"po'), machine objects (.po') or portable object templates " +"(.pot'). Machine objects are built from portable objects. " +"Portable objects are built from portable object templates (.pot'). Portable object templates are built using xgettext or xml2po programs, according to the source files you " +"are retrieving translatable strings from. From these files, " +"portable objects (.po') are used by render module to produce both localized images and " +"localized documentation while machine objects (.mo') are " +"used by gettext program to " +"produce localized output messages from automation scripts." +msgstr "" + +msgid "Options" +msgstr "" + +msgid "" +"The locale module accepts the " +"following options:" +msgstr "" + +msgid "-h, --help" +msgstr "" + +msgid "--filter=\"REGEX\"" +msgstr "" + +msgid "" +"When “DIRECTORY” is passed as argument, this option reduces the " +"number of section blocks inside configuration files the locale module will take for processing " +"by using the “REGEX” value is a regular expression pattern to match " +"one or more section names inside the configuration files found " +"under “DIRECTORY”. When “FILE” is passed as argument, in the other " +"hand, it limits the number of files that will be set in the list of " +"source files used to build the final translation files." +msgstr "" + +msgid "--update" +msgstr "" + +msgid "--edit" +msgstr "" + +msgid "--delete" +msgstr "" + +msgid "Localizing Image Files" +msgstr "" + +#, no-wrap +msgid "" +"\n" +"Hi\n" +"\n" +"Localizing Documentation Files" +msgstr "" + +msgid "Hi" +msgstr "" + +msgid "Localizing Automation Scripts" +msgstr "" + +msgid "Author" +msgstr "" + +msgid "" +"Written by Alain Reguera " +"Delgado" +msgstr "" + +msgid "Copyright" +msgstr "" + +msgid "Copyright © 2009-2013 The CentOS Project" +msgstr "" + +msgid "" +"This program is free software; you can redistribute it and/or " +"modify it under the terms of the GNU General Public License as " +"published by the Free Software Foundation; either version 2 of the " +"License, or (at your option) any later version." +msgstr "" + +msgid "" +"This program is distributed in the hope that it will be useful, but " +"WITHOUT ANY WARRANTY; without even the implied warranty of " +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU " +"General Public License for more details." +msgstr "" + +msgid "" +"You should have received a copy of the GNU General Public License " +"along with this program; if not, write to the Free Software " +"Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA." +msgstr "" + +msgid "See Also" +msgstr "" + +msgid "centos-art.sh(1), centos-art.sh-render(1), gettext(1)" +msgstr "" + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2. +msgid "translator-credits" +msgstr "" diff --git a/Automation/Modules/Locale/Manuals/es_ES/centos-art.sh-locale.po b/Automation/Modules/Locale/Manuals/es_ES/centos-art.sh-locale.po new file mode 100644 index 0000000..c389a60 --- /dev/null +++ b/Automation/Modules/Locale/Manuals/es_ES/centos-art.sh-locale.po @@ -0,0 +1,169 @@ +msgid "" +msgstr "" +"Project-Id-Version: centos-art.sh 0.5\n" +"POT-Creation-Date: 2013-08-06 01:51-0400\n" +"PO-Revision-Date: 2013-08-06 01:51-0400\n" +"Last-Translator: Localization SIG \n" +"Language-Team: Spanish\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgid "centos-art.sh-locale" +msgstr "" + +msgid "1" +msgstr "" + +msgid "" +"Retrieve, edit and delete translation files for images, documents " +"and automation scripts." +msgstr "" + +msgid "centos-art.sh locale [OPTIONS] [DIRECTORY …|FILE …]" +msgstr "" + +msgid "Description" +msgstr "" + +msgid "" +"The locale produces " +"translations files for images, documents and automation scripts " +"based on the current locale information. In order to produce locale-" +"specific translation files, the current language information set by " +"the LANG environment variable must be different to English (`en'). " +"If the current language is English, the locale module ends its execution with an error " +"message. When the current language is different to English, the " +"locale looks for source files, " +"based on the arguments you passed through the command-line." +msgstr "" + +msgid "" +"When the argument you provided is a “DIRECTORY”, the locale module looks for configuration files " +"inside it and produces translation files based on the render-from and locale-from variables set in there. On the other " +"hand, when a “FILE” is provided, it takes the file extension (i.e., " +"the characters after the last dot in the file name) and looks " +"recursively in the file's directory for all the files that have the " +"same file extension the “FILE” does, and builds the list of source " +"files that will be used to produce the translation files. In this " +"case, the translation files are stored in a “Locales” directory, at " +"the same level of the “FILE” you provided as argument to locale module's command-line." +msgstr "" + +msgid "" +"Translation files are the files we use to store translatable " +"strings. These files can be either portable objects (." +"po'), machine objects (.po') or portable object templates " +"(.pot'). Machine objects are built from portable objects. " +"Portable objects are built from portable object templates (.pot'). Portable object templates are built using xgettext or xml2po programs, according to the source files you " +"are retrieving translatable strings from. From these files, " +"portable objects (.po') are used by render module to produce both localized images and " +"localized documentation while machine objects (.mo') are " +"used by gettext program to " +"produce localized output messages from automation scripts." +msgstr "" + +msgid "Options" +msgstr "" + +msgid "" +"The locale module accepts the " +"following options:" +msgstr "" + +msgid "-h, --help" +msgstr "" + +msgid "--filter=\"REGEX\"" +msgstr "" + +msgid "" +"When “DIRECTORY” is passed as argument, this option reduces the " +"number of section blocks inside configuration files the locale module will take for processing " +"by using the “REGEX” value is a regular expression pattern to match " +"one or more section names inside the configuration files found " +"under “DIRECTORY”. When “FILE” is passed as argument, in the other " +"hand, it limits the number of files that will be set in the list of " +"source files used to build the final translation files." +msgstr "" + +msgid "--update" +msgstr "" + +msgid "--edit" +msgstr "" + +msgid "--delete" +msgstr "" + +msgid "Localizing Image Files" +msgstr "" + +#, no-wrap +msgid "" +"\n" +"Hi\n" +"\n" +"Localizing Documentation Files" +msgstr "" + +msgid "Hi" +msgstr "" + +msgid "Localizing Automation Scripts" +msgstr "" + +msgid "Author" +msgstr "" + +msgid "" +"Written by Alain Reguera " +"Delgado" +msgstr "" + +msgid "Copyright" +msgstr "" + +msgid "Copyright © 2009-2013 The CentOS Project" +msgstr "" + +msgid "" +"This program is free software; you can redistribute it and/or " +"modify it under the terms of the GNU General Public License as " +"published by the Free Software Foundation; either version 2 of the " +"License, or (at your option) any later version." +msgstr "" + +msgid "" +"This program is distributed in the hope that it will be useful, but " +"WITHOUT ANY WARRANTY; without even the implied warranty of " +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU " +"General Public License for more details." +msgstr "" + +msgid "" +"You should have received a copy of the GNU General Public License " +"along with this program; if not, write to the Free Software " +"Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA." +msgstr "" + +msgid "See Also" +msgstr "" + +msgid "centos-art.sh(1), centos-art.sh-render(1), gettext(1)" +msgstr "" + +#. Put one translator per line, in the form of NAME , YEAR1, YEAR2. +msgid "translator-credits" +msgstr "" diff --git a/Automation/Modules/Locale/Manuals/render.conf b/Automation/Modules/Locale/Manuals/render.conf new file mode 100644 index 0000000..7e978b7 --- /dev/null +++ b/Automation/Modules/Locale/Manuals/render.conf @@ -0,0 +1,12 @@ +# +# This configuration files contains the information the render module +# needs to produce the asciidoc documentation in both manpage and +# xhtml format. +# +[centos-art.sh-locale] +render-type = "asciidoc" +render-flow = "manpage" +render-from = "centos-art.sh-locale.asciidoc" +locale-from = "${TCAR_SCRIPT_LANG_LC}/centos-art.sh-locale.po" +formats = "xhtml manpage" +mansect = "1" diff --git a/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Asciidoc/asciidoc.sh b/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Asciidoc/asciidoc.sh index ab82636..2b7ca10 100755 --- a/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Asciidoc/asciidoc.sh +++ b/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Asciidoc/asciidoc.sh @@ -1,32 +1,4 @@ #!/bin/bash -###################################################################### -# -# Modules/Locale/Modules/Update/Modules/Asciidoc/asciidoc.sh -- This -# module takes one or more asciidoc files as source and produces -# docbook temporal files for one of them. The docbook temporal files -# are used to create portable objects to different locale -# information. -# -# Written by: -# * Alain Reguera Delgado , 2013 -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -###################################################################### function asciidoc { diff --git a/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Sh/sh.sh b/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Sh/sh.sh index 5b10d58..5e8ea01 100755 --- a/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Sh/sh.sh +++ b/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Sh/sh.sh @@ -1,30 +1,4 @@ #!/bin/bash -# -# Modules/Locale/Modules/Update/Modules/Sh/sh.sh -- This function -# parses shell scripts source files under action value and retrieves -# translatable strings in order to creates/updates both the portable -# object template (.pot) and the portable object (.po) related. -# -# Written by: -# * Alain Reguera Delgado -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -###################################################################### function sh { diff --git a/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Svg/svg.sh b/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Svg/svg.sh index 86ae615..c17e1a4 100755 --- a/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Svg/svg.sh +++ b/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Svg/svg.sh @@ -1,30 +1,4 @@ #!/bin/bash -###################################################################### -# -# Modules/Locale/Modules/Svg/svg.sh -- This function parses -# XML-based files (e.g., scalable vector graphics), retrieves -# translatable strings and creates/update gettext portable objects. -# -# Written by: -# * Alain Reguera Delgado -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -###################################################################### function svg { diff --git a/Automation/Modules/Locale/Modules/Actions/Modules/Update/update.conf.sh b/Automation/Modules/Locale/Modules/Actions/Modules/Update/update.conf.sh index bd6d681..b4677d6 100755 --- a/Automation/Modules/Locale/Modules/Actions/Modules/Update/update.conf.sh +++ b/Automation/Modules/Locale/Modules/Actions/Modules/Update/update.conf.sh @@ -1,2 +1,3 @@ #!/bin/bash + declare -x TCAR_SCRIPT_MODULES_BASEDIR=${MODULE_DIR_MODULES} diff --git a/Automation/Modules/Locale/Modules/Actions/actions.conf.sh b/Automation/Modules/Locale/Modules/Actions/actions.conf.sh index 9253d8b..d3a5926 100755 --- a/Automation/Modules/Locale/Modules/Actions/actions.conf.sh +++ b/Automation/Modules/Locale/Modules/Actions/actions.conf.sh @@ -1,2 +1,3 @@ #!/bin/bash + declare -x TCAR_SCRIPT_MODULES_BASEDIR=${MODULE_DIR_MODULES} diff --git a/Automation/Modules/Locale/Modules/Directory/directory.sh b/Automation/Modules/Locale/Modules/Directory/directory.sh index 3819940..ea6819c 100755 --- a/Automation/Modules/Locale/Modules/Directory/directory.sh +++ b/Automation/Modules/Locale/Modules/Directory/directory.sh @@ -1,4 +1,5 @@ #!/bin/bash + function directory { # Sanitate non-option arguments to be sure they match the diff --git a/Automation/Modules/Locale/Modules/File/file.sh b/Automation/Modules/Locale/Modules/File/file.sh index 3b18fe0..9ab21eb 100755 --- a/Automation/Modules/Locale/Modules/File/file.sh +++ b/Automation/Modules/Locale/Modules/File/file.sh @@ -21,9 +21,6 @@ function file { local PO_FILE=${LOCALE_FROM}/${TCAR_SCRIPT_LANG_LC}/${FILE_NAME}.po local MO_FILE=${LOCALE_FROM}/${TCAR_SCRIPT_LANG_LC}/LC_MESSAGES/${FILE_NAME}.mo - # The locale's action modules relay in specific environment - # variables for working. From this point on we set such - # variable's name convention, using the information set above. file_getConfiguration } diff --git a/Automation/Modules/Locale/Modules/File/file_getConfiguration.sh b/Automation/Modules/Locale/Modules/File/file_getConfiguration.sh index 176d14d..183a87f 100755 --- a/Automation/Modules/Locale/Modules/File/file_getConfiguration.sh +++ b/Automation/Modules/Locale/Modules/File/file_getConfiguration.sh @@ -1,4 +1,5 @@ #!/bin/bash + function file_getConfiguration { # Define the rendition do you want to perform. diff --git a/Automation/Modules/Locale/locale.conf.sh b/Automation/Modules/Locale/locale.conf.sh index 9bd3460..6accc79 100755 --- a/Automation/Modules/Locale/locale.conf.sh +++ b/Automation/Modules/Locale/locale.conf.sh @@ -1,4 +1,5 @@ #!/bin/bash + declare -x MODULE_VERSION='0.1' declare -x LOCALE_ACTIONS='' declare -x TCAR_SCRIPT_MODULES_BASEDIR=${MODULE_DIR_MODULES} diff --git a/Automation/Modules/Locale/locale.sh b/Automation/Modules/Locale/locale.sh index 5d977ce..908413a 100755 --- a/Automation/Modules/Locale/locale.sh +++ b/Automation/Modules/Locale/locale.sh @@ -1,11 +1,15 @@ #!/bin/bash ###################################################################### # -# locale.sh -- This function provides internationalization features -# for centos-art.sh script through GNU gettext standard processes. +# Initialize the locale module. This module let you edit, delete and +# create/update translation files using gettext procedures. The +# translation files produced by this module are used by render +# module to produce localized images, documentation and automation +# scripts output messages. # # Written by: -# * Alain Reguera Delgado +# * Alain Reguera Delgado , 2009-2013 +# Key fingerprint = D67D 0F82 4CBD 90BC 6421 DF28 7CCE 757C 17CA 3951 # # Copyright (C) 2009-2013 The CentOS Project # diff --git a/Automation/Modules/Locale/locale_convertPoToMo.sh b/Automation/Modules/Locale/locale_convertPoToMo.sh index 98bafde..a9e8d42 100755 --- a/Automation/Modules/Locale/locale_convertPoToMo.sh +++ b/Automation/Modules/Locale/locale_convertPoToMo.sh @@ -1,27 +1,4 @@ #!/bin/bash -# -# locale_convertPoToMo.sh -- This function creates/updates -# machine objects (.mo) from portable objects (.po). -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or (at -# your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- function locale_convertPoToMo { diff --git a/Automation/Modules/Locale/locale_convertPotToPo.sh b/Automation/Modules/Locale/locale_convertPotToPo.sh index 035ec45..e428261 100755 --- a/Automation/Modules/Locale/locale_convertPotToPo.sh +++ b/Automation/Modules/Locale/locale_convertPotToPo.sh @@ -1,32 +1,4 @@ #!/bin/bash -###################################################################### -# -# Modules/Locale/locale_convertPotToPo.sh -- This function -# initializes the portable object when it doesn't exist. When the -# portable object does exist, it is updated instead. In both cases, -# the portable object template is used as source to merge changes -# inside the portable object. -# -# Written by: -# * Alain Reguera Delgado -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or (at -# your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -###################################################################### function locale_convertPotToPo { diff --git a/Automation/Modules/Locale/locale_convertXmlToPot.sh b/Automation/Modules/Locale/locale_convertXmlToPot.sh index 34c7d72..67b5c7b 100755 --- a/Automation/Modules/Locale/locale_convertXmlToPot.sh +++ b/Automation/Modules/Locale/locale_convertXmlToPot.sh @@ -1,4 +1,5 @@ #!/bin/bash + function locale_convertXmlToPot { local XML_FILE=${1} diff --git a/Automation/Modules/Locale/locale_getCountryName.sh b/Automation/Modules/Locale/locale_getCountryName.sh index 874ae24..3795f70 100755 --- a/Automation/Modules/Locale/locale_getCountryName.sh +++ b/Automation/Modules/Locale/locale_getCountryName.sh @@ -1,27 +1,4 @@ #!/bin/bash -# -# locale_getLanguageName.sh -- This function takes the environment -# country code as reference and outputs the related country name. -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or (at -# your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- function locale_getCountryName { diff --git a/Automation/Modules/Locale/locale_getLanguageName.sh b/Automation/Modules/Locale/locale_getLanguageName.sh index a73730d..42410ba 100755 --- a/Automation/Modules/Locale/locale_getLanguageName.sh +++ b/Automation/Modules/Locale/locale_getLanguageName.sh @@ -1,27 +1,4 @@ #!/bin/bash -# -# locale_getLanguageName.sh -- This function takes the environment -# language code as reference and outputs the related language name. -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or (at -# your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- function locale_getLanguageName { diff --git a/Automation/Modules/Locale/locale_getOptions.sh b/Automation/Modules/Locale/locale_getOptions.sh index d72a350..03e9ad7 100755 --- a/Automation/Modules/Locale/locale_getOptions.sh +++ b/Automation/Modules/Locale/locale_getOptions.sh @@ -1,30 +1,4 @@ #!/bin/bash -###################################################################### -# -# locale_getOptions.sh -- This function interprets option parameters -# passed to `locale' functionality and defines action names -# accordingly. -# -# Written by: -# * Alain Reguera Delgado -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or (at -# your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -###################################################################### function locale_getOptions { diff --git a/Automation/Modules/Locale/locale_updatePoMetadata.sh b/Automation/Modules/Locale/locale_updatePoMetadata.sh index 5aeefc5..5115e54 100755 --- a/Automation/Modules/Locale/locale_updatePoMetadata.sh +++ b/Automation/Modules/Locale/locale_updatePoMetadata.sh @@ -1,31 +1,4 @@ #!/bin/bash -###################################################################### -# -# locale_updatePoMetadata.sh -- This function sanitates .pot -# and .po files to use common translation markers inside top -# comment. Later, replacement of common translation markers is -# applied to set the final information. -# -# Written by: -# * Alain Reguera Delgado -# -# Copyright (C) 2009-2013 The CentOS Project -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO_FILESE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -###################################################################### function locale_updatePoMetadata {