diff --git a/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh b/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh index e1e719e..4a8baa3 100755 --- a/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh +++ b/Automation/Modules/Locale/Modules/Directory/directory_getConfiguration.sh @@ -91,14 +91,15 @@ function directory_getConfiguration { local PO_FILE=${TRANSLATIONS[0]} - # Define package name. This is the name of the initialization - # file you provided as argument to the command line to provide - # localization for. - local PACKAGE_NAME=$(basename ${RENDER_FROM}) - - # Define package version. The script version is used here. - # Modules doesn't have a version by now. They share the same - # version of the centos-art.sh script. + # Define package name written in POT and PO files. This is the + # name of the initialization file you provided as argument to + # the command line to provide localization for. + local PACKAGE_NAME=$(basename ${SOURCES[0]}) + + # Define package version written in POT and PO files. The + # script version is used here. Modules doesn't have a version + # by now. They share the same version of the centos-art.sh + # script. local PACKAGE_VERSION=${TCAR_SCRIPT_VERSION} # Initialize locale's actions module. diff --git a/Automation/Modules/Locale/Modules/File/file.sh b/Automation/Modules/Locale/Modules/File/file.sh index f1d5eed..ccbb9cc 100755 --- a/Automation/Modules/Locale/Modules/File/file.sh +++ b/Automation/Modules/Locale/Modules/File/file.sh @@ -72,6 +72,16 @@ function file { SOURCES[((++${#SOURCES[*]}))]=${SOURCE} done + # Define package name written in POT and PO files. This is the + # name of the initialization file you provided as argument to the + # command line to provide localization for. + local PACKAGE_NAME=$(basename ${FILE_NAME}) + + # Define package version written in POT and PO files. The script + # version is used here. Modules doesn't have a version by now. + # They share the same version of the centos-art.sh script. + local PACKAGE_VERSION=${TCAR_SCRIPT_VERSION} + # Process configuration variables through locale's actions module. tcar_setModuleEnvironment -m "actions" -t "sib-module"