From 43931e921add43d4b3f4f6c3f8742a72aee4cced Mon Sep 17 00:00:00 2001 From: z9hang Date: Thu, 13 Nov 2014 09:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E4=BD=9C=E5=8D=95=E4=BD=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=97=B6=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B8=BA=E8=8B=B1=E6=96=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/web_footer_company.rb | 2 +- config/locales/zh.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/web_footer_company.rb b/app/models/web_footer_company.rb index 0743b6a9c..fa51a3a66 100644 --- a/app/models/web_footer_company.rb +++ b/app/models/web_footer_company.rb @@ -3,6 +3,6 @@ class WebFooterCompany < ActiveRecord::Base validates :name, presence: true, length: { maximum: 500 } validates :url, length: { maximum: 500 }, format: { with: /(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/, - message: l(:is_not_url_error) + message: :invalid } end diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 07541a3f3..3666d07bb 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -540,7 +540,7 @@ zh: label_url_prompt: 网址需以"http://"或"https://"开头,例:http://forge.trustie.net web_footer_company_create_fail: 合作单位创建失败 web_footer_company_update_fail: 合作单位更新失败 - is_not_url_error: 不是正确的url + is_not_url_error: 不是正确的网址 label_x_projects: zero: 无项目 one: 1 个项目 @@ -2192,4 +2192,4 @@ zh: label_anonymous: 匿名 label_submit_comments: 提交评论 field_evaluation_num: 匿评分配数量 - label_my_score: 我的评分 + label_my_score: 我的评分