From 8df17b2621d63b06e2a24462b4abb639986ac695 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 19 Jan 2018 17:10:03 +0800 Subject: [PATCH] languages fix --- app/views/admin/web_resources/order.html.erb | 8 ++++---- config/locales/en.yml | 9 +++++++-- config/locales/zh_tw.yml | 9 +++++++-- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/app/views/admin/web_resources/order.html.erb b/app/views/admin/web_resources/order.html.erb index dfd0f08..4d52ca7 100644 --- a/app/views/admin/web_resources/order.html.erb +++ b/app/views/admin/web_resources/order.html.erb @@ -1,12 +1,12 @@ <% content_for :page_specific_css do %> <%= stylesheet_link_tag "admin/web_links" %> <% end %> -
Please click "Save Order" button when you done.
+
<%= t("web_link.please_save") %>
- - + + <% @links.each_with_index do |link,i| %> @@ -23,7 +23,7 @@
PositionLink<%= t("web_link.position") %><%= t("web_link.link") %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 0ef7d1d..8bfa4dd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,9 +1,14 @@ en: web_resource: Web resource web_link: Web resource - + restful_actions: + order: Order web_link: local: Open In Current page new_window: Open In New window type: Link Open Type - order: Order \ No newline at end of file + order: Order + position: Position + link: Link + please_save: Please click "Save Order" button when you done. + save_order: Save Order \ No newline at end of file diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 3bb17d5..2596ad0 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -1,9 +1,14 @@ zh_tw: web_resource: 網路資源 web_link: 網路資源 - + restful_actions: + order: 指令 web_link: local: 當前視窗開啟 new_window: 新視窗開啟 type: 開啟方式 - order: Order + order: 指令 + position: 位置 + link: 連結 + please_save: 調整完後, 請點選"儲存順序" + save_order: 儲存順序 \ No newline at end of file