diff --git a/Scripts/Functions/Locale/locale.sh b/Scripts/Functions/Locale/locale.sh index 94c94e0..5cd86f3 100644 --- a/Scripts/Functions/Locale/locale.sh +++ b/Scripts/Functions/Locale/locale.sh @@ -24,6 +24,14 @@ function locale { + # Do not locale messages for English language. The English + # language is already used as translation pattern and there is no + # translation messages for it. + if [[ $(cli_getCurrentLocale) =~ '^en' ]];then + cli_printMessage "`gettext "Cannot locale English language to itself."`" 'AsErrorLine' + cli_printMessage "$FUNCDIRNAM" 'AsToKnowMoreLine' + fi + local ACTIONNAM='' local ACTIONVAL=''