diff --git a/Scripts/Functions/Locale/locale.sh b/Scripts/Functions/Locale/locale.sh index fd2d788..3f402e3 100644 --- a/Scripts/Functions/Locale/locale.sh +++ b/Scripts/Functions/Locale/locale.sh @@ -83,6 +83,12 @@ function locale { # copy. ACTIONVAL=$(cli_checkRepoDirSource $ACTIONVAL) + # Verify whether the directory provided can have localization + # messages or not. + if [[ ! $(cli_hasLocalization $ACTIONVAL) == 'true' ]];then + cli_printMessage "`gettext "The path provided doesn't support localization."`" --as-error-line + fi + # Define work directory. This is the place where locales # directories will be stored in. WORKDIR=$(echo ${ACTIONVAL} \