Localisation guide differs from example included in Padrino #937

Closed
Quintus opened this Issue Sep 28, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Quintus commented Sep 28, 2012

At http://www.padrinorb.com/guides/localization, setting up I18n is recommended like this:

# config/boot.rb
Padrino.before_load do
  I18n.locale = :de
end

However, in config/boot.rb already is this code:

# ## Configure your I18n
#
I18n.default_locale = :en

I.e. without the before_load block. Given it works fine without the block, the guide should be corrected.

Valete,
Quintus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment