Commit 0d9fe8f0dcd91b8a4e35a484536b3f90c92f0d95

Authored by LeandroNunes
1 parent 6c0b8730

ActionItem85: adding localist plugin

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@786 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/layouts/application.rhtml
... ... @@ -84,7 +84,7 @@
84 84 <div id="footer">
85 85 <!-- <a name='footer'/></a> -->
86 86 <%= footer %>
  87 + <%= localist_menu %>
87 88 </div><!-- id="footer" -->
88   -
89 89 </body>
90 90 </html>
... ...
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|
... ...