<%= f.check_box 'enable_starttls_auto', :checked => (@site['site_settings']['enable_starttls_auto'].eql?('1') rescue false) %>
diff --git a/app/views/admin/sites/site_info.html.erb b/app/views/admin/sites/site_info.html.erb
index 1da9337e..7142c0b7 100644
--- a/app/views/admin/sites/site_info.html.erb
+++ b/app/views/admin/sites/site_info.html.erb
@@ -16,63 +16,63 @@
- <%= f.check_box :title_always_on %> <%= t 'admin.always_display_title' %>
+ <%= f.check_box :title_always_on %> <%= t :always_display_title %>
<% @site_valid_locales.each do |locale|%>
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
-
<%= t 'admin.site_title' %>
+
<%= t 'site.title' %>
<%= f.fields_for :title_translations do |f| %>
<%= f.text_field locale, :class => "input-xxlarge", :value => (@site.title_translations[locale] rescue nil) %>
<% end %>
-
<%= (t 'admin.site_title_help').html_safe %>
+
<%= (t 'site.title_help').html_safe %>
<% end %>
<% end %>
-
<%= t 'search.site_search' %>
+
<%= t 'site.search' %>
<%= text_field_tag 'site[search][domains]',(@site.search["domains"] rescue nil), {:class => "input-xxlarge" ,:placeholder => t("search.domains") }%>
<%= text_field_tag 'site[search][sitesearch]',(@site.search["sitesearch"] rescue nil),{ :class => "input-xxlarge" ,:placeholder => t("search.sitesearch") }%>
-
<%= (t 'search.site_setting_help').html_safe %>
+
<%= (t 'site.search_help').html_safe %>
<% @site_valid_locales.each do |locale|%>
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
-
<%= t 'admin.site_keywords' %>
+
<%= t 'site.keywords' %>
<%= f.fields_for :keywords do |f| %>
<%= f.text_area locale, :class => "input-xxlarge textarea-height-s", :value => (@site.keywords(locale) rescue nil) %>
<% end %>
-
<%= (t 'admin.site_keywords_help').html_safe %>
+
<%= (t 'site.keywords_help').html_safe %>
-
<%= t 'admin.site_description' %>
+
<%= t 'site.description' %>
<%= f.fields_for :description do |f| %>
<%= f.text_area locale, :class => "input-xxlarge textarea-height-s", :value => (@site.description(locale) rescue nil) %>
<% end %>
-
<%= (t 'admin.site_description_help').html_safe %>
+
<%= (t 'site.description_help').html_safe %>
-
<%= t 'admin.site_footer' %>
+
<%= t 'site.footer' %>
<%= f.fields_for :footer_translations do |f| %>
<%= f.text_area locale, :class => "tinymce_textarea input-xxlarge", :value => (@site.footer_translations[locale] rescue nil) %>
<% end %>
-
<%= (t 'admin.site_footer_help').html_safe %>
+
<%= (t 'site.footer_help').html_safe %>
-
<%= t 'admin.site_sub_menu' %>
+
<%= t 'site.sub_menu' %>
<%= f.fields_for :sub_menu_translations do |f| %>
<%= f.text_area locale, :class => "tinymce_textarea input-xxlarge", :value => (@site.sub_menu_translations[locale] rescue nil) %>
diff --git a/app/views/admin/translations/_action_bar.html.erb b/app/views/admin/translations/_action_bar.html.erb
deleted file mode 100644
index a73b810e..00000000
--- a/app/views/admin/translations/_action_bar.html.erb
+++ /dev/null
@@ -1 +0,0 @@
-
<%= t(:edit) %> |
<%= t(:hide) %>
diff --git a/app/views/admin/translations/_edit_language.html.erb b/app/views/admin/translations/_edit_language.html.erb
deleted file mode 100644
index 013dd51c..00000000
--- a/app/views/admin/translations/_edit_language.html.erb
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- <%= t('admin.key') %>
- <% @site_valid_locales.each do |locale| %>
- <%= locale %>
- <% end %>
-
- <% @language_i18n_variables.each do |var| %>
-
- <%= var.key %>
- <% @site_valid_locales.each do |locale| %>
- <%= text_field_tag "i18n_variables[#{var.id}][#{locale}]", var[locale] %>
- <% end %>
-
- <% end %>
-
diff --git a/app/views/admin/translations/_edit_user_attribute_model.html.erb b/app/views/admin/translations/_edit_user_attribute_model.html.erb
deleted file mode 100644
index 829d1c11..00000000
--- a/app/views/admin/translations/_edit_user_attribute_model.html.erb
+++ /dev/null
@@ -1,34 +0,0 @@
-<% @vars = @i18n_variables.inject([]) do |result, var|
- result << var if var.parent_id.to_s.eql?(edit_user_attribute_model.id.to_s)
- result
-end %>
-
-
-
- <%= edit_user_attribute_model.key %>
- <%#= render :partial => 'action_bar' %>
-
-
-
- <%= t('admin.key') %>
- <% @site_valid_locales.each do |locale| %>
- <%= locale %>
- <% end %>
-
-
- <%= edit_user_attribute_model.key %>
- <% @site_valid_locales.each do |locale| %>
- <%= text_field_tag "i18n_variables[#{edit_user_attribute_model.id}][#{locale}]", edit_user_attribute_model[locale] %>
- <% end %>
-
-
- <% @vars.each do |var| %>
-
- <%= var.key %>
- <% @site_valid_locales.each do |locale| %>
- <%= text_field_tag "i18n_variables[#{var.id}][#{locale}]", var[locale] %>
- <% end %>
-
- <% end %>
-
-
diff --git a/app/views/admin/translations/_language.html.erb b/app/views/admin/translations/_language.html.erb
deleted file mode 100644
index b2e352f0..00000000
--- a/app/views/admin/translations/_language.html.erb
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- <%= t('admin.key') %>
- <% @site_valid_locales.each do |locale| %>
- <%= locale %>
- <% end %>
-
- <% @language_i18n_variables.each do |var| %>
-
- <%= var.key %>
- <% @site_valid_locales.each do |locale| %>
- <%= var[locale] %>
- <% end %>
-
- <% end %>
-
diff --git a/app/views/admin/translations/_user_attribute_model.html.erb b/app/views/admin/translations/_user_attribute_model.html.erb
deleted file mode 100644
index 1d7f0eca..00000000
--- a/app/views/admin/translations/_user_attribute_model.html.erb
+++ /dev/null
@@ -1,34 +0,0 @@
-<% @vars = @i18n_variables.inject([]) do |result, var|
- result << var if var.parent_id.to_s.eql?(user_attribute_model.id.to_s)
- result
-end %>
-
-
-
- <%= user_attribute_model.key %>
- <%#= render :partial => 'action_bar' %>
-
-
-
- <%= t('admin.key') %>
- <% @site_valid_locales.each do |locale| %>
- <%= locale %>
- <% end %>
-
-
- <%= user_attribute_model.key %>
- <% @site_valid_locales.each do |locale| %>
- <%= user_attribute_model[locale] %>
- <% end %>
-
-
- <% @vars.each do |var| %>
-
- <%= var.key %>
- <% @site_valid_locales.each do |locale| %>
- <%= var[locale] %>
- <% end %>
-
- <% end %>
-
-
diff --git a/app/views/admin/translations/edit.html.erb b/app/views/admin/translations/edit.html.erb
deleted file mode 100644
index 231c70f5..00000000
--- a/app/views/admin/translations/edit.html.erb
+++ /dev/null
@@ -1,39 +0,0 @@
-
-<%= form_tag admin_translation_path('all'), :method => :put do %>
- <% if @language_i18n_variables.size > 0 %>
-
-
- <%= t('admin.language') %>
- <%#= render :partial => 'action_bar' %>
-
- <%= render :partial => 'edit_language' %>
-
- <% end %>
-
- <% if @info_i18n_variables.size > 0 %>
-
-
- <%= t('admin.user_info') %>
- <%#= render :partial => 'action_bar' %>
-
- <%= render :partial => 'edit_user_attribute_model', :collection => @info_i18n_variables %>
-
- <% end %>
-
- <% if @role_i18n_variables.size > 0 %>
-
-
- <%= t('admin.user_role') %>
- <%#= render :partial => 'action_bar' %>
-
- <%= render :partial => 'edit_user_attribute_model', :collection => @role_i18n_variables %>
-
- <% end %>
-
-
- <%= link_back %>
- <%= submit_tag t('update') %>
-
-
-<% end %>
-
\ No newline at end of file
diff --git a/app/views/admin/translations/index.html.erb b/app/views/admin/translations/index.html.erb
deleted file mode 100644
index 255484d4..00000000
--- a/app/views/admin/translations/index.html.erb
+++ /dev/null
@@ -1,72 +0,0 @@
-
-<% content_for :secondary do %>
-
-
<%= t('admin.setup_translations') %>
-
- <%= link_to t(:edit), edit_admin_translation_path('all'), :class => 'button positive' %>
-
- <%= t('admin.add_language') %>:
- <%= form_tag admin_translation_path('add'), :method => :put do %>
- <%= text_field_tag 'language', '', :style => "width:100px" %>
- <%= submit_tag t(:add) %>
- <% end %>
-
-
- <%= t('admin.enable_language') %>:
- <%= form_tag admin_translation_path('enable'), :method => :put do %>
- <%= select_tag 'enable_language', options_for_select(@site_valid_locales - @site_in_use_locales), :style => "width:100px" %>
- <%= submit_tag t(:enable) %>
- <% end %>
-
-
- <%= t('admin.disable_language') %>:
- <%= form_tag admin_translation_path('disable'), :method => :put do %>
- <%= select_tag 'disable_language', options_for_select(@site_in_use_locales), :style => "width:100px" %>
- <%= submit_tag t(:disable) %>
- <% end %>
-
-
- <%= t('admin.delete_language') %>:
- <%= form_tag admin_translation_path('delete'), :method => :put do %>
- <%= select_tag 'delete_language', options_for_select(@site_valid_locales), :style => "width:100px" %>
- <%= submit_tag t(:delete), :confirm => t('sure?') %>
- <% end %>
-
-
-
-<% end -%>
-
-<% if @language_i18n_variables.size > 0 %>
-
-
- <%= t('admin.language') %>
- <%#= render :partial => 'action_bar' %>
-
- <%= render :partial => 'language' %>
-
-<% end %>
-
-<% if @info_i18n_variables.size > 0 %>
-
-
- <%= t('admin.user_info') %>
- <%#= render :partial => 'action_bar' %>
-
- <%= render :partial => 'user_attribute_model', :collection => @user_info_model_i18n_variables %>
-
-<% end %>
-
-<% if @role_i18n_variables.size > 0 %>
-
-
- <%= t('admin.user_role') %>
- <%#= render :partial => 'action_bar' %>
-
- <%= render :partial => 'user_attribute_model', :collection => @user_role_model_i18n_variables %>
-
-<% end %>
-
-<% content_for :page_specific_javascript do %>
- <%= javascript_include_tag "translation_page" %>
-<% end -%>
-
diff --git a/app/views/admin/users/_form.html.erb b/app/views/admin/users/_form.html.erb
index c0cb194e..2fdf58d2 100644
--- a/app/views/admin/users/_form.html.erb
+++ b/app/views/admin/users/_form.html.erb
@@ -7,15 +7,15 @@
<%= file_field_tag 'file' %>
<%= hidden_field_tag :avatar_cache %>
- <%= t('admin.email') %>:
- <%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t('admin.email')};}", :value => (@user.email.blank? ? t('admin.email') : @user.email), :class => 'user_mail' %>
+ <%= t(:email) %>:
+ <%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t(:email)};}", :value => (@user.email.blank? ? t(:email) : @user.email), :class => 'user_mail' %>
<%= f.check_box :admin %>
- <%= t('admin.admin') %>:
+ <%= t(:admin) %>:
- <%= t('admin.role') %>:
+ <%= t(:role) %>:
<%= f.select :role_id, @roles.sort_by{|role| role.key }.collect {|role| [ role.title, role.id ]}, :selected => (@user.role_id || Role.get_role_from_key('student')) %>
diff --git a/app/views/admin/users/_side_bar.html.erb b/app/views/admin/users/_side_bar.html.erb
index ce0e1296..b7fea681 100644
--- a/app/views/admin/users/_side_bar.html.erb
+++ b/app/views/admin/users/_side_bar.html.erb
@@ -2,10 +2,10 @@
-
<%= t('admin.setup_member') %>
+
<%= t(:setup_member) %>
- <%= link_to content_tag(:span, t('admin.list_users')), admin_users_path %>
- <%= link_to content_tag(:span, t('admin.list_roles')), admin_roles_path %>
- <%= link_to content_tag(:span, t('admin.list_infos')), admin_infos_path %>
+ <%= link_to content_tag(:span, t('list.user')), admin_users_path %>
+ <%= link_to content_tag(:span, t('list.role')), admin_roles_path %>
+ <%= link_to content_tag(:span, t('list.info')), admin_infos_path %>
\ No newline at end of file
diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb
index 7f58cbf8..6e16cae7 100644
--- a/app/views/admin/users/index.html.erb
+++ b/app/views/admin/users/index.html.erb
@@ -5,16 +5,16 @@
<%= flash_messages %>
- <%= link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
+ <%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
- <%= t('admin.role') %>
- <%= t('admin.name') %>
- <%= t('admin.email') %>
- <%= t('admin.admin') %>
- <%= t('admin.action') %>
+ <%= t(:role) %>
+ <%= t(:name) %>
+ <%= t(:email) %>
+ <%= t(:admin) %>
+ <%= t(':action') %>
@@ -37,6 +37,6 @@
- <%= link_to t('admin.new_user'), new_admin_user_path, :class => 'new' %>
+ <%= link_to t('new.user'), new_admin_user_path, :class => 'new' %>
diff --git a/app/views/layouts/_drop_down_menu.html.erb b/app/views/layouts/_drop_down_menu.html.erb
index 89285ebb..23a73e3c 100644
--- a/app/views/layouts/_drop_down_menu.html.erb
+++ b/app/views/layouts/_drop_down_menu.html.erb
@@ -1,10 +1,9 @@
- <%= link_to t('homepage'), root_path, :class => 'orblink' %>
- <%= link_to t('admin.item'), admin_items_path, :class => 'orblink' %>
- <%= link_to t('admin.design'), admin_designs_path, :class => 'orblink' %>
- <%= link_to t('admin.purchase'), admin_purchases_path, :class => 'orblink' %>
- <%= link_to t('admin.asset'), admin_assets_path, :class => 'orblink' %>
- <%= link_to t('admin.member'), admin_users_path, :class => 'orblink' %>
- <%= link_to t('admin.translation'), admin_translations_path, :class => 'orblink' %>
- <%= link_to t('admin.site'), admin_sites_path, :class => 'orblink' %>
+ <%= link_to t(:homepage), root_path, :class => 'orblink' %>
+ <%= link_to t(:item), admin_items_path, :class => 'orblink' %>
+ <%= link_to t(:template), admin_designs_path, :class => 'orblink' %>
+ <%= link_to t(:purchase), admin_purchases_path, :class => 'orblink' %>
+ <%= link_to t(:asset), admin_assets_path, :class => 'orblink' %>
+ <%= link_to t(:member), admin_users_path, :class => 'orblink' %>
+ <%= link_to t(:site_), admin_sites_path, :class => 'orblink' %>
\ No newline at end of file
diff --git a/app/views/layouts/_orbit_bar.html.erb b/app/views/layouts/_orbit_bar.html.erb
index 7936953c..01da6337 100644
--- a/app/views/layouts/_orbit_bar.html.erb
+++ b/app/views/layouts/_orbit_bar.html.erb
@@ -5,14 +5,14 @@
<% if !current_user.nil? %>
Orbit
<% else %>
Orbit
diff --git a/app/views/layouts/_side_bar.html.erb b/app/views/layouts/_side_bar.html.erb
index c0507e67..cc4a9be6 100644
--- a/app/views/layouts/_side_bar.html.erb
+++ b/app/views/layouts/_side_bar.html.erb
@@ -1,78 +1,78 @@
<%#= content_tag :li, :class => active_for_controllers('purchases') do -%>
- <%#= link_to content_tag(:i, nil, :class => 'icons-purchase') + t('admin.purchase'), admin_purchases_path %>
+ <%#= link_to content_tag(:i, nil, :class => 'icons-purchase') + t(:purchase), admin_purchases_path %>
<%# end -%>
<% content_for :page_specific_javascript do %>
<%= javascript_include_tag "/static/kernel.js" %>
<% end %>
<%= content_tag :li, :class => (active_for_controllers('bulletins', '/panel/announcement/back_end/tags', 'bulletin_categorys', 'approvals') || active_for_app_auth('Announcement') || active_for_ob_auths_object("BulletinCategory") ) do -%>
- <%= link_to content_tag(:i, nil, :class => 'icons-announcement') + t('admin.announcement'), panel_announcement_back_end_bulletins_path %>
+ <%= link_to content_tag(:i, nil, :class => 'icons-announcement') + t('announcement.announcement'), panel_announcement_back_end_bulletins_path %>
<%= content_tag :ul, :class => ("nav nav-list " + (visible_for_controllers('bulletins', '/panel/announcement/back_end/tags', 'bulletin_categorys', 'approvals')||active_for_ob_auths_object("BulletinCategory"))) do -%>
- <%= content_tag :li, link_to(t('announcement.all_articles'), panel_announcement_back_end_bulletins_path), :class => active_for_action('bulletins', 'index') %>
- <%= content_tag :li, link_to(t('announcement.add_new'), new_panel_announcement_back_end_bulletin_path), :class => active_for_action('bulletins', 'new') %>
- <%= content_tag :li, link_to(t('announcement.categories'), panel_announcement_back_end_bulletin_categorys_path), :class =>( active_for_action('bulletin_categorys', 'index') || active_for_ob_auths_object("BulletinCategory") ) %>
- <%= content_tag :li, link_to(t('announcement.tags'), panel_announcement_back_end_tags_path), :class => active_for_action('/panel/announcement/back_end/tags', 'index') %>
- <%= content_tag :li, link_to(t('announcement.bulletin.approval_setting'), panel_announcement_back_end_approval_setting_path), :class => active_for_action('approvals', 'setting') if (is_manager? rescue true) %>
- <%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "Announcement"}))), :class => active_for_app_auth('Announcement') if (is_admin? rescue nil) %>
+ <%= content_tag :li, link_to(t(:list_), panel_announcement_back_end_bulletins_path), :class => active_for_action('bulletins', 'index') %>
+ <%= content_tag :li, link_to(t(:add), new_panel_announcement_back_end_bulletin_path), :class => active_for_action('bulletins', 'new') %>
+ <%= content_tag :li, link_to(t(:categories), panel_announcement_back_end_bulletin_categorys_path), :class =>( active_for_action('bulletin_categorys', 'index') || active_for_ob_auths_object("BulletinCategory") ) %>
+ <%= content_tag :li, link_to(t(:tags), panel_announcement_back_end_tags_path), :class => active_for_action('/panel/announcement/back_end/tags', 'index') %>
+ <%= content_tag :li, link_to(t('approval.setting'), panel_announcement_back_end_approval_setting_path), :class => active_for_action('approvals', 'setting') if (is_manager? rescue true) %>
+ <%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "Announcement"}))), :class => active_for_app_auth('Announcement') if (is_admin? rescue nil) %>
<% end -%>
<% end -%>
<%= content_tag :li, :class =>( active_for_controllers('news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals')|| active_for_app_auth('news') || active_for_ob_auths_object("NewsBulletinCategory")) do -%>
- <%= link_to content_tag(:i, nil, :class => 'icons-announcement') + t('admin.news'), panel_news_back_end_news_bulletins_path %>
+ <%= link_to content_tag(:i, nil, :class => 'icons-announcement') + t(:news), panel_news_back_end_news_bulletins_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('news_bulletins', '/panel/news/back_end/tags', 'news_bulletin_categorys', 'news_approvals')) do -%>
- <%= content_tag :li, link_to(t('announcement.all_articles'), panel_news_back_end_news_bulletins_path), :class => active_for_action('news_bulletins', 'index') %>
- <%= content_tag :li, link_to(t('announcement.add_new'), new_panel_news_back_end_news_bulletin_path), :class => active_for_action('news_bulletins', 'new') %>
- <%= content_tag :li, link_to(t('announcement.categories'), panel_news_back_end_news_bulletin_categorys_path), :class => active_for_action('news_bulletin_categorys', 'index') || active_for_ob_auths_object("NewsBulletinCategory") %>
- <%= content_tag :li, link_to(t('announcement.tags'), panel_news_back_end_tags_path), :class => active_for_action('/panel/news/back_end/tags', 'index') %>
- <%= content_tag :li, link_to(t('announcement.bulletin.approval_setting'), panel_news_back_end_approval_setting_path), :class => active_for_action('news_approvals', 'setting') if (is_manager? rescue true) %>
- <%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "news"}))), :class => active_for_app_auth('news') if (is_admin? rescue nil) %>
+ <%= content_tag :li, link_to(t(:list_), panel_news_back_end_news_bulletins_path), :class => active_for_action('news_bulletins', 'index') %>
+ <%= content_tag :li, link_to(t(:add), new_panel_news_back_end_news_bulletin_path), :class => active_for_action('news_bulletins', 'new') %>
+ <%= content_tag :li, link_to(t(:categories), panel_news_back_end_news_bulletin_categorys_path), :class => active_for_action('news_bulletin_categorys', 'index') || active_for_ob_auths_object("NewsBulletinCategory") %>
+ <%= content_tag :li, link_to(t(:tags), panel_news_back_end_tags_path), :class => active_for_action('/panel/news/back_end/tags', 'index') %>
+ <%= content_tag :li, link_to(t('approval.setting'), panel_news_back_end_approval_setting_path), :class => active_for_action('news_approvals', 'setting') if (is_manager? rescue true) %>
+ <%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {key: "news"}))), :class => active_for_app_auth('news') if (is_admin? rescue nil) %>
<% end -%>
<% end -%>
<%#= content_tag :li, :class => active_for_controllers('users') do -%>
- <%#= link_to content_tag(:i, nil, :class => 'icons-member') + t('admin.member'), admin_users_path %>
+ <%#= link_to content_tag(:i, nil, :class => 'icons-member') + t(:member), admin_users_path %>
<%# end -%>
<%= content_tag :li, :class => active_for_controllers('page_contexts') || active_for_app_auth('page_content') || active_for_ob_auths_object("PageContext") do -%>
- <%= link_to content_tag(:i, nil, :class => 'icons-page') + t('admin.page'), panel_page_content_back_end_page_contexts_path %>
+ <%= link_to content_tag(:i, nil, :class => 'icons-page') + t(:page), panel_page_content_back_end_page_contexts_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('page_contexts')) do -%>
- <%#= content_tag :li, link_to(t('admin.all_articles'), panel_page_content_back_end_page_contexts_path), :class => active_for_action('page_context', 'index') %>
- <%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "page_content"}))), :class => active_for_app_auth('page_content') if (is_admin? rescue nil) %>
+ <%#= content_tag :li, link_to(t(:list_), panel_page_content_back_end_page_contexts_path), :class => active_for_action('page_context', 'index') %>
+ <%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "page_content"}))), :class => active_for_app_auth('page_content') if (is_admin? rescue nil) %>
<% end -%>
<% end -%>
<%= content_tag :li, :class => active_for_controllers('ad_banners', 'ad_images') ||active_for_ob_auths_object("AdBanner") ||active_for_app_auth('ad_banners') do -%>
- <%= link_to content_tag(:i, nil, :class => 'icons-link') + t('admin.ad_banner'), admin_ad_banners_path %>
+ <%= link_to content_tag(:i, nil, :class => 'icons-link') + t(':ad_banner'), admin_ad_banners_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('ad_banners', 'ad_images') ) do -%>
- <%#= content_tag :li, link_to(t('admin.ad.all_banners'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %>
- <%#= content_tag :li, link_to(t('admin.ad.new_banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %>
- <%#= content_tag :li, link_to(t('admin.ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %>
- <%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "ad_banners"}))), :class => active_for_app_auth('ad_banners') if (is_admin? rescue nil) %>
+ <%#= content_tag :li, link_to(t('list.ad_banner'), admin_ad_banners_path), :class => active_for_action('ad_banners', 'index') %>
+ <%#= content_tag :li, link_to(t('new.banner'), new_admin_ad_banner_path), :class => active_for_action('ad_banners', 'new') %>
+ <%#= content_tag :li, link_to(t('ad.new_image'), new_ad_image_admin_ad_banners_path), :class => active_for_action('ad_images', 'new') %>
+ <%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "ad_banners"}))), :class => active_for_app_auth('ad_banners') if (is_admin? rescue nil) %>
<% end -%>
<% end %>
<%= content_tag :li, :class => active_for_controllers('web_links', '/panel/web_resource/back_end/tags', 'web_link_categorys') || active_for_app_auth('web_resource') || active_for_ob_auths_object("WebLinkCategory") do -%>
- <%= link_to content_tag(:i, nil, :class => 'icons-link') + t('admin.link'), panel_web_resource_back_end_web_links_path %>
+ <%= link_to content_tag(:i, nil, :class => 'icons-link') + t(:link), panel_web_resource_back_end_web_links_path %>
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('web_links', '/panel/web_resource/back_end/tags', 'web_link_categorys')) do -%>
- <%= content_tag :li, link_to(t('admin.all_articles'), panel_web_resource_back_end_web_links_path), :class => active_for_action('web_links', 'index') %>
- <%= content_tag :li, link_to(t('announcement.add_new'), new_panel_web_resource_back_end_web_link_path), :class => active_for_action('web_links', 'new') %>
- <%= content_tag :li, link_to(t('announcement.categories'), panel_web_resource_back_end_web_link_categorys_path), :class => (active_for_action('web_link_categorys', 'index') || active_for_ob_auths_object("WebLinkCategory")) %>
- <%= content_tag :li, link_to(t('announcement.tags'), panel_web_resource_back_end_tags_path), :class => active_for_action('/panel/web_resource/back_end/tags', 'index') %>
- <%= content_tag :li, link_to(t('admin.module.authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "web_resource"}))), :class => active_for_app_auth('web_resource') if (is_admin? rescue nil) %>
+ <%= content_tag :li, link_to(t(:list_), panel_web_resource_back_end_web_links_path), :class => active_for_action('web_links', 'index') %>
+ <%= content_tag :li, link_to(t(:add), new_panel_web_resource_back_end_web_link_path), :class => active_for_action('web_links', 'new') %>
+ <%= content_tag :li, link_to(t(:categories), panel_web_resource_back_end_web_link_categorys_path), :class => (active_for_action('web_link_categorys', 'index') || active_for_ob_auths_object("WebLinkCategory")) %>
+ <%= content_tag :li, link_to(t(:tags), panel_web_resource_back_end_tags_path), :class => active_for_action('/panel/web_resource/back_end/tags', 'index') %>
+ <%= content_tag :li, link_to(t('admin.module_authorization'),admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: "web_resource"}))), :class => active_for_app_auth('web_resource') if (is_admin? rescue nil) %>
<% end -%>
<% end -%>
<%#= content_tag :li, :class => active_for_controllers('assets', '/admin/asset_tags', 'asset_categories') do -%>
- <%#= link_to content_tag(:i, nil, :class => 'icons-link') + t('admin.asset'), admin_assets_path %>
+ <%#= link_to content_tag(:i, nil, :class => 'icons-link') + t(:asset), admin_assets_path %>
<%#= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('assets', '/admin/asset_tags', 'asset_categories')) do -%>
- <%#= content_tag :li, link_to(t('admin.all_assets'), admin_assets_path), :class => active_for_action('assets', 'index') %>
+ <%#= content_tag :li, link_to(t('list.asset'), admin_assets_path), :class => active_for_action('assets', 'index') %>
<%#= content_tag :li, link_to(t('admin.categories'), admin_asset_categories_path), :class => active_for_action('asset_categories', 'index') %>
- <%#= content_tag :li, link_to(t('admin.tags'), admin_asset_tags_path), :class => active_for_action('/admin/asset_tags', 'index') %>
+ <%#= content_tag :li, link_to(t(:tags), admin_asset_tags_path), :class => active_for_action('/admin/asset_tags', 'index') %>
<%# end -%>
<%# end -%>
diff --git a/app/views/layouts/panel.html.erb b/app/views/layouts/panel.html.erb
deleted file mode 100644
index b21c66cb..00000000
--- a/app/views/layouts/panel.html.erb
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
R4
-
- <%= yield :page_specific_link %>
- <%= stylesheet_link_tag "application" %>
- <%= javascript_include_tag "application" %>
- <%= csrf_meta_tag %>
-
-
-
-
-
-
-
-
-
-
-
-
<%= yield %>
-
<%= yield :secondary %>
-
<%= yield :tertiary %>
-
-
-
-
-<%= yield :page_specific_javascript %>
-
-
diff --git a/app/views/shared/_privilege_user.html.erb b/app/views/shared/_privilege_user.html.erb
index ba68996f..504689a8 100644
--- a/app/views/shared/_privilege_user.html.erb
+++ b/app/views/shared/_privilege_user.html.erb
@@ -1,6 +1,6 @@
<%= user.cache_dept[I18n.locale.to_s] rescue ''%>
- <%= content_tag :div,:data=>{'original-title'=>t('announcement.bulletin.approval_setting_window_title'),:content => (user.cache_dept[I18n.locale.to_s] rescue '')},:class=>"checkbox clear" do %>
+ <%= content_tag :div,:data=>{'original-title' => t('approval.setting_window_title'),:content => (user.cache_dept[I18n.locale.to_s] rescue '')},:class=>"checkbox clear" do %>
diff --git a/config/initializers/middle_site_connection.rb b/config/initializers/middle_site_connection.rb
index 345ad464..6d15814c 100644
--- a/config/initializers/middle_site_connection.rb
+++ b/config/initializers/middle_site_connection.rb
@@ -15,7 +15,7 @@ module MiddleSiteConnection
}
def self.establish
- $mid_site_connection = Mysql2::Client.new(@mid_host)
+ # $mid_site_connection = Mysql2::Client.new(@mid_host)
end
end
\ No newline at end of file
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 1b064058..d27a6112 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1,315 +1,314 @@
-# Sample localization file for English. Add more files in this directory for other locales.
-# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
-
en:
-
+
_locale: English
-
- me: Me
+
+ access:
+ denied:
+ app:
+ not_sub_manager: Access Denied for you are not SubManager for this app
+ not_manager: Access Denied for you are not SubManager for this app
+ not_authed_user: Access Denied for you are not User for this app
+ object: Access Denied for you don't have permission for this object
+ not_admin: Access Denied for you are not Admin
account_settings: Account settings
+ action: Action
+ ad:
+ ab_fx: FX
+ banner_best_size: Banner Best Size
+ best_size: Best size
+ new_image: New image
+ not_showing: Not showing
+ picture_list: Picture List
+ sec_place_holder: Enter 3 if 3 sec
+ showing: Showing
+ success_destroy_ad_image: Image successfully destroyed
+ trans_unit_sec: sec
+ transition_sec: Transition time
+ update_banner: Update Banner
+ widget_info_for_ad_image_size: "Best size with: %{best_size}"
+ ad_banner: AD Banner
add: Add
- back: Back
- browse: Browse
- cancel: Cancel
- cant_empty_star: Cannot be empty (*)
- create_fail: Creation failed
- create: Create
- continued: continued
- delete: Delete
- desktop: Desktop
- disable: Disable
- dots: ●●●●●●
- downloaded: Downloaded
- download: Download
- edit: Edit
- email: Email
- enable: Enable
- forgot_password: Forgot your password?
- help: Help
- hide: Hide
- homepage: Homepage
- login: Login
- logout: Logout
- no_: "No"
- nothing: Nothing
- nccu: NCCU
- nccu_c:
- nccu_ldap_uid: NCCU LDAP Account
- off_upcase: "OFF"
- on_upcase: "ON"
- or_lower: or
- password: Password
- register: Register
- remember_me: Remember me
- search_nccu: Search NCCU
- show: Show
- submit: Submit
- preview: Preview
- sure?: Are you sure?
- update: Update
- update_failed: Update failed
- view: View
- view_count: View count
- yes_: "Yes"
+ add_item: Add item
addthis_tools:
add_to_bookmark: Add this to bookmark
+ admin: Admin
all_content: All Content
all_file: All File
all_member: All Member
+ always_display_title: Always displayed in the title bar
+ app_auth:
+ assigning_manager:
+ add_manager_fail: Manager successfully added
+ add_manager_ok: Adding manager failed
+ assigning_sub_manager:
+ add_sub_manager_fail: Sub-manager successfully added
+ add_sub_manager_ok: Adding sub-manager failed
+ can_not_add_this_user: This user cannot be added
+ delete_manager:
+ fail: Removal of manager failed
+ success: Manager successfully removed
+ delete_sub_manager:
+ fail: Removal of sub-manager failed
+ success: Sub-manager successfully removed
+ failed_no_user: Failed, no user
+ approval:
+ not_pass: Not pass
+ not_pass_reason: Not pass reason
+ pass: Pass
+ setting: Approval setting
+ stat: Approval status
+ user_list: Unit
+ approval_: Approval
+ asset: Asset
+ auth:
+ add_manager: Add Manager
+ add_sub_manager: Add SubManager
+ add_to_block_list: Add to block List
+ add_to_privilege_list: Add to privilege List
+ all_member: All Member
+ auth_by: - Authorized by %{user_display_name}
+ by_role: By Role
+ by_sub_role: By SubRole
+ author: Author
+ back: Back
+ basic: Basic
+ browse: Browse
+ cancel: Cancel
+ cant_delete_self: You can not delete yourself.
+ cant_empty_star: Cannot be empty (*)
+ cant_revoke_self_admin: You can not revoke your admin role yourself.
+ category: Category
+ category_auth: Category Authorization
+ clear: Clear
content: Content
+ create:
+ error:
+ link: Error when creating link.
+ page: Error when creating page.
+ fail: Creation failed
+ success:
+ asset_category: Asset category was successfully created.
+ link: Link was successfully created.
+ page: Page was successfully created.
+ user: User was successfully created.
+ create_: Create
data: Data
- file: File
- file_type: File Type
- hits: Hits
- item: Item
- member: Member
- module: Module
- most_visited_page: Most Visited Page
- quantity: Quantity
- recent_update: Recent Update
- referral_in_links: Referral in Links
- role: Role
- site_info: Site Info
- site_name: Site Name
- sitemap: Sitemap
- statistics: Statistics
- title: Title
- total_visitors: Total Visitors
- traffic: Traffic
-
- visitors_today: Today's visitors
- visitors_this_week: This week's visitors
- visitors_this_month: This month's visitors
- visitors_this_year: This year's visitors
-
- errors:
- at_least_one: must at least have one value
-
- admin:
- access:
- denied:
- app:
- not_sub_manager: Access Denied for you are not SubManager for this app
- not_manager: Access Denied for you are not SubManager for this app
- not_authed_user: Access Denied for you are not User for this app
- not_admin: Access Denied for you are not Admin
- object: "Access Denied for you don't have permission for this object"
- action: Action
- ad_banner: AD Banner
- ad:
- sec_place_holder: Enter 3 if 3 sec
- ab_fx: FX
- all_banners: AdBanner list
- banner_best_size: Banner Best Size
- best_size: Best size
- new_banner: New banner
- new_image: New image
- showing: Showing
- not_showing: NotShowing
- picture_list: Picture List
- title: Title
- transition_sec: Transition time
- trans_unit_sec: sec
- update_banner: Update Banner
- widget_info_for_ad_image_size: "Best size with: %{best_size}"
- add: Add
- add_item: Add item
- add_language: Add language
- add_drop_down_item: +Add Menu Item
- admin: Admin
- action: Action
- all_articles: List
- always_display_title: Always displayed in the title bar
- announcement: Announcement
- asset: Asset
- assets:
- file: File
- album: Album
- video: Video
- book: Book
- attributes: Attributes
- author: Author
- calendar: Calendar
- cant_delete_self: You can not delete yourself.
- cant_revoke_self_admin: You can not revoke your admin role yourself.
- category: Category
- choose_file: Choose a file...
- class: Class
- content: Content
- create_error_link: Error when creating link.
- create_error_page: Error when creating page.
- create_success_home: Homepage was successfully created.
- create_success_layout: Layout was successfully created.
- create_success_link: Link was successfully created.
- create_success_page: Page was successfully created.
- create_success_snippet: Snippet was successfully created.
- create_success_user: User was successfully created.
- data: Data
- dashboard: Dashboard
- delete_language: Delete language
- description: Description
- design: Template
- disable_language: Disable language
- editing_home: Editing homepage
- editing_layout: Editing layout
- editing_link: Editing link
- editing_page: Editing page
- editing_snippet: Editing snippet
- editing_info: Editing user information
- editing_role: Editing user role
- email: Email
- enable_language: Enable language
- enabled_for: Enabled for
- file_name: Filename
- file_size: File size
- file_upload: File upload
- format: Format
- home: Home
- id: ID
- info: Information
- intro: Introduction
- is_published: Is published
- item: Item
- key: Key
- keywords: Keywords
- language: Language
- layout: Layout
- layout_name: Layout name
- links: Links
- link: Links
- list_assets: Assets list
- list_designs: Designs list
- list_items: Items list
- list_puchases: Purchases list
- list_snippets: Snippets list
- list_users: Users list
- list_infos: User information list
- list_roles: User roles list
- mail_address: Address
- mail_port: Port
- mail_domain: Domain
- mail_authentication: Authentication
- mail_user_name: User Name
- mail_password: Password
- mail_tls: TLS
- mail_enable_starttls_auto: Enable Start TLS Auto
- member: Member
- menu_enabled_for: Menu enabled for
- module:
- authorization: Module Authorization
- move_down: Move down
- move_up: Move up
- multilingual: Multilingual
- my_avatar: My Avatar
- no_home_page: You don't have a homepage
- no_layout: You don't have a layout
- name: Name
- nccu: NCCU Custom
- nccu_c:
- nccu_ldap_uid: NCCU LDAP Account
- new_asset: New asset
- new_component: New component
- new_design: New design
- new_home: New homepage
- new_layout: New layout
- new_link: New link
- new_page: New page
- new_snippet: New snippet
- new_user: New user
- new_info: New user information
- new_role: New user role
- news: News
- non_multilingual: Non multilingual
- object_auth:
- list_title_of_users: %{auth_title} Auth List
- update_done: Update done,reulst showing in list
- update_failed: Update failed
- options: Options
- orig_upload_file: Original filename
- page: Page
- page_context:
- edit: Edit
- ob_auth:
- edit: Category authorization
- page_part_kinds:
- text: Text Area
- public_r_tag: System Widget
- module_widget: Plug-in Module Widget
- position: Position
- published?: Published?
- purchase: Purchase
- registered: Registered
- role: Role
- roles: Roles
- setup_member: Member setup
- setup_translations: Translations setup
- setup_designs: Designs setup
- site: Site
- site_description: Site description
- site_footer: Site footer
- site_settings: Site Setting
- site_sub_menu: Site sub-menu
- site_title: Site title
- super_pages: Super pages
- structure: Structure
- tags: Tags
- title: Title
- translation: Translation
- type: Type
- up_to_date: Up-to-date
- update_error_link: Error when updating link.
- update_error_page: Error when updating page.
- update_success_content: Content was successfully updated.
- update_success_home: Homepage was successfully updated.
- update_success_layout: Layout was successfully updated.
- update_success_link: Link was successfully updated.
- update_success_page: Page was successfully updated.
- update_success_snippet: Snippet was successfully updated.
- update_success_user: User was successfully updated.
- upload_design: Upload design
- url: URL
- user: User
- user_role:
- auth:
- all_member: All Member
- manager: Manager
- sub_mamanger: SubManager
- by_role: By Role
- by_sub_role: By SubRole
- block_list: Block List
- privilege_list: Privilege List
- add_manager: Add Manager
- add_sub_manager: Add SubManager
- add_to_block_list: Add to block List
- add_to_privilege_list: Add to privilege List
- auth_by: -AuthBy %{user_display_name}
- info: User information
- panel: User panel
- role: User role
-
dashboard:
bulletin: Announcement
news_bulletin: News
page_context: Page
web_link: Link
-
- panel:
-
+ dashboard_: Dashboard
+ deadline: Deadline
+ default_css: Default CSS
+ delete: Delete
+ delete_file: Delete file
+ description: Description
+ desktop: Desktop
+ disable: Disable
+ dots: ●●●●●●
+ download: Download
+ downloaded: Downloaded
+ edit: Edit
+ editing:
+ asset: Editing asset
+ design: Editing design
+ link: Editing link
+ page: Editing page
+ email: Email
+ enable: Enable
+ enabled_for: Enabled for
+ end: End
+ end_date: End date
+ errors:
+ at_least_one: must at least have one value
+ file:
+ size: File size
+ type: File type
+ upload: File upload
+ file_: File
+ file_type: File Type
+ forgot_password: Forgot your password?
+ help: Help
+ hidden: Hidden
+ hide: Hide
+ hits: Hits
+ homepage: Homepage
+ horizontal: Horizontal
+ hot: Hot
+ image: Image
+ intro: Introduction
+ is_published: Is published
+ item: Item
+ key: Key
+ last_modified: Last modified
+ layout: Layout
+ link: Link
+ list:
+ ad_banner: AdBanner list
+ asset: Asset list
+ info: User information list
+ link: Link list
+ purchase: Purchases list
+ role: User roles list
+ user: Users list
+ list_: List
+ list_lower: list
+ login: Login
+ logout: Logout
+ mail:
+ address: Address
+ authentication: Authentication
+ domain: Domain
+ enable_starttls_auto: Enable Start TLS Auto
+ password: Password
+ port: Port
+ setting: Mail settings
+ tls: TLS
+ user_name: User Name
+ manager: Manager
+ me: Me
+ member: Member
+ menu_enabled_for: Menu enabled for
modal:
close: Close
preview: Preview
- sys:
- not_previewable: "Preview not support"
- limit_of_upload_file_size: "Upload file must be less than: %{best_size}"
- preview_only_for_img: "Preview only supprt with file type:jpg,png,gif,bmp"
- can_not_display_due_to_no_context: "Can not display due to no context for English"
- module_page_lang_not_support: "We are sorry, this page is not available for English"
+ module: Module
+ module_authorization: Module Authorization
+ more_plus: more+
+ most_visited_page: Most Visited Page
+ multilingual: Multilingual
+ name: Name
+ nccu_c:
+ nccu_ldap_uid: NCCU LDAP Account
+ new:
+ asset: New asset
+ banner: New banner
+ design: New design
+ link: New link
+ page: New page
+ user: New user
+ info: New user information
+ role: New user role
+ news: News
+ no_: "No"
+ no_deadline: No deadline
+ object_auth:
+ a_object_must_have_only_one_object_auth_profile_for_each_action: ''
+ list_title_of_users: %{auth_title} authorization list
+ new_object_auth: New authorization
+ off_upcase: "OFF"
+ on_upcase: "ON"
+ options: Options
+ or_lower: or
+ organization: Organization
+ page: Page
+ page_part_kinds:
+ module_widget: Plug-in Module Widget
+ public_r_tag: System Widget
+ text: Text Area
+ passed: Approved
+ password: Password
+ pending: Pending
+ picture: Picture
+ postdate: Postdate
+ posted_by: Posted by
+ preview: Preview
+ purchase: Purchase
+ quantity: Quantity
+ quick_edit: Quick edit
+ recent_update: Recent Update
+ referral_in_links: Referral in Links
+ register: Register
+ registered: Registered
+ rejected: Rejected
+ rejected_reason: 'Reason:'
+ rejected_reason_empty: "Approval rejected, no referencable information"
+ related_links: Related Links
+ role: Role
+ Roles: Roles
+ ruling_site: Ruling Site
search:
- not_found: "NOT FOUND"
domains: Google Search Domains
- site_search: Site Search
- sitesearch: Google Site Search
- site_setting_help: Please Enter the search argument for Google search.
+ not_found: "NOT FOUND"
result_get: "Searched about ' %{search_word} ' Found %{item_num} items"
+ sitesearch: Google Site Search
too_many: "Search about ' %{search_word} 'resulted more than %{exceed_num} items maybe try to search with more specific terms?"
unit_get: "Listed items created by :%{unit_name} Found %{item_num} items"
+ search_nccu: Search NCCU
+ setup_member: Member setup
+ show: Show
+ site:
+ description: Site description
+ description_help: ''
+ footer: Site footer
+ footer_help: ''
+ info: Site information
+ keywords: Site keywords
+ keywords_help: ''
+ language: Site language
+ search: Site Search
+ search_help: Please Enter the search argument for Google search.
+ settings: Site setting
+ sub_menu: Site sub-menu
+ title: Site title
+ title_help: ''
+ site_: Site
+ site_info: Site Info
+ sitemap: Sitemap
+ site_name: Site Name
+ start: Start
+ start_date: Start date
+ statistics: Statistics
+ status: Status
+ structure: Structure
+ sub_manager: SubManager
+ submit: Submit
+ submit_approval: Submit approval
+ submit_user_list: Submit user list
+ sure?: "Are you sure?"
+ sys:
+ can_not_display_due_to_no_context: "Can not display due to no context for English"
+ limit_of_upload_file_size: "Upload file must be less than: %{best_size}"
+ module_page_lang_not_support: "We are sorry, this page is not available for English"
+ not_previewable: "Preview not support"
+ preview_only_for_img: "Preview only supprt with file type: jpg, png, gif, bmp"
+ system_info: System information
+ tag_cloud: Tag cloud
+ tags: Tags
+ template: Template
+ template_name: Template name
+ text: Text
+ theme: Theme
+ themes: Themes
+ title: Title
+ top: Top
+ total_visitors: Total Visitors
+ traffic: Traffic
+ type: Type
+ unit_name: Unit name
+ up_to_date: Up-to-date
+ update:
+ error:
+ link: Error when updating link.
+ fail: Update failed
+ success:
+ content: Content was successfully updated.
+ link: Link was successfully updated.
+ page: Page was successfully updated.
+ user: User was successfully updated.
+ success_: Successfully updated
+ update_: Update
+ update_at: Update at
+ url: URL
+ use_status: ''
+ user: User
+ version: Version
+ vertical: Vertical
+ view: View
+ view_count: View count
+ visitors_this_month: This month's visitors
+ visitors_this_week: This week's visitors
+ visitors_this_year: This year's visitors
+ visitors_today: Today's visitors
+ yes_: "Yes"
diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml
index debefaf7..6dfa6c23 100644
--- a/config/locales/zh_tw.yml
+++ b/config/locales/zh_tw.yml
@@ -1,4 +1,319 @@
-zh_tw:
+en:
+
+ _locale: English
+
+ access:
+ denied:
+ app:
+ not_sub_manager: 拒絕存取,因你不是此應用程式次管理員
+ not_manager: 拒絕存取,因你不是此應用程式管理員
+ not_authed_user: 拒絕存取,因你不是此應用程式授權使用者
+ object: 拒絕存取,因你沒有權限
+ not_admin: 拒絕存取,因你不是此應用程式管理員
+ account_settings: 帳號設定
+ action: 操作
+ ad:
+ ab_fx: 轉場效果
+ banner_best_size: 輪播圖片尺寸
+ best_size: 最佳尺寸
+ new_image: 新增輪播圖片
+ not_showing: 沒有顯示
+ picture_list: 圖片列表
+ sec_place_holder: 每張輪播圖片顯示秒數(3秒就請輸入3)
+ showing: 顯示中
+ success_destroy_ad_image: 刪除圖片成功
+ trans_unit_sec: 秒
+ transition_sec: 轉場單位時間
+ update_banner: 更新輪播
+ widget_info_for_ad_image_size: "此區塊圖片尺寸使用: %{best_size}"
+ ad_banner: 廣告輪播
+ add: 新增
+ add_item: 新增項目
+ addthis_tools:
+ add_to_bookmark: 加入書籤
+ admin: 管理員
+ all_content: 所有內容
+ all_file: 所有檔案
+ all_member: 所有會員
+ always_display_title: 永遠顯示標題
+ app_auth: 應用程式作者
+ assigning_manager: 指派管理員
+ add_manager_fail: 新增管理員失敗
+ add_manager_ok: 新增管理員成功
+ assigning_sub_manager: 指派次管理員
+ add_sub_manager_fail: 新增次管理員失敗
+ add_sub_manager_ok: 新增次管理員成功
+ can_not_add_this_user: 不能新增這個使用員
+ delete_manager: 刪除管理員
+ fail: 刪除管理員失敗
+ success: 刪除管理員成功
+ delete_sub_manager: 刪除次管理員
+ fail: 刪除次管理員失敗
+ success: 刪除次管理員成功
+ failed_no_user: 失敗,不是使用者
+ approval:
+ not_pass: 無法通過
+ not_pass_reason: 無法通過原因
+ pass: 通過
+ setting: 通過設定
+ stat: 通過身份
+ user_list: 使用者列表
+ approval_: 核准
+ asset: 資產
+ auth:
+ add_manager: 新增管理員
+ add_sub_manager: 新增次管理員
+ add_to_block_list: 增加到封鎖名單
+ add_to_privilege_list: 增加到特許名單
+ all_member: 所有會員
+ auth_by: -由%{user_display_name}授權
+ by_role: 用戶身份
+ by_sub_role: 次用戶身份
+ author: 作者
+ back: 回上一步
+ basic: 基本
+ browse: 瀏覽
+ cancel: 取消
+ cant_delete_self: 不可以刪除自己
+ cant_empty_star: 不能為空白 (*)
+ cant_revoke_self_admin: 不可以撤銷自己的管理身份
+ category: 類別
+ category_auth: 類別授權
+ clear: 清除
+ content: 內容
+ create: 建立
+ error: 錯誤
+ link: 建立連結時出錯
+ page: 建立頁面時出錯
+ fail: 建立失敗
+ success:
+ asset_category: 資產類別已成功建立
+ link: 連結已成功建立
+ page: 頁面已成功建立
+ user: 使用者已成功建立
+ create_: 建立
+ data: 資料
+ dashboard:
+ bulletin: 公告
+ news_bulletin: 新聞
+ page_context: 頁面內容
+ web_link: 連結
+ dashboard_: 儀表版
+ deadline: 最後期限
+ default_css: 預設樣式表
+ delete: 刪除
+ delete_file: 刪除檔案
+ description: 描述
+ desktop: 桌面
+ disable: 關閉
+ dots: ●●●●●●
+ download: 下載
+ downloaded: 已下載
+ edit: 編輯
+ editing:
+ asset: 編輯資產
+ design: 編輯設計
+ link: 編輯連結
+ page: 編輯頁面
+ email: 電子郵件
+ enable: 開啟
+ enabled_for: 啟用
+ end: 結束
+ end_date: 結束日期
+ errors:
+ at_least_one: 至少擁有一個值
+ file:
+ size: 檔案大小
+ type: 檔案類型
+ upload: 上傳檔案
+ file_: 檔案
+ file_type: 檔案類型
+ forgot_password: 忘記密碼?
+ help: 幫助
+ hidden: 隱藏的
+ hide: 隱藏
+ hits: 點擊次數
+ homepage: 首頁
+ horizontal: 水平的
+ hot: 熱門
+ image: 圖片
+ intro: 簡介
+ is_published: 已發佈
+ item: 項目
+ key: 關鍵
+ last_modified: 最後一次修改
+ layout: 範本
+ link: 連結
+ list:
+ ad_banner: 廣告輪播列表
+ asset: 資產列表
+ info: 使用者資訊列表
+ link: 連結列表
+ purchase: 已購買項目列表
+ role: 使用者角色列表
+ user: 使用者列表
+ list_: 列表
+ list_lower: 列表
+ login: 登入
+ logout: 登出
+ mail:
+ address: 電子郵件地址
+ authentication: 電子郵件認證
+ domain: 電子郵件網域名稱
+ enable_starttls_auto: 啟用安全通訊
+ password: 密碼
+ port: 電子郵件傳輸埠
+ setting: 電子郵件設定
+ tls: 電子郵件TLS
+ user_name: 電子郵件帳號
+ manager: 管理者
+ me: 我
+ member: 會員
+ menu_enabled_for: 選單啟用
+ modal:
+ close: 關閉
+ preview: 預覽
+ module: 模組
+ module_authorization: 模組授權
+ more_plus: 更多+
+ most_visited_page: 最多瀏覽頁面
+ multilingual: 多語系
+ name: 名稱
+ nccu_c:
+ nccu_ldap_uid: 政治大學LDAP帳號
+ new:
+ asset: 新增資產
+ banner: 新增橫幅
+ design: 新增設計
+ link: 新增連結
+ page: 新增頁面
+ user: 新增使用者
+ info: 新增使用者資訊
+ role: 新增使用者角色
+ news: 公告
+ no_: "不是"
+ no_deadline: 沒有期限
+ object_auth:
+ a_object_must_have_only_one_object_auth_profile_for_each_action: ''
+ list_title_of_users: %{auth_title} 授權列表
+ new_object_auth: 新增授權
+ off_upcase: "開啟"
+ on_upcase: "關閉"
+ options: 選項
+ or_lower: 或
+ organization: 組織
+ page: 頁面
+ page_part_kinds:
+ module_widget: 外掛模塊
+ public_r_tag: 系統模塊
+ text: 文字區域
+ passed: 已認可
+ password: 密碼
+ pending: 期間
+ picture: 圖片
+ postdate: 張貼日期
+ posted_by: 張貼人
+ preview: 預覽
+ purchase: 購買
+ quantity: 數量
+ quick_edit: 快速編輯
+ recent_update: 近期更新
+ referral_in_links: 參考連結
+ register: 註冊
+ registered: 已註冊
+ rejected: 拒絕
+ rejected_reason: '拒絕原因:'
+ rejected_reason_empty: "拒絕核准, 沒有參考資訊"
+ related_links: 相關連結
+ role: 角色
+ Roles: 角色
+ ruling_site: 銳綸網站
+ search:
+ domains: Google Search Domains
+ not_found: "沒有搜尋結果"
+ result_get: "搜尋標題有關 ' %{search_word} ' 共搜尋到%{item_num}筆資料"
+ sitesearch: 全站搜尋
+ too_many: "搜尋有關 ' %{search_word} '尋找到超過 %{exceed_num} 筆資料,請嘗試加入更多關鍵字縮小搜尋範圍,以作更精確的搜尋?"
+ unit_get: "列出由 :%{unit_name}發佈的資料,共有%{item_num}筆"
+ search_nccu: 搜尋政治大學
+ setup_member: 會員設定
+ show: 顯示
+ site:
+ description: 網站描述
+ description_help: ''
+ footer: 網站頁尾
+ footer_help: ''
+ info: 網站資訊
+ keywords: 搜尋關鍵字
+ keywords_help: ''
+ language: 網站語言
+ search: 網站搜尋
+ search_help: 請輸入送交Google搜尋的參數
+ settings: 基本設定
+ sub_menu: 次選單
+ title: 網站標題
+ title_help: ''
+ site_: 網站
+ site_info: 網站資訊
+ sitemap: 網站地圖
+ site_name: 網站名稱
+ start: 開始
+ start_date: 開始日期
+ statistics: 統計資訊
+ status: 身份
+ structure: 結構
+ sub_manager: 次管理員
+ submit: 送出
+ submit_approval: 送出已核准
+ submit_user_list: 送出使用者列表
+ sure?: "您確定嗎?"
+ sys:
+ can_not_display_due_to_no_context: "因為沒有中文版本,所以無法顯示"
+ limit_of_upload_file_size: "上傳檔案大小限制: %{best_size}"
+ module_page_lang_not_support: "很抱歉,此頁面沒有開放中文版本"
+ not_previewable: "不支援預覽"
+ preview_only_for_img: "預覽僅支援:jpg,png,gif,bmp等圖片格式"
+ system_info: 系統資訊
+ tag_cloud: 標籤雲
+ tags: 標籤
+ template: 樣版
+ template_name: 樣版名稱
+ text: 文字
+ theme: 主題
+ themes: 主題
+ title: 標題
+ top: 置頂
+ total_visitors: 總計造訪人次
+ traffic: 流量
+ type: 類型
+ unit_name: 單位名稱
+ up_to_date: 最新版本
+ update:
+ error:
+ link: 更新連接時出錯
+ fail: 更新消息
+ success:
+ content: 內容已更新成功
+ link: 連結已更新成功
+ page: 頁面已更新成功
+ user: 使用者已更新成功
+ success_: 更新成功
+ update_: 更新
+ update_at: 在…更新
+ url: 網址
+ use_status: ''
+ user: 使用者
+ version: 版本
+ vertical: 垂直的
+ view: 檢視
+ view_count: 查看次數
+ visitors_this_month: 本月造訪人次
+ visitors_this_week: 本星期造訪人次
+ visitors_this_year: 今年造訪人次
+ visitors_today: 今日造訪人次
+ yes_: "是"
+
+
mongoid:
models:
news_bulletin: 新聞
@@ -15,543 +330,3 @@ zh_tw:
web_link:
title: 名稱
url: 路徑
-
-
- _locale: 中文
-
- me: 我
- account_settings: 帳號設定
- add: 新增
- back: 回上一步
- browse: 選擇檔案
- cancel: 取消
- cant_empty_star: 不能為空 (*)
- continued: 詳讀全文
- create: 新增
- create_fail: 創建失敗
- delete: 刪除
- desktop: 桌面
- disable: 禁用
- dots: …
- downloaded: 已下載
- download: 下載
- edit: 編輯
- email: 電子郵件
- enable: 啟用
- forgot_password: 忘記密碼?
- help: 協助
- hide: 隱藏
- homepage: 首頁
- login: 登入
- logout: 登出
- nccu: 政大
- nccu_c:
- nccu_ldap_uid: iNCCU帳號
- no_: "No"
- nothing: 無
- off_upcase: "OFF"
- on_upcase: "ON"
- or_lower: 或
- password: 密碼
- register: 註冊
- remember_me: 記住我
- search_nccu: 搜尋政大
- show: 顯示
- submit: 送出
- preview: 預覽
- sure?: 您肯定嗎?
- update: 更新
- update_failed: 更新失敗
- view: 檢視
- view_count: 查看次數
- yes_: "Yes"
-
- addthis_tools:
- add_to_bookmark: 加入書籤
- all_content: 全部內容有
- all_file: 全部檔案有
- all_member: 成員總數
- content: 內容
- data: 數據
- file: 檔案
- file_type: 檔案類型
- hits: 點擊率
- item: 項目
- member: 會員
- module: 模組
- most_visited_page: 熱門頁面
- quantity: 數量
- recent_update: 近期更新
- referral_in_links: 外部推薦連結
- role: 角色
- site_info: 網站資訊
- site_name: 網站名稱
- sitemap: 網站地圖
- statistics: 統計
- title: 標題
- total_visitors: 造訪次數
- traffic: 流量
-
- visitors_today: 今日造訪
- visitors_this_week: 本星期造訪
- visitors_this_month: 本月造訪
- visitors_this_year: 今年造訪
-
- errors:
- at_least_one: 必須至少有一個值
-
- admin:
- access:
- denied:
- app:
- not_sub_manager: 拒絕存取因你不是此應用程式次管理員
- not_manager: 拒絕存取因你不是此應用程式管理員
- not_authed_user: 拒絕存取因你不是此應用程式授權使用者
- not_admin: 拒絕存取因你不是此應用程式次管理員
- object: 拒絕存取因你不是網站管理者
- action: 操作
- ad_banner: 廣告輪播
- ad:
- sec_place_holder: 3秒請輸入3
- ab_fx: 轉場特效
- all_banners: 輪播清單
- banner_best_size: Banner 尺寸
- best_size: 最佳尺寸
- cate_auth: 分類授權
- delete_banner: 刪除整組輪播
- new_banner: 新增輪播
- new_image: 新增橫幅
- showing: 顯示中
- not_showing: 沒有顯示
- picture_list: 圖片列表
- title: 標題
- transition_sec: 轉場單位時間
- trans_unit_sec: 秒
- update_banner: 更新輪播
- widget_info_for_ad_image_size: "此區塊圖片尺寸請使用 %{best_size}"
- add: 新增
- add_item: 新增項目
- add_language: 新增語言
- add_drop_down_item: +增加Orbit選單
- admin: 網站管理者
- all_articles: 列表
- always_display_title: 永遠顯示於標題列
- announcement: 公告管理
- asset: 資產
- assets:
- file: 檔案
- album: 相簿
- video: 影片
- book: 書籍
- attributes: 屬性
- author: 作者
- calendar: 行事曆
- cant_delete_self: 您不可以刪除自己。
- cant_revoke_self_admin: 您不可以撤銷自己的管理身份。
- category: 類別
- choose_file: 請選擇一個文件...
- class: 階級
- content: 內容
- contenteditable:
- update_done: 更新完成
- update_failed: 更新失敗
- create_error_link: 新增連接時出錯。
- create_error_page: 新增頁面時出錯。
- create_success_home: 首頁已成功新增。
- create_success_layout: 樣板已成功新增。
- create_success_link: 連結已成功新增。
- create_success_page: 頁面已成功新增。
- create_success_home: 首頁已成功新增。
- create_success_layout: 佈局已成功新增。
- create_success_link: 連結已成功新增。
- create_success_page: 頁面已成功新增。
- create_success_snippet: 片段已成功新增。
- create_success_user: 用戶已成功新增。。
- dashboard: 儀表板
- data: 選擇檔案
- delete_language: 刪除語言
- description: 描述
- design: 版型管理
- disable_language: 禁用語言
- edit: 編輯
- editing_home: 編輯首頁
- editing_layout: 編輯樣板
- editing_link: 編輯連結
- editing_page: 編輯頁面
- editing_snippet: 編輯片段
- editing_info: 編輯用戶資料
- editing_role: 編輯用戶身份
- email: Email
- enable_language: 啟用語言
- enabled_for: 啟用
- file_name: 檔名
- file_size: 檔案大小
- file_upload: 文件上載
- format: 格式
- home: 首頁
- id: ID
- info: 資料
- intro: 簡介
- is_published: 被出版
- item: 網站架構
- key: 關鍵
- keywords: 關鍵字
- language: 語言
- layout: 佈局
- layout_name: 佈局名字
- link: 連結管理
- links: 網路資源
- list_assets: 資產列表
- list_designs: 設計列表
- list_items: 項目列表
- list_puchases: 購買清單
- list_snippets: 斷片列表
- list_users: 使用列表
- list_infos: 用戶資料列表
- list_roles: 用戶身份列表
- mail_address: 郵件地址
- mail_port: 傳輸埠
- mail_domain: 網域名稱
- mail_authentication: 認證
- mail_user_name: 帳號
- mail_password: 密碼
- mail_tls: TLS
- mail_enable_starttls_auto: Enable Start TLS Auto
- member: 會員
- menu_enabled_for: 選單啟用
- module:
- authorization: 模組授權
- move_down: 往下移
- move_up: 往上移
- multilingual: 多種語言
- my_avatar: 我的頭像
- no_home_page: 您沒有首頁
- no_layout: 您沒有佈局
- name: 名稱
- nccu: 政大客制
- nccu_c:
- nccu_ldap_uid: NCCU LDAP 帳號
- new_asset: 新增資產
- new_component: 新增元件
- new_design: 新設計
- new_home: 新增首頁
- new_layout: 新增樣板
- new_link: 新增連結
- new_page: 新增頁面
- new_snippet: 新增片段
- new_user: 新增使用
- new_info: 新增用戶資料
- new_role: 新增用戶身份
- news: 新聞
- non_multilingual:
- object_auth:
- list_title_of_users: 授權清單-%{auth_title}
- update_done: 更新完成,結果顯示於清單
- update_failed: 更新失敗
- options: 選項
- orig_upload_file: 原上傳檔名
- page: 頁面管理
- page_context:
- edit: 編輯
- ob_auth:
- edit: 分類授權
- page_part_kinds:
- text: 文字區塊
- public_r_tag: 系統模塊
- module_widget: 外掛模塊
- position: 位置
- published?: 發布?
- purchase: 購買
- role: 身份
- roles: 身份
- site_description: 網站描述
- site_footer: 網站頁尾
- site_settings: 基本設定
- site_sub_menu: 網站次選單
- site_title: 網站標題
- setup_member: 成員設置
- setup_translations: 語系設定
- setup_designs: 版型設定
- site: 網站
- site_setting: 網站設定
- super_pages: 可編頁面
- structure: 網站結構
- tags: 標籤
- title: 標題
- translation: 翻譯
- type: 類型
- up_to_date: 最新版本
- update_error_link: 更新鏈接時出現錯誤。
- update_error_page: 更新頁面時出現錯誤。
- update_success_content: 內容已成功更新。
- update_success_home: 首頁已成功更新。
- update_success_layout: 樣板已成功更新。
- update_success_link: 連結已成功更新。
- update_success_page: 頁面已成功更新。
- update_success_snippet: 片段已成功更新。
- update_success_user: 用戶已成功更新
- upload_design: 上傳設計
- url: URL
- user: 用戶
- user_role:
- auth:
- all_member: 所有會員
- manager: 管理員
- sub_manager: 次管理員
- by_role: 根據身份
- by_sub_role: 根據次身份
- block_list: 封鎖名單
- add_manager: 增加到管理員
- add_sub_manager: 增加到次管理員
- add_to_block_list: 封鎖名單
- add_to_privilege_list: 特許名單
- auth_by: -由%{user_display_name}授權
- user: 使用會員
- info: 用戶資料
- panel: 用戶面板
- role: 用戶身份
-
- dashboard:
- bulletin: 公告
- news_bulletin: 新聞
- page_context: 頁面
- web_link: 鏈接
-
- panel:
-
-
-
-# Chinese (Taiwan) translations for Ruby on Rails
-# by tsechingho (http://github.com/tsechingho)
- date:
- formats:
- default: "%Y-%m-%d"
- short: "%b%d日"
- long: "%Y年%b%d日"
- day_names: [星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六]
- abbr_day_names: [日, 一, 二, 三, 四, 五, 六]
- month_names: [~, 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
- abbr_month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月]
- order: [ :year, :month, :day ]
-
- time:
- formats:
- default: "%Y年%b%d日 %A %H:%M:%S %Z"
- short: "%b%d日 %H:%M"
- long: "%Y年%b%d日 %H:%M"
- am: "上午"
- pm: "下午"
-
- datetime:
- distance_in_words:
- half_a_minute: "半分鐘"
- less_than_x_seconds:
- one: "不到一秒"
- other: "不到 %{count} 秒"
- x_seconds:
- one: "一秒"
- other: "%{count} 秒"
- less_than_x_minutes:
- one: "不到一分鐘"
- other: "不到 %{count} 分鐘"
- x_minutes:
- one: "一分鐘"
- other: "%{count} 分鐘"
- about_x_hours:
- one: "大約一小時"
- other: "大約 %{count} 小時"
- x_days:
- one: "一天"
- other: "%{count} 天"
- about_x_months:
- one: "大約一個月"
- other: "大約 %{count} 個月"
- x_months:
- one: "一個月"
- other: "%{count} 個月"
- about_x_years:
- one: "大約一年"
- other: "大約 %{count} 年"
- over_x_years:
- one: "一年多"
- other: "%{count} 年多"
- almost_x_years:
- one: "接近一年"
- other: "接近 %{count} 年"
- prompts:
- year: "年"
- month: "月"
- day: "日"
- hour: "時"
- minute: "分"
- second: "秒"
-
- number:
- format:
- separator: "."
- delimiter: ","
- precision: 3
- significant: false
- strip_insignificant_zeros: false
- currency:
- format:
- format: "%u %n"
- unit: "NT$"
- separator: "."
- delimiter: ","
- precision: 2
- significant: false
- strip_insignificant_zeros: false
- percentage:
- format:
- delimiter: ""
- precision:
- format:
- delimiter: ""
- human:
- format:
- delimiter: ""
- precision: 1
- significant: false
- strip_insignificant_zeros: false
- storage_units:
- format: "%n %u"
- units:
- byte:
- one: "Byte"
- other: "Bytes"
- kb: "KB"
- mb: "MB"
- gb: "GB"
- tb: "TB"
- decimal_units:
- format: "%n %u"
- units:
- # 10^-21 zepto, 10^-24 yocto
- atto: "渺" # 10^-18
- femto: "飛" # 10^-15 毫微微
- pico: "漠" # 10^-12 微微
- nano: "奈" # 10^-9 毫微
- micro: "微" # 10^-6
- mili: "毫" # 10^-3 milli
- centi: "厘" # 10^-2
- deci: "分" # 10^-1
- unit: ""
- ten:
- one: "十"
- other: "十" # 10^1
- hundred: "百" # 10^2
- thousand: "千" # 10^3 kilo
- million: "百萬" # 10^6 mega
- billion: "十億" # 10^9 giga
- trillion: "兆" # 10^12 tera
- quadrillion: "千兆" # 10^15 peta
- # 10^18 exa, 10^21 zetta, 10^24 yotta
-
- support:
- array:
- words_connector: ", "
- two_words_connector: " 和 "
- last_word_connector: ", 和 "
- select:
- prompt: "請選擇"
-
- search:
- not_found: "沒有搜尋結果"
- domains: Google Search Domains
- site_search: "全站搜尋"
- sitesearch: Google Site Search
- site_setting_help: 請輸入送交Google搜尋的參數
- result_get: "搜尋有關 ' %{search_word} ' 共搜尋到%{item_num}筆資料"
- too_many: "搜尋有關 ' %{search_word} ' 尋找到超過 %{exceed_num} 筆資料,請嘗試加入更多關鍵字縮小搜尋範圍,以作更精確的搜尋"
-
- result_get: "搜尋標題有關 ' %{search_word} ' 共搜尋到%{item_num}筆資料"
- unit_get: "列出由:%{unit_name}發佈的資料,共有%{item_num}筆"
- activerecord:
- errors:
- template: # ~ 2.3.5 backward compatible
- header:
- one: "有 1 個錯誤發生使得「%{model}」無法被儲存。"
- other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
- body: "以下欄位發生問題:"
- full_messages:
- format: "%{attribute} %{message}"
- messages:
- inclusion: "沒有包含在列表中"
- exclusion: "是被保留的關鍵字"
- invalid: "是無效的"
- confirmation: "不符合確認值"
- accepted: "必須是可被接受的"
- empty: "不能留空"
- blank: "不能是空白字元"
- too_long: "過長(最長是 %{count} 個字)"
- too_short: "過短(最短是 %{count} 個字)"
- wrong_length: "字數錯誤(必須是 %{count} 個字)"
- not_a_number: "不是數字"
- not_an_integer: "必須是整數"
- greater_than: "必須大於 %{count}"
- greater_than_or_equal_to: "必須大於或等於 %{count}"
- equal_to: "必須等於 %{count}"
- less_than: "必須小於 %{count}"
- less_than_or_equal_to: "必須小於或等於 %{count}"
- odd: "必須是奇數"
- even: "必須是偶數"
- taken: "已經被使用"
- record_invalid: "校驗失敗: %{errors}"
-
- activemodel:
- errors:
- template:
- header:
- one: "有 1 個錯誤發生使得「%{model}」無法被儲存。"
- other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
- body: "以下欄位發生問題:"
-
- errors:
- at_least_one: 至少要有一個
- format: "%{attribute} %{message}"
- messages:
- inclusion: "沒有包含在列表中"
- exclusion: "是被保留的關鍵字"
- invalid: "是無效的"
- confirmation: "不符合確認值"
- accepted: "必須是可被接受的"
- empty: "不能留空"
- blank: "不能是空白字元"
- too_long: "過長(最長是 %{count} 個字)"
- too_short: "過短(最短是 %{count} 個字)"
- wrong_length: "字數錯誤(必須是 %{count} 個字)"
- not_a_number: "不是數字"
- not_an_integer: "必須是整數"
- greater_than: "必須大於 %{count}"
- greater_than_or_equal_to: "必須大於或等於 %{count}"
- equal_to: "必須等於 %{count}"
- less_than: "必須小於 %{count}"
- less_than_or_equal_to: "必須小於或等於 %{count}"
- odd: "必須是奇數"
- even: "必須是偶數"
- template:
- header:
- one: "有 1 個錯誤發生使得「%{model}」無法被儲存。"
- other: "有 %{count} 個錯誤發生使得「%{model}」無法被儲存。"
- body: "以下欄位發生問題:"
-
- helpers:
- select:
- prompt: "請選擇"
- submit:
- create: "新增%{model}"
- update: "更新%{model}"
- submit: "儲存%{model}"
- modal:
- close: "關閉"
- preview: "預覽"
- sys:
- not_previewable: "不支援預覽"
- limit_of_upload_file_size: "上傳檔案大小限制: %{best_size}"
- preview_only_for_img: "預覽僅支援:jpg,png,gif,bmp...等圖片格式"
- can_not_display_due_to_no_context: "因為沒有中文版本,所以無法顯示"
- module_page_lang_not_support: "很抱歉,本頁沒有開放中文版本"
- object_disable:
- change_to_true: "設為停用"
- change_to_false: "重新啓用"
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index 6f5dbd92..72032fcb 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -122,9 +122,7 @@ Orbit::Application.routes.draw do
get 'system_info'
get 'ui_theme'
end
- resources :snippets
resources :tags
- resources :translations
resources :users
end
# end admin
diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/approvals_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/approvals_controller.rb
index 5dfbb750..91f610b6 100644
--- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/approvals_controller.rb
+++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/approvals_controller.rb
@@ -13,9 +13,9 @@ class Panel::Announcement::BackEnd::ApprovalsController < OrbitBackendControlle
@bulletin.proc_check(params[:bulletin][:is_checked],params[:bulletin][:not_checked_reason])
@bulletin.de_pending
if @bulletin.save
- notice = t('bulletin.approve_bulletin_success')
+ notice = t('announcement.approve_bulletin_success')
else
- notice = t('bulletin.approve_bulletin_fail')
+ notice = t('announcement.approve_bulletin_fail')
end
redirect_to(panel_announcement_back_end_bulletins_url,:notice => notice)
end
@@ -40,9 +40,9 @@ class Panel::Announcement::BackEnd::ApprovalsController < OrbitBackendControlle
def update_setting
object_auth = update_setting_by_params
if object_auth.save!
- flash[:notice] = t("admin.object_auth.update_done")
+ flash[:notice] = t('update.success_')
else
- flash[:notice] = t("admin.object_auth.update_failed")
+ flash[:notice] = t('update.fail')
end
end
diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb
index 56de2104..c0ae8244 100644
--- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb
+++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb
@@ -92,8 +92,8 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo
respond_to do |format|
if @bulletin_category.update_attributes(params[:bulletin_category])
- # format.html { redirect_to(panel_announcement_back_end_bulletin_category_url(@bulletin_category), :notice => t('bulletin_category.update_bulletin_category_success')) }
- # format.html { redirect_to(panel_announcement_back_end_bulletin_categorys_url, :notice => t('bulletin_category.update_bulletin_category_success')) }
+ # format.html { redirect_to(panel_announcement_back_end_bulletin_category_url(@bulletin_category), :notice => t('announcement.update_bulletin_category_success')) }
+ # format.html { redirect_to(panel_announcement_back_end_bulletin_categorys_url, :notice => t('announcement.update_bulletin_category_success')) }
# format.xml { head :ok }
format.js
else
@@ -112,14 +112,14 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo
if @bulletin_category.save!
respond_to do |format|
- flash[:notice] = t("bulletin_category.update_success")
- # flash[:error] += @bulletin_category.disable ? t("bulletin_category.disable_change_to_true") : t("bulletin_category.disable_change_to_false")
+ flash[:notice] = t("update.success_")
+ # flash[:error] += @bulletin_category.disable ? t(:enable) : t(disable)
format.html { redirect_to(panel_announcement_back_end_bulletin_categorys_url) }
# format.xml { head :ok }
format.js
end
else
- flash[:error] = t("bulletin_category.update_failed")
+ flash[:error] = t("update.fail")
format.html { render :action => "index" }
end
end
diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb
index 8078d5e5..e2f1384c 100644
--- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb
+++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb
@@ -144,7 +144,7 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
respond_to do |format|
if @bulletin.save
- format.html { redirect_to(panel_announcement_back_end_bulletins_url, :notice => t('bulletin.create_bulletin_success')) }
+ format.html { redirect_to(panel_announcement_back_end_bulletins_url, :notice => t('announcement.create_bulletin_success')) }
format.xml { render :xml => @bulletin, :status => :created, :location => @bulletin }
# format.js
format.js {
diff --git a/vendor/built_in_modules/announcement/app/helpers/panel/announcement/back_end/bulletin_categorys_helper.rb b/vendor/built_in_modules/announcement/app/helpers/panel/announcement/back_end/bulletin_categorys_helper.rb
index 92604985..16c69f40 100644
--- a/vendor/built_in_modules/announcement/app/helpers/panel/announcement/back_end/bulletin_categorys_helper.rb
+++ b/vendor/built_in_modules/announcement/app/helpers/panel/announcement/back_end/bulletin_categorys_helper.rb
@@ -9,8 +9,8 @@ include ActionView::Helpers::UrlHelper
bulletin_category.object_auths.new(title: type ).save
oa = bulletin_category.get_object_auth_by_title(type)
end
-# link_to t('announcement.bulletin.cate_auth'), edit_admin_object_auth_path(oa)
- link_to t('announcement.bulletin.cate_auth'),admin_object_auth_ob_auth_path(oa)
+# link_to t(:category_auth), edit_admin_object_auth_path(oa)
+ link_to t(:category_auth),admin_object_auth_ob_auth_path(oa)
end
end
\ No newline at end of file
diff --git a/vendor/built_in_modules/announcement/app/models/bulletin.rb b/vendor/built_in_modules/announcement/app/models/bulletin.rb
index d79864be..5a53a791 100644
--- a/vendor/built_in_modules/announcement/app/models/bulletin.rb
+++ b/vendor/built_in_modules/announcement/app/models/bulletin.rb
@@ -57,11 +57,9 @@ class Bulletin
validates :title, :at_least_one => true
- before_save :check_deadline, :update_avliable_language, :clean_tags
+ before_save :check_deadline, :update_avliable_language, :clean_values
before_save :fetch_dept
- after_save :save_bulletin_links
- after_save :save_bulletin_files
searchable do
text :titles do
@@ -241,7 +239,10 @@ class Bulletin
self.cache_dept = (User.find(self.create_user_id).cache_dept rescue nil) if self.new_record?
end
- def clean_tags
+ def clean_values
+ self.bulletin_links.each do |link|
+ link.delete if link.url.blank? && link.title.blank?
+ end
self.tag_ids.delete('')
end
diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/_announcement_secondary.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/_announcement_secondary.html.erb
deleted file mode 100644
index 40f5e871..00000000
--- a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/_announcement_secondary.html.erb
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
- <%= link_to t('bulletin.announcement_list'), panel_announcement_back_end_bulletins_path if is_manager?%>
- <%= link_to t('bulletin.new_announcement_class'), panel_announcement_back_end_bulletin_categorys_path if is_manager?%>
- <%= link_to t('bulletin.fact_check_for_manager'), panel_announcement_back_end_fact_checks_path if is_manager?%>
-
- <%= link_to t('bulletin.my_announcement'), panel_announcement_back_end_list_mine_path if is_sub_manager? %>
- <%= link_to t('bulletin.new_announcement'), new_panel_announcement_back_end_bulletin_path if is_sub_manager? %>
-
-
\ No newline at end of file
diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/announcements/_list_table.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/announcements/_list_table.html.erb
deleted file mode 100644
index a8c5a83b..00000000
--- a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/announcements/_list_table.html.erb
+++ /dev/null
@@ -1,15 +0,0 @@
-
<%= bulletin_category.key %>
-
-
- <%= t('bulletin.status') %>
- <%= t('bulletin.category') %>
- <%= t('bulletin.title') %>
- <%= t('bulletin.postdate') %>
- <%= t('bulletin.deadline') %>
- <%= t('bulletin.action') %>
-
-
-<% bulletin_category.bulletins.each do |post| %>
- <%= render :partial => 'panel/announcement/back_end/bulletins/bulletins', :locals => {:post => post,:fact_check_allow=>false} %>
-<% end %>
-
\ No newline at end of file
diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/announcements/list_mine.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/announcements/list_mine.html.erb
deleted file mode 100644
index 2bd98827..00000000
--- a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/announcements/list_mine.html.erb
+++ /dev/null
@@ -1,12 +0,0 @@
-<% content_for :secondary do %>
-<%= render :partial => '/panel/announcement/back_end/announcement_secondary' %>
-<% end -%>
-
-<%= flash_messages %>
-
-
-
-
-
-
-<%= render :partial => "list_table", :collection => @bulletin_categorys ,:as => :bulletin_category%>
diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/approvals/_modal_approve.html.erb b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/approvals/_modal_approve.html.erb
index 2a400a1f..ac04408b 100644
--- a/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/approvals/_modal_approve.html.erb
+++ b/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/approvals/_modal_approve.html.erb
@@ -19,19 +19,19 @@