diff --git a/app/controllers/books_controller.rb b/app/controllers/books_controller.rb index ea843f8..346b5b6 100644 --- a/app/controllers/books_controller.rb +++ b/app/controllers/books_controller.rb @@ -27,7 +27,7 @@ class BooksController < ApplicationController "year" => book.year, "authors" => book.authors, "isbn" => book.isbn, - "language" => t(book.language), + "language" => book.language, "pages" => book.pages, "keywords" => book.keywords, "publication_date" => publication_date , diff --git a/lib/personal_book/engine.rb b/lib/personal_book/engine.rb index c81d46b..1aeeac1 100644 --- a/lib/personal_book/engine.rb +++ b/lib/personal_book/engine.rb @@ -4,7 +4,7 @@ module PersonalBook OrbitApp.registration "Book",:type=> 'ModuleApp' do module_label 'module_name.book' base_url File.expand_path File.dirname(__FILE__) - personal_plugin :enable => true, :sort_number => '25', :app_name=>"Book", :intro_app_name=>"BookIntro",:path=>"/plugin/book/profile",:front_path=>"/profile",:admin_path=>"/admin/books",:i18n=>'module_name.book',:module_app_name=>'PersonalBook' + personal_plugin :enable => true, :sort_number => '25', :app_name=>"Book", :intro_app_name=>"BookIntro",:path=>"/plugin/book/profile",:front_path=>"/profile",:admin_path=>"/admin/books",:i18n=>'module_name.book',:module_app_name=>'Book' version "0.1" organization "Rulingcom"