Tanslations for preference setting

This commit is contained in:
Bernie Chiu 2013-12-24 16:59:41 +08:00 committed by saurabhbhatia
parent 63c018388e
commit 2fd5d8f321
3 changed files with 53 additions and 22 deletions

View File

@ -19,22 +19,22 @@
<!-- Input Area --> <!-- Input Area -->
<div class="input-area"> <div class="input-area">
<div class="nav-name"><strong>Classification</strong></div> <div class="nav-name"><strong><%= t('preferences.classification') %></strong></div>
<ul class="nav nav-pills language-nav"> <ul class="nav nav-pills language-nav">
<li class="active"> <li class="active">
<a href="#sidebar-nav" data-toggle="tab">Sidebar Nav</a> <a href="#sidebar-nav" data-toggle="tab"><%= t('preferences.sidebar_nav') %></a>
</li> </li>
<li> <li>
<a href="#system-email" data-toggle="tab">System Email</a> <a href="#system-email" data-toggle="tab"><%= t('preferences.system_email') %></a>
</li> </li>
<li> <li>
<a href="#openness" data-toggle="tab">Openness</a> <a href="#openness" data-toggle="tab"><%= t('preferences.openness') %></a>
</li> </li>
<li> <li>
<a href="#language-set" data-toggle="tab">Language</a> <a href="#language-set" data-toggle="tab"><%= t('preferences.language') %></a>
</li> </li>
<li> <li>
<a href="#orbitBar-them" data-toggle="tab">OrbitBar Theme</a> <a href="#orbitBar-them" data-toggle="tab"><%= t('preferences.orbitbar_theme') %></a>
</li> </li>
</ul> </ul>
@ -43,7 +43,7 @@
<!-- Sidebar Nav --> <!-- Sidebar Nav -->
<div id="sidebar-nav" class="tab-pane fade in active"> <div id="sidebar-nav" class="tab-pane fade in active">
<div class="control-group"> <div class="control-group">
<label class="control-label muted">Enable Sidebar Sub Nav</label> <label class="control-label muted"><%= t("preferences.nav_enabled") %></label>
<div class="controls"> <div class="controls">
<input type="checkbox" class="toggle-check set-sidebar-state" data-disabled="true"> <input type="checkbox" class="toggle-check set-sidebar-state" data-disabled="true">
</div> </div>
@ -115,14 +115,14 @@
<label class="control-label muted"><%= I18n.t('site.frontend_open')%></label> <label class="control-label muted"><%= I18n.t('site.frontend_open')%></label>
<div class="controls"> <div class="controls">
<%= f.check_box :frontend_open , :class=>"toggle-check", :data=> { disabled: true } %> <%= f.check_box :frontend_open , :class=>"toggle-check", :data=> { disabled: true } %>
<span class="help-block">If Checked, the frontend will be open for all users.</span> <span class="help-block"><%= t("preferences.frontend_open") %></span>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label muted"><%= I18n.t('site.backend_openness_on') %></label> <label class="control-label muted"><%= I18n.t('site.backend_openness_on') %></label>
<div class="controls"> <div class="controls">
<%= f.check_box :backend_openness_on , :class=>"toggle-check", :data=> { disabled: true } %> <%= f.check_box :backend_openness_on , :class=>"toggle-check", :data=> { disabled: true } %>
<span class="help-block">All users can visit backend pages</span> <span class="help-block"><%= t("preferences.backend_open") %></span>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
@ -143,7 +143,7 @@
</div> --> </div> -->
<!-- Terms of Use --> <!-- Terms of Use -->
<div class="control-group"> <div class="control-group">
<label class="control-label muted">Enable User Language Detection <label class="control-label muted"><%= t('preferences.lang_detection') %>
</label> </label>
<div class="controls"> <div class="controls">
<%= f.check_box :enable_language_detection, :class => "toggle-check reset_default_locale", data: {disabled: true} %> <%= f.check_box :enable_language_detection, :class => "toggle-check reset_default_locale", data: {disabled: true} %>
@ -151,7 +151,7 @@
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label muted">Enable Language</label> <label class="control-label muted"><%= t('preferences.lang_enabled') %></label>
<div class="controls"> <div class="controls">
<% @site_valid_locales.each do |valid_locale| %> <% @site_valid_locales.each do |valid_locale| %>
<%= check_box_tag "site[in_use_locales][]", valid_locale, @site.in_use_locales.include?(valid_locale), :class=>"toggle-check in_use_locales", :data => { :title => "#{I18nVariable.from_locale(valid_locale)}", disabled: true }, "data-deploy"=>"inline" %> <%= check_box_tag "site[in_use_locales][]", valid_locale, @site.in_use_locales.include?(valid_locale), :class=>"toggle-check in_use_locales", :data => { :title => "#{I18nVariable.from_locale(valid_locale)}", disabled: true }, "data-deploy"=>"inline" %>
@ -160,7 +160,7 @@
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label muted">Default Language</label> <label class="control-label muted"><%= t('preferences.lang_default') %></label>
<div class="controls"> <div class="controls">
<% @site_in_use_locales.each do |locale| %> <% @site_in_use_locales.each do |locale| %>
<%= radio_button_tag "site[default_locale]", locale, @locale == locale ,:class=>"toggle-check", :data => { :title => "#{I18nVariable.from_locale(locale)}" }, "data-deploy"=>"inline", :checked => (@site.default_locale.eql?("#{locale}")) %> <%= radio_button_tag "site[default_locale]", locale, @locale == locale ,:class=>"toggle-check", :data => { :title => "#{I18nVariable.from_locale(locale)}" }, "data-deploy"=>"inline", :checked => (@site.default_locale.eql?("#{locale}")) %>
@ -173,7 +173,7 @@
<!-- OrbitBar Them --> <!-- OrbitBar Them -->
<div id="orbitBar-them" class="tab-pane fade"> <div id="orbitBar-them" class="tab-pane fade">
<div class="control-group"> <div class="control-group">
<label class="control-label muted">OrbitBar Logo Icon</label> <label class="control-label muted">OrbitBar Logo <%= t('preferences.icon') %></label>
<div class="controls"> <div class="controls">
<!-- if this page editing please add class "fileupload-edit" --> <!-- if this page editing please add class "fileupload-edit" -->
<div class="fileupload fileupload-new clearfix" data-provides="fileupload"> <div class="fileupload fileupload-new clearfix" data-provides="fileupload">
@ -187,22 +187,22 @@
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div> <div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
<% if @site.default_image.file.present?%> <% if @site.default_image.file.present?%>
<span class="btn btn-file"> <span class="btn btn-file">
<%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Change <%= 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') %>
</span> </span>
<%= f.check_box :remove_default_image %> <%= f.check_box :remove_default_image %>
Remove OrbitBar Logo <%= t(:remove) %> OrbitBar Logo
<%else%> <%else%>
<span class="btn btn-file"> <span class="btn btn-file">
<%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>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('mobile_setting.select_image') %>
</span> </span>
<%end%> <%end%>
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Cancel</a> <a href="#" class="btn fileupload-exists" data-dismiss="fileupload"><%= t(:cancel) %></a>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label muted">Orbit Favicon</label> <label class="control-label muted">Orbit <%= t('preferences.favicon') %></label>
<div class="controls"> <div class="controls">
<!-- if this page editing please add class "fileupload-edit" --> <!-- if this page editing please add class "fileupload-edit" -->
<div class="fileupload fileupload-new clearfix" data-provides="fileupload"> <div class="fileupload fileupload-new clearfix" data-provides="fileupload">
@ -216,17 +216,17 @@
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div> <div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
<% if @site.favicon.file.present?%> <% if @site.favicon.file.present?%>
<span class="btn btn-file"> <span class="btn btn-file">
<%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Change <%= 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') %>
</span> </span>
<%= f.check_box :remove_favicon %> <%= f.check_box :remove_favicon %>
Remove Favicon <%= t(:remove) %> <%= t('preferences.favicon') %>
<%else%> <%else%>
<span class="btn btn-file"> <span class="btn btn-file">
<%= f.file_field :favicon, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image <%= 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') %>
</span> </span>
<%end%> <%end%>
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Cancel</a> <a href="#" class="btn fileupload-exists" data-dismiss="fileupload"><%= t(:cancel) %></a>
</div> </div>
</div> </div>

View File

@ -360,6 +360,22 @@ en:
postdate: Postdate postdate: Postdate
posted_by: Posted by posted_by: Posted by
preference: Preference preference: Preference
preferences:
backend_open: All users can visit backend pages
classification: Classification
frontend_open: "If Checked, the frontend will be open for all users."
favicon: Favicon
icon: Icon
language: Language
lang_detection: Enable User Language Detection
lang_enabled: Enable Language
lang_default: Default Language
lang_detection: Enable User Language Detection
nav_enabled: Enable Sidebar Sub Nav
openness: Openness
orbitbar_theme: OrbitBar Theme
sidebar_nav: Sidebar Nav
system_email: System Email
preview: Preview preview: Preview
profile: Profile profile: Profile
publications: Publications publications: Publications

View File

@ -362,6 +362,21 @@ zh_tw:
posted_by: 張貼人 posted_by: 張貼人
preview: 預覽 preview: 預覽
preference: 系統偏好 preference: 系統偏好
preferences:
backend_open: 開啟後台給所有使用者
classification: 類別
frontend_open: "設定後, 前台將會開放給所有使用者."
favicon: 偏好圖示
icon: 圖示
language: 語系
lang_detection: 開啟使用者語系偵測
lang_enabled: 開啟語系
lang_default: 預設語系
nav_enabled: 開啟側欄導引
openness: 權限開放
orbitbar_theme: OrbitBar版型
sidebar_nav: 側欄導引
system_email: 系統信箱
profile: 基本資料 profile: 基本資料
publications: 著作 publications: 著作
purchase: 購買 purchase: 購買