make error message translatable

This commit is contained in:
scossar 2016-03-15 10:02:10 -07:00
parent 0cbeda8414
commit 1914495e88
2 changed files with 2 additions and 1 deletions

View file

@ -1308,6 +1308,7 @@ en:
pop3_polling_authentication_failed: "POP3 authentication failed. Please verify your pop3 credentials."
reply_by_email_address_is_empty: "You must set a 'reply by email address' before enabling reply by email."
pop3_polling_disabled: "You must first enabled POP3 polling before enabling reply by email."
user_locale_not_enabled: "You must first enable 'allow user locale' before enabling this setting."
notification_types:
group_mentioned: "%{group_name} was mentioned in %{link}"

View file

@ -12,7 +12,7 @@ class AllowUserLocaleEnabledValidator
end
def error_message
"You must first enable 'allow user locale' before enabling this setting."
I18n.t("site_settings.errors.user_locale_not_enabled");
end
end