如何覆盖“邮件已被接收”?

时间:2022-08-17 07:19:31

I would like to replace this error message with something more instructive, to help the user understand what to do next. Unfortunately I can't seem to find this anywhere in my source; where is it coming from and how can I amend it?

我想用一些更有意义的东西来替换这个错误消息,以帮助用户理解接下来要做什么。不幸的是,我似乎在我的资料中找不到这一点;它从何而来,我如何修改它?

1 个解决方案

#1


4  

Look in config/locales/YOUR_LOCALE.yml and set the following key:

在config /地区/ YOUR_LOCALE。yml设置如下键:

errors:
  messages:
    taken: "has already been taken"

You can find translated files for multiple languages here: https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale

您可以在这里找到多种语言的翻译文件:https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale

#1


4  

Look in config/locales/YOUR_LOCALE.yml and set the following key:

在config /地区/ YOUR_LOCALE。yml设置如下键:

errors:
  messages:
    taken: "has already been taken"

You can find translated files for multiple languages here: https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale

您可以在这里找到多种语言的翻译文件:https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale