diff --git a/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocabs_controller.rb b/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocabs_controller.rb index e31efe3b7..5dd5d1247 100644 --- a/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocabs_controller.rb +++ b/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocabs_controller.rb @@ -1,4 +1,4 @@ -class Panel::Archive::BackEnd::ArchiveFilesController < OrbitBackendController +class Panel::Dictionary::BackEnd::DictionaryVocabsController < OrbitBackendController # before_filter :for_app_manager,:except => [:index,:show] include OrbitControllerLib::DivisionForDisable @@ -7,7 +7,7 @@ class Panel::Archive::BackEnd::ArchiveFilesController < OrbitBackendController before_filter :for_app_sub_manager,:except => [:index] before_filter :only => [ :new,:edit,:update,:create] do |controller| - controller.get_categorys('ArchiveFileCategory') + controller.get_categorys('DictionaryVocabCategory') end def new diff --git a/vendor/built_in_modules/dictionary/config/locales/zh_tw.yml b/vendor/built_in_modules/dictionary/config/locales/zh_tw.yml index eeb190b55..65f1756e1 100644 --- a/vendor/built_in_modules/dictionary/config/locales/zh_tw.yml +++ b/vendor/built_in_modules/dictionary/config/locales/zh_tw.yml @@ -13,3 +13,8 @@ zh_tw: attributes: archive_file: sort_number: 排序數 + +zh_tw: + + dictionary: + dictionary: 字彙辭典 diff --git a/vendor/built_in_modules/dictionary/init.rb b/vendor/built_in_modules/dictionary/init.rb index 99cc2739f..611c20270 100644 --- a/vendor/built_in_modules/dictionary/init.rb +++ b/vendor/built_in_modules/dictionary/init.rb @@ -47,12 +47,12 @@ module Dictionary side_bar do - head_label_i18n 'archive.archive',:icon_class=>"icons-archive" + head_label_i18n 'dictionary.dictionary',:icon_class=>"icons-book" 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 ['ArchiveFileCategory'] + active_for_controllers ({ :private => ['dictionary_vocab_categorys', 'dictionary_vocabs'] }) + active_for_object_auth ['DictionaryVocabCategory'] - head_link_path "panel_archive_back_end_archive_files_path" + head_link_path "panel_dictionary_back_end_dictionary_vocabs_path" context_link 'all', :link_path=>"panel_archive_back_end_archive_files_path" , @@ -61,7 +61,7 @@ module Dictionary :available_for => [:all] context_link 'add', - :link_path => "new_panel_dicationary_back_end_dictionary_vocab_path", + :link_path => "new_panel_dictionary_back_end_dictionary_vocab_path", :priority => 2, :active_for_action => { :dictionary_vocabs => :new }, :available_for => [:sub_manager]