diff --git a/app/models/discuss.rb b/app/models/discuss.rb index 743a436e0..b563a6295 100644 --- a/app/models/discuss.rb +++ b/app/models/discuss.rb @@ -13,7 +13,7 @@ class Discuss < ApplicationRecord belongs_to :challenge, optional: true validate :validate_sensitive_string - validates :content, length: { maximum: 1000, too_long: "内容不能超过1000个字符" } + validates :content, length: { maximum: 1000, too_long: "不能超过1000个字符" } after_create :send_tiding diff --git a/app/models/journals_for_message.rb b/app/models/journals_for_message.rb index e1482d52b..190fa4351 100644 --- a/app/models/journals_for_message.rb +++ b/app/models/journals_for_message.rb @@ -26,7 +26,7 @@ class JournalsForMessage < ApplicationRecord # "is_comprehensive_evaluation", # 1 教师评论、2 匿评、3 留言 # "hidden", 隐藏、 - validates :notes, length: { maximum: 1000, too_long: "内容不能超过1000个字符" } + validates :notes, length: { maximum: 1000, too_long: "不能超过1000个字符" } after_create :send_tiding diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml index f11271ff5..f80982a03 100644 --- a/config/locales/zh-CN.yml +++ b/config/locales/zh-CN.yml @@ -13,4 +13,14 @@ zh-CN: 'pending': '待审批' 'processed': '已审批' 'refused': '已拒绝' - 'agreed': '已同意' \ No newline at end of file + 'agreed': '已同意' + + activerecord: + attributes: + user: + login: '登录名' + lastname: '姓名' + discuss: + content: '内容' + journals_for_message: + notes: '内容' \ No newline at end of file