From 178168d881264ed093b474abcfe9516fd35ccbdd Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 10 2014 18:12:10 +0000 Subject: Update tcar_printVersion output. - Previously, tcar_printVersion didn't consider the module name on its ouput. This update changes tcar_printVersion to consider the module name on its output. - Update es_ES translation messages related to tcar_printVersion output. --- diff --git a/Scripts/Locales/es_ES/tcar.po b/Scripts/Locales/es_ES/tcar.po index 67b3560..3690255 100644 --- a/Scripts/Locales/es_ES/tcar.po +++ b/Scripts/Locales/es_ES/tcar.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: tcar 0.9\n" "Report-Msgid-Bugs-To: centos-l10n-es@centos.org.cu\n" -"POT-Creation-Date: 2014-01-10 11:40-0500\n" -"PO-Revision-Date: 2014-01-10 11:40-0500\n" +"POT-Creation-Date: 2014-01-10 13:02-0500\n" +"PO-Revision-Date: 2014-01-10 13:02-0500\n" "Last-Translator: Localization SIG \n" "Language-Team: Español\n" "MIME-Version: 1.0\n" @@ -1964,12 +1964,17 @@ msgid "See 'tcar help ' for more information on a specific command." msgstr "" "Para más información en un comando específico, vea 'tcar help '." -#: Scripts/tcar_printVersion.sh:29 +#: Scripts/tcar_printVersion.sh:30 #, sh-format msgid "$TCAR_SCRIPT_NAME version $TCAR_SCRIPT_VERSION" msgstr "$TCAR_SCRIPT_NAME versión $TCAR_SCRIPT_VERSION" -#: Scripts/tcar_printVersion.sh:31 +#: Scripts/tcar_printVersion.sh:32 +#, sh-format +msgid "$TCAR_SCRIPT_NAME ($TCAR_MODULE_NAME) version $TCAR_SCRIPT_VERSION" +msgstr "$TCAR_SCRIPT_NAME ($TCAR_MODULE_NAME) versión $TCAR_SCRIPT_VERSION" + +#: Scripts/tcar_printVersion.sh:37 #, sh-format msgid "" "$TCAR_SCRIPT_NAME comes with NO WARRANTY, to the extent permitted by law. " @@ -1977,7 +1982,7 @@ msgid "" "General Public License. For more information about these matters, see the " "file named COPYING." msgstr "" -"$TCAR_SCRIPT_NAME viene SIN GARANTÍAS, a todo lo permitido por la ley. Usted " +"$TCAR_SCRIPT_NAME viene SIN GARANTÍAS, hasta donde lo permita la ley. Usted " "puede redistribuir copias de $TCAR_SCRIPT_NAME bajo los términos de la " "Licencia Pública General de GNU. Para más información sobre estos asuntos, " "vea el fichero nombrado COPYING." diff --git a/Scripts/tcar_printVersion.sh b/Scripts/tcar_printVersion.sh index 150610e..8cf0353 100755 --- a/Scripts/tcar_printVersion.sh +++ b/Scripts/tcar_printVersion.sh @@ -26,8 +26,14 @@ # Print tcar version and license information. function tcar_printVersion { - tcar_printMessage "`eval_gettext "\\\$TCAR_SCRIPT_NAME version \\\$TCAR_SCRIPT_VERSION"`" --as-stdout-line + if [[ -z ${TCAR_MODULE_NAME} ]];then + tcar_printMessage "`eval_gettext "\\\$TCAR_SCRIPT_NAME version \\\$TCAR_SCRIPT_VERSION"`" --as-stdout-line + else + tcar_printMessage "`eval_gettext "\\\$TCAR_SCRIPT_NAME (\\\$TCAR_MODULE_NAME) version \\\$TCAR_SCRIPT_VERSION"`" --as-stdout-line + fi + tcar_printCopyrightInfo + tcar_printMessage "`eval_gettext "\\\$TCAR_SCRIPT_NAME comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of \\\$TCAR_SCRIPT_NAME under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING."`" --as-stdout-line | fold --width=66 --spaces exit 0