diff --git a/config/locales/en.yml b/config/locales/en.yml index 3e56fcd..642f103 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -5,7 +5,7 @@ en: newfont: Please input newfont updatefont: Update CKEDITOR: CKEDITOR - Patchfile: + patchfile: table: title : Title date : Date @@ -38,7 +38,7 @@ en: all_articles: All Articles settings: Settings import: Import / Export - Patchfile: Patchfile + patchfile: Patchfile approval_setting: Approval Setting approve_bulletin_fail: Approval Fail approve_bulletin_success: Approve Successfully diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index c915866..88352a6 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -5,7 +5,7 @@ zh_tw: CKEDITOR: CKEDITOR newfont: 請輸入要新增的字形 updatefont: 更新 - Patchfile: + patchfile: table: title : 標題 date : 張貼日期 @@ -39,7 +39,7 @@ zh_tw: jsonfeed: JSON 供給連結 feed_list: 訂閱清單 all_articles: 文章列表 - Patchfile: 抓取檔案 + patchfile: 抓取檔案 approval_setting: 審核設定 approve_bulletin_fail: 審核失敗 approve_bulletin_success: 審核成功 diff --git a/lib/patchfile/engine.rb b/lib/patchfile/engine.rb index 13014d1..1e9ba37 100644 --- a/lib/patchfile/engine.rb +++ b/lib/patchfile/engine.rb @@ -2,23 +2,23 @@ require "yaml" module Patchfile class Engine < ::Rails::Engine initializer "patchfile" do - OrbitApp.registration "Patchfile", :type => "ModuleApp" do - module_label "Patchfile.Patchfile" + OrbitApp.registration "patchfile", :type => "ModuleApp" do + module_label "patchfile.Patchfile" base_url File.expand_path File.dirname(__FILE__) widget_methods ["widget","random_Patchfile_widget", "tag_cloud"] widget_settings [{"data_count"=>30}] - taggable "Patchfile" + taggable "patchfilefield" categorizable authorizable frontend_enabled data_count 1..30 side_bar do - head_label_i18n 'Patchfile.Patchfile', icon_class: "icons-megaphone" + head_label_i18n 'patchfile.patchfile', icon_class: "icons-megaphone" available_for "users" active_for_controllers (['admin/patchfiles']) head_link_path "admin_patchfiles_path" - context_link 'Patchfile.Patchfile', + context_link 'patchfile.patchfile', :link_path=>"admin_patchfiles_path" , :priority=>1, :active_for_action=>{'admin/patchfiles'=>'index'}, diff --git a/lib/tasks/patchfile_tasks.rake b/lib/tasks/patchfile_tasks.rake index cfe4f33..2aecc58 100644 --- a/lib/tasks/patchfile_tasks.rake +++ b/lib/tasks/patchfile_tasks.rake @@ -1,4 +1,4 @@ # desc "Explaining what the task does" -# task :bulletin do +# task :patchfile do # # Task goes here # end