fix member sidebar
add i18n for modules and default_widgets
This commit is contained in:
parent
fcb49723b4
commit
b7d797f9dd
|
@ -13,8 +13,7 @@
|
||||||
<div class="viewport">
|
<div class="viewport">
|
||||||
<div class="overview">
|
<div class="overview">
|
||||||
<ul class="nav nav-list">
|
<ul class="nav nav-list">
|
||||||
<%= render :partial=> 'layouts/side_bar_content'%>
|
<%= render ((local_assigns.has_key? :side_bar_content) ? side_bar_content : 'layouts/side_bar_content') %>
|
||||||
<%#= render ((local_assigns.has_key? :side_bar_content) ? side_bar_content : 'layouts/side_bar_content') %>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -150,6 +150,8 @@ en:
|
||||||
deadline: Deadline
|
deadline: Deadline
|
||||||
default: Default
|
default: Default
|
||||||
default_css: Default CSS
|
default_css: Default CSS
|
||||||
|
default_widget:
|
||||||
|
default_widget: Default Widget
|
||||||
delete:
|
delete:
|
||||||
file: Delete file
|
file: Delete file
|
||||||
success:
|
success:
|
||||||
|
|
|
@ -116,6 +116,7 @@ zh_tw:
|
||||||
delete: 刪除
|
delete: 刪除
|
||||||
delete_file: 刪除檔案
|
delete_file: 刪除檔案
|
||||||
default_widget:
|
default_widget:
|
||||||
|
default_widget: 預設樣板
|
||||||
name: 預設樣式
|
name: 預設樣式
|
||||||
no_support_setting: 沒有可以使用的設定
|
no_support_setting: 沒有可以使用的設定
|
||||||
no_value: 不設定(全部)
|
no_value: 不設定(全部)
|
||||||
|
|
|
@ -98,7 +98,7 @@ module OrbitApp
|
||||||
|
|
||||||
def self.get_interface_args
|
def self.get_interface_args
|
||||||
#will need to work with design
|
#will need to work with design
|
||||||
{:name=>"default_widget",:field=>nil,:label=>'label',:style=>STYLE}
|
{:name=>"default_widget",:field=>nil,:label=>'label',:style=>STYLE,:i18n=>'default_widget.default_widget'}
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_module_app_format
|
def to_module_app_format
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
en:
|
||||||
|
|
||||||
|
ad_banner:
|
||||||
|
ad_banner: Ad Banner
|
|
@ -0,0 +1,4 @@
|
||||||
|
zh_tw:
|
||||||
|
|
||||||
|
ad_banner:
|
||||||
|
ad_banner: 廣告輪播
|
|
@ -33,7 +33,7 @@ module AdBanner
|
||||||
# end
|
# end
|
||||||
|
|
||||||
side_bar do
|
side_bar do
|
||||||
head_label_i18n 'admin.ad_banner',:icon_class=>"icons-landscape"
|
head_label_i18n 'ad_banner.ad_banner',:icon_class=>"icons-landscape"
|
||||||
available_for [:admin,:guest,:manager,:sub_manager]
|
available_for [:admin,:guest,:manager,:sub_manager]
|
||||||
active_for_controllers ({:public=>['admin/ad_banners', 'admin/ad_images']})
|
active_for_controllers ({:public=>['admin/ad_banners', 'admin/ad_images']})
|
||||||
|
|
||||||
|
|
|
@ -15,3 +15,5 @@ en:
|
||||||
search: Search for Announcement
|
search: Search for Announcement
|
||||||
update_bulletin_success: Announcement was successfully updated
|
update_bulletin_success: Announcement was successfully updated
|
||||||
update_bulletin_category_success: Announcement category was successfully updated
|
update_bulletin_category_success: Announcement category was successfully updated
|
||||||
|
all_articles: All Articles
|
||||||
|
add_new: New
|
|
@ -40,7 +40,7 @@ module Announcement
|
||||||
end
|
end
|
||||||
|
|
||||||
side_bar do
|
side_bar do
|
||||||
head_label_i18n 'admin.announcement',:icon_class=>"icons-megaphone"
|
head_label_i18n 'announcement.announcement',:icon_class=>"icons-megaphone"
|
||||||
available_for [:admin,:guest,:manager,:sub_manager]
|
available_for [:admin,:guest,:manager,:sub_manager]
|
||||||
active_for_controllers ({:private=>['bulletins', 'bulletin_categorys', 'approvals','tags']})
|
active_for_controllers ({:private=>['bulletins', 'bulletin_categorys', 'approvals','tags']})
|
||||||
active_for_object_auth ['BulletinCategory']
|
active_for_object_auth ['BulletinCategory']
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
en:
|
en:
|
||||||
|
|
||||||
_locale: English
|
_locale: English
|
||||||
|
archive:
|
||||||
|
all: All
|
||||||
|
archive: Archive
|
||||||
add: Add
|
add: Add
|
||||||
back: Back
|
back: Back
|
||||||
create: Create
|
create: Create
|
||||||
|
|
|
@ -2,6 +2,8 @@ zh_tw:
|
||||||
|
|
||||||
_locale: 中文
|
_locale: 中文
|
||||||
archive:
|
archive:
|
||||||
|
archive: 檔案室
|
||||||
|
all: 全部檔案
|
||||||
widget:
|
widget:
|
||||||
archive_files: 檔案室Wiget
|
archive_files: 檔案室Wiget
|
||||||
add: 新增
|
add: 新增
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
module Archive
|
module Archive
|
||||||
OrbitApp.registration "Archive",:type=> 'ModuleApp' do
|
OrbitApp.registration "Archive",:type=> 'ModuleApp' do
|
||||||
module_label 'miss_module_i18n.archive'
|
module_label 'archive.archive'
|
||||||
base_url File.expand_path File.dirname(__FILE__)
|
base_url File.expand_path File.dirname(__FILE__)
|
||||||
|
|
||||||
personal_plugin :enable => true,:path=>"panel/archive/plugin/profile",:i18n=>'miss_plugin_i18n.archive'
|
personal_plugin :enable => true,:path=>"panel/archive/plugin/profile",:i18n=>'archive.archive'
|
||||||
# =======
|
# =======
|
||||||
# personal_plugin :enable => true,:path=>"panel/archive/plugin/profile",:i18n=>'admin.archive'
|
# personal_plugin :enable => true,:path=>"panel/archive/plugin/profile",:i18n=>'admin.archive'
|
||||||
# >>>>>>> 858e942da234fffa3053a995231f2b0d9eee43d1
|
# >>>>>>> 858e942da234fffa3053a995231f2b0d9eee43d1
|
||||||
|
@ -33,14 +33,14 @@ module Archive
|
||||||
end
|
end
|
||||||
|
|
||||||
side_bar do
|
side_bar do
|
||||||
head_label_i18n 'miss_module_i18n.archive',:icon_class=>"icons-archive"
|
head_label_i18n 'archive.archive',:icon_class=>"icons-archive"
|
||||||
available_for [:admin,:guest,:manager,:sub_manager]
|
available_for [:admin,:guest,:manager,:sub_manager]
|
||||||
active_for_controllers ({:private=>['archive_file_categorys','archive_files'],:public=>['panel/archive/back_end/tags']})
|
active_for_controllers ({:private=>['archive_file_categorys','archive_files'],:public=>['panel/archive/back_end/tags']})
|
||||||
active_for_object_auth ['BulletinCategory']
|
active_for_object_auth ['BulletinCategory']
|
||||||
|
|
||||||
head_link_path "panel_archive_back_end_archive_files_path"
|
head_link_path "panel_archive_back_end_archive_files_path"
|
||||||
|
|
||||||
context_link 'miss_module_i18n._archive.all',
|
context_link 'archive.all',
|
||||||
:link_path=>"panel_archive_back_end_archive_files_path" ,
|
:link_path=>"panel_archive_back_end_archive_files_path" ,
|
||||||
:priority=>1,
|
:priority=>1,
|
||||||
:active_for_action=>{:archive_files=>:index},
|
:active_for_action=>{:archive_files=>:index},
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
en:
|
en:
|
||||||
calendar:
|
calendar:
|
||||||
|
calendar_: Calendar
|
||||||
calendar: Calendar
|
calendar: Calendar
|
||||||
calendars: Calendars
|
calendars: Calendars
|
||||||
color: Color
|
color: Color
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module Gallery
|
module Gallery
|
||||||
OrbitApp.registration "Gallery",:type=> 'ModuleApp' do
|
OrbitApp.registration "Gallery",:type=> 'ModuleApp' do
|
||||||
module_label 'miss_module_i18n.gallery'
|
module_label 'gallery.gallery'
|
||||||
base_url File.expand_path File.dirname(__FILE__)
|
base_url File.expand_path File.dirname(__FILE__)
|
||||||
# personal_plugin :enable => true,:path=>"panel/gallery/plugin/profile",:i18n=>'admin.gallery'
|
# personal_plugin :enable => true,:path=>"panel/gallery/plugin/profile",:i18n=>'admin.gallery'
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ module Gallery
|
||||||
end
|
end
|
||||||
|
|
||||||
side_bar do
|
side_bar do
|
||||||
head_label_i18n 'miss_module_i18n.gallery',:icon_class=>"icons-pictures"
|
head_label_i18n 'gallery.gallery',:icon_class=>"icons-pictures"
|
||||||
available_for [:admin,:guest,:manager,:sub_manager]
|
available_for [:admin,:guest,:manager,:sub_manager]
|
||||||
active_for_controllers ({:private=>['albums','album_images','gallery_categories','/panel/gallery/back_end/tags']})
|
active_for_controllers ({:private=>['albums','album_images','gallery_categories','/panel/gallery/back_end/tags']})
|
||||||
active_for_object_auth ['BulletinCategory']
|
active_for_object_auth ['BulletinCategory']
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
en:
|
||||||
|
location:
|
||||||
|
location: Location
|
|
@ -0,0 +1,3 @@
|
||||||
|
zh_tw:
|
||||||
|
location:
|
||||||
|
location: 地標
|
|
@ -1,6 +1,6 @@
|
||||||
module Location
|
module Location
|
||||||
OrbitApp.registration "Location",:type=> 'ModuleApp' do
|
OrbitApp.registration "Location",:type=> 'ModuleApp' do
|
||||||
module_label 'miss_module_i18n.location'
|
module_label 'location.location'
|
||||||
base_url File.expand_path File.dirname(__FILE__)
|
base_url File.expand_path File.dirname(__FILE__)
|
||||||
# personal_plugin :enable => true,:path=>"panel/location/plugin/profile",:i18n=>'admin.location'
|
# personal_plugin :enable => true,:path=>"panel/location/plugin/profile",:i18n=>'admin.location'
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ module Location
|
||||||
# end
|
# end
|
||||||
|
|
||||||
side_bar do
|
side_bar do
|
||||||
head_label_i18n 'miss_module_i18n.location',:icon_class=>"icons-location"
|
head_label_i18n 'location.location',:icon_class=>"icons-location"
|
||||||
available_for [:admin,:guest,:manager,:sub_manager]
|
available_for [:admin,:guest,:manager,:sub_manager]
|
||||||
active_for_controllers ({:private=>['locations']})
|
active_for_controllers ({:private=>['locations']})
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
zh_tw:
|
zh_tw:
|
||||||
|
|
||||||
miss_module_i18n:
|
miss_module_i18n:
|
||||||
archive: 檔案室
|
|
||||||
_archive:
|
|
||||||
all: 全部檔案
|
|
||||||
calendars: 日曆
|
|
||||||
gallery: 相簿
|
|
||||||
location: 地標
|
|
||||||
ad_banner: 廣告輪播
|
|
||||||
|
|
||||||
miss_plugin_i18n:
|
miss_plugin_i18n:
|
||||||
personal_book: Personal Book
|
personal_book: Personal Book
|
||||||
|
@ -19,5 +12,5 @@ zh_tw:
|
||||||
personal_patent: Personal Patent
|
personal_patent: Personal Patent
|
||||||
personal_project: Personal Project
|
personal_project: Personal Project
|
||||||
personal_research: Personal Research
|
personal_research: Personal Research
|
||||||
personal_seminar: Personal Seminar
|
personal_conference: Personal Conference
|
||||||
|
|
||||||
|
|
Reference in New Issue