From b4af75f2893423fae14dec1650af57d3ef6e312d Mon Sep 17 00:00:00 2001 From: nwb Date: Thu, 26 Jun 2014 11:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E7=95=8C=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/course.rb | 2 +- app/views/news/_course_news.html.erb | 2 +- config/locales/zh.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/course.rb b/app/models/course.rb index b828af0ce..2dfb6ae44 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -34,7 +34,7 @@ class Course < ActiveRecord::Base :delete_permission => :manage_files validates_presence_of :password, :term - validates_format_of :class_period, :message => l(:error_class_period_only_num), :with =>/^[1-9]\d*$/ + validates_format_of :class_period, :with =>/^[1-9]\d*$/ after_save :create_board_sync before_destroy :delete_all_members diff --git a/app/views/news/_course_news.html.erb b/app/views/news/_course_news.html.erb index 60d0f0ed3..5104cd851 100644 --- a/app/views/news/_course_news.html.erb +++ b/app/views/news/_course_news.html.erb @@ -76,7 +76,7 @@ <%= stylesheet_link_tag 'scm' %> <% end %> - <% html_title(l(:label_news_plural)) -%> + <% html_title(l(:label_course_news)) -%>