Full localization implementation
This commit is contained in:
@@ -50,7 +50,7 @@ module Qwaiter
|
||||
|
||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
# config.i18n.default_locale = :de
|
||||
config.i18n.default_locale = :nl
|
||||
|
||||
# Configure the default encoding used in templates for Ruby 1.9.
|
||||
config.encoding = "utf-8"
|
||||
|
||||
+4
-4
@@ -155,10 +155,10 @@ Qwaiter::Application.routes.draw do
|
||||
# just remember to delete public/index.html.
|
||||
#
|
||||
#root :to => 'dashboard#home'
|
||||
root :to => 'pages#home'
|
||||
|
||||
scope '(/:locale)', constraints: {locale: /nl|be|de|fr|en/}, defaults: { locale: :nl } do
|
||||
get "/:name" => "pages#show", constraints: {name: /.*/}, as: :page
|
||||
root :to => 'pages#home', defaults: {locale: 'nl'}
|
||||
get '/:locale' => 'pages#home', constraints: {locale: /nl|be|de|fr|en/}
|
||||
scope '(/:locale)', constraints: {locale: /nl|be|de|fr|en/}, defaults: { locale: 'nl' } do
|
||||
get "/:name" => "pages#show", constraints: {name: /.*/}, as: :go_to
|
||||
end
|
||||
|
||||
# See how all your routes lay out with "rake routes"
|
||||
|
||||
Reference in New Issue
Block a user