Tanslations for preference setting
This commit is contained in:
parent
63c018388e
commit
2fd5d8f321
|
@ -19,22 +19,22 @@
|
|||
|
||||
<!-- 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">
|
||||
<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>
|
||||
<a href="#system-email" data-toggle="tab">System Email</a>
|
||||
<a href="#system-email" data-toggle="tab"><%= t('preferences.system_email') %></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#openness" data-toggle="tab">Openness</a>
|
||||
<a href="#openness" data-toggle="tab"><%= t('preferences.openness') %></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#language-set" data-toggle="tab">Language</a>
|
||||
<a href="#language-set" data-toggle="tab"><%= t('preferences.language') %></a>
|
||||
</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>
|
||||
</ul>
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
|||
<!-- Sidebar Nav -->
|
||||
<div id="sidebar-nav" class="tab-pane fade in active">
|
||||
<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">
|
||||
<input type="checkbox" class="toggle-check set-sidebar-state" data-disabled="true">
|
||||
</div>
|
||||
|
@ -115,14 +115,14 @@
|
|||
<label class="control-label muted"><%= I18n.t('site.frontend_open')%></label>
|
||||
<div class="controls">
|
||||
<%= 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 class="control-group">
|
||||
<label class="control-label muted"><%= I18n.t('site.backend_openness_on') %></label>
|
||||
<div class="controls">
|
||||
<%= 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 class="control-group">
|
||||
|
@ -143,7 +143,7 @@
|
|||
</div> -->
|
||||
<!-- Terms of Use -->
|
||||
<div class="control-group">
|
||||
<label class="control-label muted">Enable User Language Detection
|
||||
<label class="control-label muted"><%= t('preferences.lang_detection') %>
|
||||
</label>
|
||||
<div class="controls">
|
||||
<%= f.check_box :enable_language_detection, :class => "toggle-check reset_default_locale", data: {disabled: true} %>
|
||||
|
@ -151,7 +151,7 @@
|
|||
</div>
|
||||
|
||||
<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">
|
||||
<% @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" %>
|
||||
|
@ -160,7 +160,7 @@
|
|||
</div>
|
||||
|
||||
<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">
|
||||
<% @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}")) %>
|
||||
|
@ -173,7 +173,7 @@
|
|||
<!-- OrbitBar Them -->
|
||||
<div id="orbitBar-them" class="tab-pane fade">
|
||||
<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">
|
||||
<!-- if this page editing please add class "fileupload-edit" -->
|
||||
<div class="fileupload fileupload-new clearfix" data-provides="fileupload">
|
||||
|
@ -187,22 +187,22 @@
|
|||
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
||||
<% if @site.default_image.file.present?%>
|
||||
<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>
|
||||
<%= f.check_box :remove_default_image %>
|
||||
Remove OrbitBar Logo
|
||||
<%= t(:remove) %> OrbitBar Logo
|
||||
<%else%>
|
||||
<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>
|
||||
<%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 class="control-group">
|
||||
<label class="control-label muted">Orbit Favicon</label>
|
||||
<label class="control-label muted">Orbit <%= t('preferences.favicon') %></label>
|
||||
<div class="controls">
|
||||
<!-- if this page editing please add class "fileupload-edit" -->
|
||||
<div class="fileupload fileupload-new clearfix" data-provides="fileupload">
|
||||
|
@ -216,17 +216,17 @@
|
|||
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
||||
<% if @site.favicon.file.present?%>
|
||||
<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>
|
||||
<%= f.check_box :remove_favicon %>
|
||||
Remove Favicon
|
||||
<%= t(:remove) %> <%= t('preferences.favicon') %>
|
||||
<%else%>
|
||||
<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>
|
||||
<%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>
|
||||
|
|
|
@ -360,6 +360,22 @@ en:
|
|||
postdate: Postdate
|
||||
posted_by: Posted by
|
||||
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
|
||||
profile: Profile
|
||||
publications: Publications
|
||||
|
|
|
@ -362,6 +362,21 @@ zh_tw:
|
|||
posted_by: 張貼人
|
||||
preview: 預覽
|
||||
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: 基本資料
|
||||
publications: 著作
|
||||
purchase: 購買
|
||||
|
|
Reference in New Issue