From 2d492f29ed8966d15fcf7081a75028414511f21c Mon Sep 17 00:00:00 2001
From: thomaschen <99703040@nccu.edu.tw>
Date: Tue, 24 Dec 2013 17:25:49 +0800
Subject: [PATCH] add translation for terms of use frontpage ui
---
app/controllers/front_controller.rb | 2 +-
config/locales/en.yml | 1 +
config/locales/zh_tw.yml | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/controllers/front_controller.rb b/app/controllers/front_controller.rb
index 9fb1d5ae..a5b3780c 100644
--- a/app/controllers/front_controller.rb
+++ b/app/controllers/front_controller.rb
@@ -17,7 +17,7 @@ class FrontController < ApplicationController
@url = "/#{@name}" if @name.present?
if (!@site.enable_terms_of_use && @page.first.present?)
- render :text => (@site.footer + "Terms of Use")
+ render :text => (@site.footer + "#{t(:terms_of_use)}")
else
render :text => @site.footer
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 4cc2ca46..313e5eb4 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -488,6 +488,7 @@ en:
template: Template
templates: Templates
template_name: Template name
+ terms_of_use: Terms of Use
text: Text
theme: Theme
themes: Themes
diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml
index a851c70d..eba41c4d 100644
--- a/config/locales/zh_tw.yml
+++ b/config/locales/zh_tw.yml
@@ -490,6 +490,7 @@ zh_tw:
template: 樣版
templates: 網站模版
template_name: 樣版名稱
+ terms_of_use: 使用規則
text: 內文
theme: 套用頁面樣式
themes: 主題