diff --git a/Automation/Modules/Locale/Modules/Directory/Locales/directory.sh.pot b/Automation/Modules/Locale/Modules/Directory/Locales/directory.sh.pot new file mode 100644 index 0000000..ce42ae8 --- /dev/null +++ b/Automation/Modules/Locale/Modules/Directory/Locales/directory.sh.pot @@ -0,0 +1,29 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR The CentOS Artwork SIG +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: directory.sh 0.6\n" +"Report-Msgid-Bugs-To: centos-l10n-es@centos.org.cu\n" +"POT-Creation-Date: 2013-10-07 16:47-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=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: /home/al/Projects/centos-artwork.git-localhost/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh:121 +#, sh-format +msgid "" +"Translatable strings were extracted from $TOTAL_FILES_PROCESSED " +"file." +msgid_plural "" +"Translatable strings were extracted from $TOTAL_FILES_PROCESSED " +"files." +msgstr[0] "" +msgstr[1] "" diff --git a/Automation/Modules/Locale/Modules/Directory/Locales/es_ES/directory.sh.po b/Automation/Modules/Locale/Modules/Directory/Locales/es_ES/directory.sh.po new file mode 100644 index 0000000..42e339e --- /dev/null +++ b/Automation/Modules/Locale/Modules/Directory/Locales/es_ES/directory.sh.po @@ -0,0 +1,28 @@ +# Spanish translations for directory.sh package +# Traducciones al español para el paquete directory.sh. +# Copyright (C) 2013 The CentOS Artwork SIG +# This file is distributed under the same license as the directory.sh package. +# Automatically generated, 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: directory.sh 0.6\n" +"Report-Msgid-Bugs-To: centos-l10n-es@centos.org.cu\n" +"POT-Creation-Date: 2013-10-07 16:47-0400\n" +"PO-Revision-Date: 2013-10-07 16:47-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" + +#: Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh:121 +#, sh-format +msgid "Translatable strings were extracted from $TOTAL_FILES_PROCESSED file." +msgid_plural "" +"Translatable strings were extracted from $TOTAL_FILES_PROCESSED files." +msgstr[0] "" +"Las cadenas traducibles fueron extraidas de $TOTAL_FILES_PROCESSED fichero." +msgstr[1] "" +"Las cadenas traducibles fueron extraidas de $TOTAL_FILES_PROCESSED ficheros." diff --git a/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh b/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh index 4a8baa3..5d1f944 100755 --- a/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh +++ b/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh @@ -115,6 +115,14 @@ function directory_getConfiguration { done + # Print report about how many files were processed. + if [[ ${LOCALE_FLAG_REPORT} == 'true' ]];then + local TOTAL_FILES_PROCESSED=${#SECTIONS[*]} + tcar_printMessage "`eval_ngettext "Translatable strings were extracted from \\\$TOTAL_FILES_PROCESSED file." \ + "Translatable strings were extracted from \\\$TOTAL_FILES_PROCESSED files." \ + ${TOTAL_FILES_PROCESSED}`" --as-banner-line + fi + # Reset array variables and their counters to avoid undesired # concatenations between configuration files. unset COUNTER diff --git a/Automation/Modules/Locale/Modules/File/Locales/es_ES/file.sh.po b/Automation/Modules/Locale/Modules/File/Locales/es_ES/file.sh.po new file mode 100644 index 0000000..505944c --- /dev/null +++ b/Automation/Modules/Locale/Modules/File/Locales/es_ES/file.sh.po @@ -0,0 +1,28 @@ +# Spanish translations for file.sh package +# Traducciones al español para el paquete file.sh. +# Copyright (C) 2013 The CentOS Artwork SIG +# This file is distributed under the same license as the file.sh package. +# Automatically generated, 2013. +# +msgid "" +msgstr "" +"Project-Id-Version: file.sh 0.6\n" +"Report-Msgid-Bugs-To: centos-l10n-es@centos.org.cu\n" +"POT-Creation-Date: 2013-10-07 16:50-0400\n" +"PO-Revision-Date: 2013-10-07 16:50-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" + +#: Automation/Modules/Locale/Modules/File/file.sh:91 +#, sh-format +msgid "Translatable strings were extracted from $TOTAL_FILES_PROCESSED file." +msgid_plural "" +"Translatable strings were extracted from $TOTAL_FILES_PROCESSED files." +msgstr[0] "" +"Las cadenas traducibles fueron extraidas de $TOTAL_FILES_PROCESSED fichero." +msgstr[1] "" +"Las cadenas traducibles fueron extraidas de $TOTAL_FILES_PROCESSED ficheros." diff --git a/Automation/Modules/Locale/Modules/File/Locales/file.sh.pot b/Automation/Modules/Locale/Modules/File/Locales/file.sh.pot new file mode 100644 index 0000000..0daf44c --- /dev/null +++ b/Automation/Modules/Locale/Modules/File/Locales/file.sh.pot @@ -0,0 +1,29 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR The CentOS Artwork SIG +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: file.sh 0.6\n" +"Report-Msgid-Bugs-To: centos-l10n-es@centos.org.cu\n" +"POT-Creation-Date: 2013-10-07 16:50-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=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#: /home/al/Projects/centos-artwork.git-localhost/Automation/Modules/Locale/Modules/File/file.sh:91 +#, sh-format +msgid "" +"Translatable strings were extracted from $TOTAL_FILES_PROCESSED " +"file." +msgid_plural "" +"Translatable strings were extracted from $TOTAL_FILES_PROCESSED " +"files." +msgstr[0] "" +msgstr[1] "" diff --git a/Automation/Modules/Locale/Modules/File/file.sh b/Automation/Modules/Locale/Modules/File/file.sh index ccbb9cc..3145382 100755 --- a/Automation/Modules/Locale/Modules/File/file.sh +++ b/Automation/Modules/Locale/Modules/File/file.sh @@ -85,4 +85,12 @@ function file { # Process configuration variables through locale's actions module. tcar_setModuleEnvironment -m "actions" -t "sib-module" + # Print report about how many files were processed. + if [[ ${LOCALE_FLAG_REPORT} == 'true' ]];then + local TOTAL_FILES_PROCESSED=${#SOURCES[*]} + tcar_printMessage "`eval_ngettext "Translatable strings were extracted from \\\$TOTAL_FILES_PROCESSED file." \ + "Translatable strings were extracted from \\\$TOTAL_FILES_PROCESSED files." \ + ${TOTAL_FILES_PROCESSED}`" --as-banner-line + fi + } diff --git a/Automation/Modules/Locale/locale.sh b/Automation/Modules/Locale/locale.sh index bd1819a..f8881cc 100755 --- a/Automation/Modules/Locale/locale.sh +++ b/Automation/Modules/Locale/locale.sh @@ -40,6 +40,9 @@ function locale { LOCALE_FLAG_SIBLINGS="false" LOCALE_FLAG_ALL="false" + # Define flags controlling locale module's processing reports. + LOCALE_FLAG_REPORT='false' + # Interpret arguments and options passed through command-line. locale_getOptions diff --git a/Automation/Modules/Locale/locale_getOptions.sh b/Automation/Modules/Locale/locale_getOptions.sh index 27a1b32..b2d4c5f 100755 --- a/Automation/Modules/Locale/locale_getOptions.sh +++ b/Automation/Modules/Locale/locale_getOptions.sh @@ -28,10 +28,10 @@ function locale_getOptions { # Define short options we want to support. - local ARGSS="h::,v,f:,u,e,d,s,a" + local ARGSS="h::,v,f:,u,e,d,s,a,p" # Define long options we want to support. - local ARGSL="help::,version,filter:,update,edit,delete,siblings,all" + local ARGSL="help::,version,filter:,update,edit,delete,siblings,all,report" # Redefine arguments using getopt(1) command parser. tcar_setModuleArguments @@ -84,6 +84,12 @@ function locale_getOptions { shift 1 ;; + -p | --report ) + LOCALE_FLAG_REPORT="true" + shift 1 + ;; + + -- ) shift 1 break