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
@@ -84,7 +84,7 @@ | @@ -84,7 +84,7 @@ | ||
84 | <div id="footer"> | 84 | <div id="footer"> |
85 | <!-- <a name='footer'/></a> --> | 85 | <!-- <a name='footer'/></a> --> |
86 | <%= footer %> | 86 | <%= footer %> |
87 | + <%= localist_menu %> | ||
87 | </div><!-- id="footer" --> | 88 | </div><!-- id="footer" --> |
88 | - | ||
89 | </body> | 89 | </body> |
90 | </html> | 90 | </html> |
config/environment.rb
@@ -68,6 +68,11 @@ end | @@ -68,6 +68,11 @@ end | ||
68 | # Include your application configuration below | 68 | # Include your application configuration below |
69 | 69 | ||
70 | require 'gettext/rails' | 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 | Tag.hierarchical = true | 76 | Tag.hierarchical = true |
72 | 77 | ||
73 | Comatose.configure do |config| | 78 | Comatose.configure do |config| |