From 2f2639b487cefd768e856bde81cc2270ea37d6ee Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 16 2012 20:14:38 +0000 Subject: Update `Functions/Locale/locale_editMessages.sh' file. --- diff --git a/Scripts/Bash/Functions/Locale/locale_editMessages.sh b/Scripts/Bash/Functions/Locale/locale_editMessages.sh index 548530d..aa3eb7f 100755 --- a/Scripts/Bash/Functions/Locale/locale_editMessages.sh +++ b/Scripts/Bash/Functions/Locale/locale_editMessages.sh @@ -25,6 +25,13 @@ function locale_editMessages { + # Verify current locale information to avoid English messages from + # being localized to themselves. The English language is used as + # reference to write translatable strings inside the source files. + if [[ $(cli_getCurrentLocale) =~ '^en' ]];then + cli_printMessage "`gettext "The English language cannot be localized to itself."`" --as-error-line + fi + local PO_FILE='' local PO_FILES=''