Commit 0d9fe8f0dcd91b8a4e35a484536b3f90c92f0d95
1 parent
6c0b8730
Exists in
master
and in
29 other branches
ActionItem85: adding localist plugin
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@786 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
app/views/layouts/application.rhtml
config/environment.rb
... | ... | @@ -68,6 +68,11 @@ end |
68 | 68 | # Include your application configuration below |
69 | 69 | |
70 | 70 | require 'gettext/rails' |
71 | +Localist.supported_locales = %w[en-US pt-BR] | |
72 | +Localist.default_locale = "pt-BR" | |
73 | +Localist.callback = lambda { |l| GetText.locale= l } | |
74 | + | |
75 | + | |
71 | 76 | Tag.hierarchical = true |
72 | 77 | |
73 | 78 | Comatose.configure do |config| | ... | ... |