Arguments

This commit is contained in:
2017-04-11 08:46:21 +02:00
parent 7ce05f1ae4
commit 242e842100
8 changed files with 131 additions and 3 deletions
+1
View File
@@ -31,6 +31,7 @@ module Ch420
# 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.available_locales = [:de, :it, :fr]
config.generators do |g|
g.orm :mongoid
+2
View File
@@ -11,6 +11,7 @@ de:
sign_out: Abmelden
initiative_text: Der Initiativtext im Wortlaut
initiative: Die Initiative
arguments: Argumentarium
counter:
supporters: "Unterstützer:"
amount_of_supporters: Zurzeit haben wir %{amount} Unterstützer.
@@ -70,6 +71,7 @@ de:
routes:
initiative_text: initiativtext
arguments: argumentarium
mongoid:
models:
+4 -2
View File
@@ -15,7 +15,8 @@ fr:
sign_out: déconnecter
sign_in: Connexion
initiative: l' initiative
initiative_text: L'initiative propose (DE)
initiative_text: L'initiative propose (en allemand)
arguments: Arguments (en allemand)
welcome_email:
subject: Merci beaucoup pour ton soutien!
@@ -67,7 +68,8 @@ fr:
title: Merci beaucoup pour ton soutien!
routes:
initiative_text: "l_initiative_propose"
initiative_text: l_initiative_propose
arguments: arguments
mongoid:
models:
+2
View File
@@ -13,6 +13,7 @@ it:
sign_in: Registro
initiative_text: Il testo delliniziativa
initiative: l'iniziativa
arguments: Argomentazioni
counter:
supporters: "Sostenitore:"
@@ -71,6 +72,7 @@ it:
routes:
initiative_text: il_testo_dell_iniziativa
arguments: argomentazioni
mongoid:
attributes:
+1 -1
View File
@@ -10,10 +10,10 @@ Rails.application.routes.draw do
get '/map', to: 'pages#map', as: :map
# resources :supporters, only: :index
end
localized do
get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text'
get '/arguments', to: 'pages#show', as: :arguments, page: 'arguments'
end
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete