This commit is contained in:
2015-10-04 11:54:25 +02:00
parent 20bc21f87f
commit e7cd77c675
15 changed files with 43 additions and 20 deletions
+1 -1
View File
@@ -74,7 +74,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 = :en
config.i18n.default_locale = :nl
config.i18n.available_locales = [:en, :nl]
# Configure the default encoding used in templates for Ruby 1.9.
+3 -2
View File
@@ -1,7 +1,7 @@
en:
activemodel:
models:
user: User
user: Guest
supplier: Restaurant
new_supplier: New restaurant
table: Table
@@ -19,7 +19,7 @@ en:
section_element: Section element
section_area: Section area
plural:
user: Users
user: Guests
supplier: Restaurants
new_supplier: New restaurants
table: Tables
@@ -69,6 +69,7 @@ en:
created_at: Created
supplier:
name: ${models.supplier} name
user_message: Message for ${models.plural.user}
email: 'Email'
password: 'Password'
password_confirmation: 'Confirmation'
+3 -2
View File
@@ -1,7 +1,7 @@
nl:
activemodel:
models:
user: Gebruiker
user: Gast
supplier: Restaurant
new_supplier: Nieuw restaurant
table: Tafel
@@ -18,7 +18,7 @@ nl:
section_element: Ruimte element
section_area: Ruimte blok
plural:
user: Gebruikers
user: Gasten
supplier: Restaurants
new_supplier: Nieuwe restaurants
table: Tafels
@@ -68,6 +68,7 @@ nl:
created_at: Aangemaakt
supplier:
name: ${models.supplier} naam
user_message: Bericht voor ${models.plural.user}
email: 'E-mail'
password: 'Wachtwoord'
password_confirmation: 'Bevestiging'
+1 -1
View File
@@ -208,7 +208,7 @@ Qwaiter::Application.routes.draw do
#devise_scope :supplier do
#get '/:locale/suppliers/sign_up' => 'registrations#new', constraints: {locale: ALLOWED_LOCALES}
#end
scope '(/:locale)', constraints: {locale: ALLOWED_LOCALES}, defaults: { locale: 'en' } do
scope '(/:locale)', constraints: {locale: ALLOWED_LOCALES}, defaults: { locale: Rails.application.config.i18n.default_locale } do
root to: 'pages#home'
resources :contact_forms, only: [:create]
resources :new_suppliers