From 50fd29fa6558635883f83323551df98491f16699 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 15 Aug 2019 11:00:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E8=AF=BE=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/decorators/tiding_decorator.rb | 4 ++++ config/locales/tidings/zh-CN.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/app/decorators/tiding_decorator.rb b/app/decorators/tiding_decorator.rb index ab9de4b76..81093dc12 100644 --- a/app/decorators/tiding_decorator.rb +++ b/app/decorators/tiding_decorator.rb @@ -380,4 +380,8 @@ module TidingDecorator I18n.t(locale_format(tiding_type)) % [container.try(:title) || extra] end end + + def public_course_start_content + I18n.t(locale_format) % [belong_container&.name, belong_container&.start_date&.strftime("%Y-%m-%d")] + end end diff --git a/config/locales/tidings/zh-CN.yml b/config/locales/tidings/zh-CN.yml index a4d213161..347b0139a 100644 --- a/config/locales/tidings/zh-CN.yml +++ b/config/locales/tidings/zh-CN.yml @@ -225,3 +225,4 @@ System: 1_end: "你提交的发布视频申请:%s,审核已通过" 2_end: "你提交的发布视频申请:%s,审核未通过
原因:%{reason}" + PublicCourseStart_end: "你报名参与的开放课程:%s,将于%s正式开课"