From 77fe706f51726a09743bbd7e965d92ede36835f1 Mon Sep 17 00:00:00 2001 From: Saurabh Bhatia Date: Wed, 9 Jul 2014 15:44:29 +0800 Subject: [PATCH] fix moduleapp name and frontend display language --- app/controllers/books_controller.rb | 2 +- lib/personal_book/engine.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"