I have this exception:
我有这个例外:
translation missing: es.activerecord.errors.messages.record_invalid
As far as I understand: it is raised because I don't have the spanish translations for active record. Are there official translations files for active record?
据我了解:它被提出是因为我没有活跃记录的西班牙语翻译。是否有正式记录的官方翻译文件?
2 个解决方案
#1
17
Have a look at the rails-i18n repository from Sven Fuchs. Just add it to your app. You can find the general spanish translations here.
看看Sven Fuchs的rails-i18n存储库。只需将其添加到您的应用。您可以在这里找到一般的西班牙语翻译。
#2
0
you just have to translate this file in your locale files:
你只需要在你的语言环境文件中翻译这个文件:
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/locale/en.yml
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/locale/en.yml
#1
17
Have a look at the rails-i18n repository from Sven Fuchs. Just add it to your app. You can find the general spanish translations here.
看看Sven Fuchs的rails-i18n存储库。只需将其添加到您的应用。您可以在这里找到一般的西班牙语翻译。
#2
0
you just have to translate this file in your locale files:
你只需要在你的语言环境文件中翻译这个文件:
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/locale/en.yml
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/locale/en.yml