From 18a6cadd2cef6c07f72b4f57ef71cf3cc062934e Mon Sep 17 00:00:00 2001 From: Bernie Chiu Date: Tue, 24 Dec 2013 12:46:21 +0800 Subject: [PATCH] Translations for mobile setting --- .../admin/sites/responsive_setting.html.erb | 26 +++++++++---------- config/locales/en.yml | 13 ++++++++++ config/locales/zh_tw.yml | 13 ++++++++++ 3 files changed, 39 insertions(+), 13 deletions(-) diff --git a/app/views/admin/sites/responsive_setting.html.erb b/app/views/admin/sites/responsive_setting.html.erb index eb583512..aa6610ec 100644 --- a/app/views/admin/sites/responsive_setting.html.erb +++ b/app/views/admin/sites/responsive_setting.html.erb @@ -23,12 +23,12 @@
<%= f.check_box :mobile_on , :class=>"toggle-check", :data=> { disabled: true } %> - Enable Mobile Website + <%= t("mobile_setting.enabled_reminder") %>
- +
<% @module.categories.each do |category| %> <%= check_box_tag "site[announcement_category][]", category.id.to_s, (@site.announcement_category.include?(category) rescue false), :class=>"toggle-check", :data => { :title => "#{category.title}", disabled: true }, "data-deploy"=>"inline", :checked => (@site.announcement_category.include?(category.id.to_s)) %> @@ -38,7 +38,7 @@
- +
@@ -52,32 +52,32 @@
<% if @site.mobile_icon.present?%> - <%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Change + <%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t("mobile_setting.change") %> <%= f.check_box :remove_mobile_icon %> - Remove Icon + <%= t("mobile_setting.remove_icon") %> <%else%> - <%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image + <%= f.file_field :mobile_icon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t("mobile_setting.select_image") %> <%end%> - Cancel + <%= t(:cancel) %>
- +
/> /> - OR - name="site[default_bar_color]" id="default_bar_color" style="margin:0 0 3px 10px;" /> Default Color + <%= t("mobile_setting.or") %> + name="site[default_bar_color]" id="default_bar_color" style="margin:0 0 3px 10px;" /> <%= t("mobile_setting.default_color") %>
- +
<% @site.phone_number.each_with_index do |phone,i| %> @@ -96,7 +96,7 @@
- +
<%= f.text_area :address, :class => "ckeditor input-block-level", :value => (@site.address rescue nil) %> @@ -108,7 +108,7 @@
<%= f.check_box :mobile_api_openness_on , :class=>"toggle-check", :data=> { disabled: true } %> - Make API available for Mobile Apps + <%= t("mobile_setting.api_reminder") %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 694f35d0..b3460b6e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -287,6 +287,19 @@ en: member_registration: Registration Approval member_role: Member Roles menu_enabled_for: Menu enabled for + mobile_setting: + address: Address + api_reminder: Make API available for Mobile Apps + change: Change + default_color: Default Color + enabled_reminder: "Please be informed that if you already got a responsive web design (RWD) template, the standard mobile version will be in place of the RWD template once you enable it. You can still disable it anytime as your wish." + mobile_site_icon: Mobile Site Icon + or: OR + phone_number: Phone Number + remove_icon: Remove Icon + select_announcement_categories: Select Announcement Categories + select_image: Select Image + select_orbit_bar_color: Select Orbit Bar Color module: Module module_authorization: Module Authorization monthly_traffic: Monthly Traffic diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index bbf1e915..e6629dcf 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -288,6 +288,19 @@ zh_tw: member_registration: 註冊審核 member_role: 身份欄位 menu_enabled_for: 選單啟用 + mobile_setting: + address: 聯絡地址 + api_reminder: 開啟手機App開發用API + change: 更改 + default_color: 預設顏色 + enabled_reminder: "請注意若您的網頁模版若已採用適應性網頁設計(RWD),開啟此標準版手機版面後將取代原有的適應性網頁設計,您仍隨時能關閉此標準版手機版面" + mobile_site_icon: 手機版Icon圖示 + or: 或 + phone_number: 聯絡電話 + remove_icon: 移除圖示 + select_announcement_categories: 選擇公告顯示分類 + select_image: 選擇圖片 + select_orbit_bar_color: 選擇Orbit Bar顏色 module: 模組 module_authorization: 模組授權 monthly_traffic: 本月流量