From e706d66bc0f1c37619e1004da78e24dcef6ff15b Mon Sep 17 00:00:00 2001 From: Bernie Chiu Date: Fri, 27 Dec 2013 11:27:45 +0800 Subject: [PATCH] Fix to proper translations --- app/views/admin/sites/preference.html.erb | 8 ++++---- config/locales/en.yml | 2 ++ config/locales/zh_tw.yml | 6 ++++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/views/admin/sites/preference.html.erb b/app/views/admin/sites/preference.html.erb index fdb8c4f8..cce754e8 100644 --- a/app/views/admin/sites/preference.html.erb +++ b/app/views/admin/sites/preference.html.erb @@ -187,13 +187,13 @@
<% if @site.default_image.file.present?%> - <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t('mobile_setting.change') %> + <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t('preferences.change') %> <%= f.check_box :remove_default_image %> <%= t(:remove) %> OrbitBar Logo <%else%> - <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t('mobile_setting.select_image') %> + <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t('preferences.select_image') %> <%end%> <%= t(:cancel) %> @@ -216,13 +216,13 @@
<% if @site.favicon.file.present?%> - <%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t('mobile_setting.change') %> + <%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t('preferences.change') %> <%= f.check_box :remove_favicon %> <%= t(:remove) %> <%= t('preferences.favicon') %> <%else%> - <%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t('mobile_setting.select_image') %> + <%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %><%= t('preferences.select_image') %> <%end%> diff --git a/config/locales/en.yml b/config/locales/en.yml index 313e5eb4..5ef084c7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -349,6 +349,7 @@ en: preference: Preference preferences: backend_open: All users can visit backend pages + change: Change classification: Classification frontend_open: "If Checked, the frontend will be open for all users." favicon: Favicon @@ -361,6 +362,7 @@ en: nav_enabled: Enable Sidebar Sub Nav openness: Openness orbitbar_theme: OrbitBar Theme + select_image: Select Image sidebar_nav: Sidebar Nav system_email: System Email preview: Preview diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index eba41c4d..1a4968f9 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -353,17 +353,19 @@ zh_tw: preference: 系統偏好 preferences: backend_open: 開啟後台給所有使用者 + change: 更改 classification: 類別 frontend_open: "設定後, 前台將會開放給所有使用者." favicon: 偏好圖示 icon: 圖示 - language: 語系 + language: 語系設定 lang_detection: 開啟使用者語系偵測 lang_enabled: 開啟語系 lang_default: 預設語系 nav_enabled: 開啟側欄導引 openness: 權限開放 - orbitbar_theme: OrbitBar版型 + orbitbar_theme: OrbitBar佈景主題 + select_image: 選擇圖片 sidebar_nav: 側欄導引 system_email: 系統信箱 profile: 基本資料