fix member sidebar

add i18n for modules and default_widgets
This commit is contained in:
Fu Matthew committed 2013-02-06 17:44:38 +08:00
1 parent 8e7e601845
commit 29bb92f841
18 files changed
+38 -22

No files matched your search

+3 -1
View File
@@ -4,7 +4,9 @@
en:
_locale: English
archive:
all: All
archive: Archive
add: Add
back: Back
create: Create
@@ -2,6 +2,8 @@ zh_tw:
_locale: 中文
archive:
archive: 檔案室
all: 全部檔案
widget:
archive_files: 檔案室Wiget
add: 新增
+4 -4
View File
@@ -1,9 +1,9 @@
module Archive
OrbitApp.registration "Archive",:type=> 'ModuleApp' do
module_label 'miss_module_i18n.archive'
module_label 'archive.archive'
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'
# >>>>>>> 858e942da234fffa3053a995231f2b0d9eee43d1
@@ -33,14 +33,14 @@ module Archive
end
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]
active_for_controllers ({:private=>['archive_file_categorys','archive_files'],:public=>['panel/archive/back_end/tags']})
active_for_object_auth ['BulletinCategory']
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" ,
:priority=>1,
:active_for_action=>{:archive_files=>:index},