Skip to content

Instantly share code, notes, and snippets.

Created August 13, 2012 11:53
Show Gist options
  • Save anonymous/3339959 to your computer and use it in GitHub Desktop.
Save anonymous/3339959 to your computer and use it in GitHub Desktop.
Lokka で translation missing が出まくって困ってしまった場合の対処方法
::I18n.load_path += Dir["#{root}/i18n/*.yml"]
helpers Lokka::Helpers
use Rack::Session::Cookie,
:expire_after => 60 * 60 * 24 * 12
set :session_secret, 'development' if development?
use Rack::Flash
Lokka.load_plugin(self)
Lokka::Database.new.connect
I18n.reload! # Added this line
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment