beerify 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +11 -0
- data/Rakefile +34 -0
- data/app/assets/fonts/beerify/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/beerify/glyphicons-halflings-regular.svg +228 -0
- data/app/assets/fonts/beerify/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/beerify/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/beerify/application.js +3 -0
- data/app/assets/javascripts/beerify/bootstrap.js +1991 -0
- data/app/assets/stylesheets/beerify/application.css +3 -0
- data/app/assets/stylesheets/beerify/bootstrap.css +5909 -0
- data/app/controllers/application_controller.rb +2 -0
- data/app/controllers/contacts_controller.rb +21 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/contacts_helper.rb +2 -0
- data/app/models/ability.rb +28 -0
- data/app/models/catalog.rb +11 -0
- data/app/models/ckeditor/asset.rb +7 -0
- data/app/models/ckeditor/attachment_file.rb +7 -0
- data/app/models/ckeditor/picture.rb +7 -0
- data/app/models/contact.rb +8 -0
- data/app/models/news.rb +11 -0
- data/app/models/photo.rb +5 -0
- data/app/models/product.rb +12 -0
- data/app/models/settings.rb +10 -0
- data/app/models/user.rb +10 -0
- data/app/models/users/admin.rb +4 -0
- data/app/models/users/customer.rb +5 -0
- data/app/models/users/sudoer.rb +4 -0
- data/app/uploaders/ckeditor_attachment_file_uploader.rb +35 -0
- data/app/uploaders/ckeditor_picture_uploader.rb +46 -0
- data/app/uploaders/photo_uploader.rb +22 -0
- data/app/views/contacts/_form.html.slim +5 -0
- data/app/views/contacts/new.html.slim +2 -0
- data/app/views/devise/confirmations/new.html.erb +14 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +5 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +4 -0
- data/app/views/devise/passwords/edit.html.erb +16 -0
- data/app/views/devise/passwords/new.html.erb +14 -0
- data/app/views/devise/registrations/edit.html.erb +20 -0
- data/app/views/devise/registrations/new.html.erb +16 -0
- data/app/views/devise/sessions/new.html.erb +14 -0
- data/app/views/devise/shared/_links.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +14 -0
- data/app/views/layouts/beerify/application.html.erb +14 -0
- data/config/initializers/ckeditor.rb +21 -0
- data/config/initializers/devise.rb +254 -0
- data/config/initializers/kaminari.rb +3 -0
- data/config/initializers/rails_admin.rb +5 -0
- data/config/initializers/rails_admin/news_admin.rb +19 -0
- data/config/initializers/rails_admin/user_admin.rb +71 -0
- data/config/initializers/simple_form.rb +142 -0
- data/config/initializers/simple_form_bootstrap.rb +76 -0
- data/config/locales/attributes.en.yml +57 -0
- data/config/locales/attributes.fr.yml +57 -0
- data/config/locales/devise.en.yml +59 -0
- data/config/locales/devise.fr.yml +78 -0
- data/config/locales/devise.views.en.yml +59 -0
- data/config/locales/devise.views.fr.yml +51 -0
- data/config/locales/fr.yml +220 -0
- data/config/locales/main.en.yml +5 -0
- data/config/locales/main.fr.yml +5 -0
- data/config/locales/models.en.yml +30 -0
- data/config/locales/models.fr.yml +30 -0
- data/config/locales/rails_admin.fr.yml +129 -0
- data/config/locales/simple_form.en.yml +26 -0
- data/config/routes.rb +8 -0
- data/config/settings/beerify/development.yml +2 -0
- data/config/settings/beerify/production.yml +2 -0
- data/config/settings/beerify/settings.yml +1 -0
- data/db/migrate/20130805210910_create_users.rb +12 -0
- data/db/migrate/20130805212414_add_devise_to_users.rb +34 -0
- data/db/migrate/20130819142757_create_catalogs.rb +15 -0
- data/db/migrate/20130826095103_create_photos.rb +12 -0
- data/db/migrate/20130902160901_create_products.rb +16 -0
- data/db/migrate/20130902162315_add_photos_to_product.rb +6 -0
- data/db/migrate/20130903083519_create_contacts.rb +11 -0
- data/db/migrate/20130903130542_create_news.rb +17 -0
- data/db/migrate/20130904000525_create_ckeditor_assets.rb +23 -0
- data/db/migrate/20130918132647_add_highlight_to_products.rb +5 -0
- data/lib/beerify.rb +4 -0
- data/lib/beerify/engine.rb +28 -0
- data/lib/beerify/version.rb +3 -0
- data/lib/tasks/populate.rake +66 -0
- data/spec/beerify/models/catalog_spec.rb +9 -0
- data/spec/beerify/models/contact_spec.rb +6 -0
- data/spec/beerify/models/news_spec.rb +7 -0
- data/spec/beerify/models/photo_spec.rb +5 -0
- data/spec/beerify/models/product_spec.rb +8 -0
- data/spec/beerify/models/user_spec.rb +4 -0
- data/spec/beerify/models/users/admin_spec.rb +5 -0
- data/spec/beerify/models/users/customer_spec.rb +5 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +11 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/db/migrate/20130904085929_create_users.beerify.rb +13 -0
- data/spec/dummy/db/migrate/20130904085930_add_devise_to_users.beerify.rb +35 -0
- data/spec/dummy/db/migrate/20130904085931_create_catalogs.beerify.rb +16 -0
- data/spec/dummy/db/migrate/20130904085932_create_photos.beerify.rb +13 -0
- data/spec/dummy/db/migrate/20130904085933_create_products.beerify.rb +17 -0
- data/spec/dummy/db/migrate/20130904085934_add_photos_to_product.beerify.rb +7 -0
- data/spec/dummy/db/migrate/20130904085935_create_contacts.beerify.rb +12 -0
- data/spec/dummy/db/migrate/20130906090417_create_news.beerify.rb +18 -0
- data/spec/dummy/db/migrate/20130906090418_create_ckeditor_assets.beerify.rb +24 -0
- data/spec/dummy/db/migrate/20130918132952_add_highlight_to_products.beerify.rb +6 -0
- data/spec/dummy/db/schema.rb +116 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +19 -0
- metadata +641 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
inputs = %w[
|
2
|
+
CollectionSelectInput
|
3
|
+
DateTimeInput
|
4
|
+
FileInput
|
5
|
+
GroupedCollectionSelectInput
|
6
|
+
NumericInput
|
7
|
+
PasswordInput
|
8
|
+
RangeInput
|
9
|
+
StringInput
|
10
|
+
TextInput
|
11
|
+
]
|
12
|
+
|
13
|
+
inputs.each do |input_type|
|
14
|
+
superclass = "SimpleForm::Inputs::#{input_type}".constantize
|
15
|
+
|
16
|
+
new_class = Class.new(superclass) do
|
17
|
+
def input_html_classes
|
18
|
+
super.push('form-control')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
Object.const_set(input_type, new_class)
|
23
|
+
end
|
24
|
+
|
25
|
+
# Use this setup block to configure all options available in SimpleForm.
|
26
|
+
SimpleForm.setup do |config|
|
27
|
+
config.boolean_style = :nested
|
28
|
+
|
29
|
+
config.wrappers :bootstrap3, tag: 'div', class: 'form-group', error_class: 'has-error',
|
30
|
+
defaults: { input_html: { class: 'default_class' } } do |b|
|
31
|
+
|
32
|
+
b.use :html5
|
33
|
+
b.use :min_max
|
34
|
+
b.use :maxlength
|
35
|
+
b.use :placeholder
|
36
|
+
|
37
|
+
b.optional :pattern
|
38
|
+
b.optional :readonly
|
39
|
+
|
40
|
+
b.use :label_input
|
41
|
+
b.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
42
|
+
b.use :error, wrap_with: { tag: 'span', class: 'help-block has-error' }
|
43
|
+
end
|
44
|
+
|
45
|
+
config.wrappers :prepend, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
46
|
+
b.use :html5
|
47
|
+
b.use :placeholder
|
48
|
+
b.wrapper tag: 'div', class: 'controls' do |input|
|
49
|
+
input.wrapper tag: 'div', class: 'input-group' do |prepend|
|
50
|
+
prepend.use :label , class: 'input-group-addon' ###Please note setting class here fro the label does not currently work (let me know if you know a workaround as this is the final hurdle)
|
51
|
+
prepend.use :input
|
52
|
+
end
|
53
|
+
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
54
|
+
input.use :error, wrap_with: { tag: 'span', class: 'help-block has-error' }
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
config.wrappers :append, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
|
59
|
+
b.use :html5
|
60
|
+
b.use :placeholder
|
61
|
+
b.wrapper tag: 'div', class: 'controls' do |input|
|
62
|
+
input.wrapper tag: 'div', class: 'input-group' do |prepend|
|
63
|
+
prepend.use :input
|
64
|
+
prepend.use :label , class: 'input-group-addon' ###Please note setting class here fro the label does not currently work (let me know if you know a workaround as this is the final hurdle)
|
65
|
+
end
|
66
|
+
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
67
|
+
input.use :error, wrap_with: { tag: 'span', class: 'help-block has-error' }
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
|
72
|
+
# Check the Bootstrap docs (http://getbootstrap.com/)
|
73
|
+
# to learn about the different styles for forms and inputs,
|
74
|
+
# buttons and other elements.
|
75
|
+
config.default_wrapper = :bootstrap3
|
76
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
en:
|
2
|
+
activerecord:
|
3
|
+
attributes:
|
4
|
+
timestamps: ×tamps
|
5
|
+
updated_at: 'Updated at'
|
6
|
+
created_at: 'Created at'
|
7
|
+
catalog:
|
8
|
+
<<: *timestamps
|
9
|
+
catalog: 'Parent catalog'
|
10
|
+
catalogs: 'Catalogs'
|
11
|
+
description: 'Description'
|
12
|
+
products: 'Products'
|
13
|
+
title: 'Title'
|
14
|
+
ckeditor:
|
15
|
+
buttons:
|
16
|
+
cancel: 'Cancel'
|
17
|
+
delete: 'Delete'
|
18
|
+
upload: 'Upload'
|
19
|
+
confirm_delete: 'Delete file?'
|
20
|
+
page_title: 'CKEditor Files Manager'
|
21
|
+
contact:
|
22
|
+
<<: *timestamps
|
23
|
+
content: 'Content'
|
24
|
+
email: 'Email'
|
25
|
+
name: 'Name'
|
26
|
+
news:
|
27
|
+
<<: *timestamps
|
28
|
+
content: 'Content'
|
29
|
+
photo: 'Photo'
|
30
|
+
published_on: 'Published on'
|
31
|
+
title: 'Title'
|
32
|
+
user: 'Author'
|
33
|
+
photo:
|
34
|
+
<<: *timestamps
|
35
|
+
attachment: 'Attachment'
|
36
|
+
description: 'Description'
|
37
|
+
priority: 'Priority'
|
38
|
+
product: 'Product'
|
39
|
+
title: 'Title'
|
40
|
+
product:
|
41
|
+
<<: *timestamps
|
42
|
+
catalog: 'Catalog'
|
43
|
+
description: 'Description'
|
44
|
+
highlight: 'Highlight'
|
45
|
+
photo: 'Photo'
|
46
|
+
price: 'Price'
|
47
|
+
title: 'Title'
|
48
|
+
user:
|
49
|
+
<<: *timestamps
|
50
|
+
email: 'Email'
|
51
|
+
firstname: 'First name'
|
52
|
+
lastname: 'Last name'
|
53
|
+
password: 'Password'
|
54
|
+
password_confirmation: 'Password confirmation'
|
55
|
+
remember_me: 'Remember me'
|
56
|
+
type: 'Type'
|
57
|
+
username: 'Login'
|
@@ -0,0 +1,57 @@
|
|
1
|
+
fr:
|
2
|
+
activerecord:
|
3
|
+
attributes:
|
4
|
+
timestamps: ×tamps
|
5
|
+
updated_at: 'Mis à jour le'
|
6
|
+
created_at: 'Créé le'
|
7
|
+
catalog:
|
8
|
+
<<: *timestamps
|
9
|
+
catalog: 'Catalogue parent'
|
10
|
+
catalogs: 'Sous-catalogues'
|
11
|
+
description: 'Description'
|
12
|
+
products: 'Produits'
|
13
|
+
title: 'Titre'
|
14
|
+
ckeditor:
|
15
|
+
buttons:
|
16
|
+
cancel: 'Annuler'
|
17
|
+
delete: 'Supprimer'
|
18
|
+
upload: 'Envoyer'
|
19
|
+
confirm_delete: 'Supprimer le fichier ?'
|
20
|
+
page_title: 'CKEditor : Gestion des fichiers'
|
21
|
+
contact:
|
22
|
+
<<: *timestamps
|
23
|
+
content: 'Corps'
|
24
|
+
email: 'Adresse email'
|
25
|
+
name: 'Nom'
|
26
|
+
news:
|
27
|
+
<<: *timestamps
|
28
|
+
content: 'Contenu'
|
29
|
+
photo: 'Photo'
|
30
|
+
published_on: 'Publié le'
|
31
|
+
title: 'Titre'
|
32
|
+
user: 'Auteur'
|
33
|
+
photo:
|
34
|
+
<<: *timestamps
|
35
|
+
attachment: 'Pièce jointe'
|
36
|
+
description: 'Description'
|
37
|
+
priority: 'Priorité'
|
38
|
+
product: 'Produit'
|
39
|
+
title: 'Titre'
|
40
|
+
product:
|
41
|
+
<<: *timestamps
|
42
|
+
catalog: 'Catalogue'
|
43
|
+
description: 'Description'
|
44
|
+
highlight: 'Mettre en avant'
|
45
|
+
photo: 'Photo'
|
46
|
+
price: 'Prix'
|
47
|
+
title: 'Titre'
|
48
|
+
user:
|
49
|
+
<<: *timestamps
|
50
|
+
email: 'Adresse email'
|
51
|
+
firstname: 'Prénom'
|
52
|
+
lastname: 'Nom'
|
53
|
+
password: 'Mot de passe'
|
54
|
+
password_confirmation: 'Confirmation du mot de passe'
|
55
|
+
remember_me: 'Se souvenir de moi'
|
56
|
+
type: 'Type'
|
57
|
+
username: 'Login'
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
+
|
3
|
+
en:
|
4
|
+
devise:
|
5
|
+
confirmations:
|
6
|
+
confirmed: "Your account was successfully confirmed. You are now signed in."
|
7
|
+
send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
|
8
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
|
9
|
+
failure:
|
10
|
+
already_authenticated: "You are already signed in."
|
11
|
+
inactive: "Your account was not activated yet."
|
12
|
+
invalid: "Invalid email or password."
|
13
|
+
invalid_token: "Invalid authentication token."
|
14
|
+
locked: "Your account is locked."
|
15
|
+
not_found_in_database: "Invalid email or password."
|
16
|
+
timeout: "Your session expired, please sign in again to continue."
|
17
|
+
unauthenticated: "You need to sign in or sign up before continuing."
|
18
|
+
unconfirmed: "You have to confirm your account before continuing."
|
19
|
+
mailer:
|
20
|
+
confirmation_instructions:
|
21
|
+
subject: "Confirmation instructions"
|
22
|
+
reset_password_instructions:
|
23
|
+
subject: "Reset password instructions"
|
24
|
+
unlock_instructions:
|
25
|
+
subject: "Unlock Instructions"
|
26
|
+
omniauth_callbacks:
|
27
|
+
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
28
|
+
success: "Successfully authenticated from %{kind} account."
|
29
|
+
passwords:
|
30
|
+
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
31
|
+
send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
|
32
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
33
|
+
updated: "Your password was changed successfully. You are now signed in."
|
34
|
+
updated_not_active: "Your password was changed successfully."
|
35
|
+
registrations:
|
36
|
+
destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
|
37
|
+
signed_up: "Welcome! You have signed up successfully."
|
38
|
+
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
39
|
+
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
40
|
+
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
|
41
|
+
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
|
42
|
+
updated: "You updated your account successfully."
|
43
|
+
sessions:
|
44
|
+
signed_in: "Signed in successfully."
|
45
|
+
signed_out: "Signed out successfully."
|
46
|
+
unlocks:
|
47
|
+
send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
|
48
|
+
send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
|
49
|
+
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
50
|
+
errors:
|
51
|
+
messages:
|
52
|
+
already_confirmed: "was already confirmed, please try signing in"
|
53
|
+
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
54
|
+
expired: "has expired, please request a new one"
|
55
|
+
not_found: "not found"
|
56
|
+
not_locked: "was not locked"
|
57
|
+
not_saved:
|
58
|
+
one: "1 error prohibited this %{resource} from being saved:"
|
59
|
+
other: "%{count} errors prohibited this %{resource} from being saved:"
|
@@ -0,0 +1,78 @@
|
|
1
|
+
fr:
|
2
|
+
errors:
|
3
|
+
messages:
|
4
|
+
not_found: "n'a pas été trouvé(e)"
|
5
|
+
already_confirmed: "a déjà été validé(e)"
|
6
|
+
not_locked: "n'était pas verrouillé(e)"
|
7
|
+
not_saved:
|
8
|
+
one: "1 erreur a empêché ce(tte) %{resource} d'être sauvegardé(e) :"
|
9
|
+
other: "%{count} erreurs ont empêché ce(tte) %{resource} d'être sauvegardé(e) :"
|
10
|
+
devise:
|
11
|
+
shared:
|
12
|
+
sign_in: "Se connecter"
|
13
|
+
sign_up: "S'enregistrer"
|
14
|
+
forgot_password: "Mot de passe oublié ?"
|
15
|
+
didnt_receive_confirmation_instructions?: "Email de validation non reçu ?"
|
16
|
+
didnt_receive_unlock_instructions?: "Email de déverrouillage non reçu ?"
|
17
|
+
sign_in_with_omniauth: "Se connecter via %{provider}"
|
18
|
+
failure:
|
19
|
+
already_authenticated: "Vous êtes déjà connecté !"
|
20
|
+
unauthenticated: "Vous devez vous connecter ou vous inscrire pour continuer."
|
21
|
+
unconfirmed: "Vous devez valider votre compte pour continuer."
|
22
|
+
locked: "Votre compte est verrouillé."
|
23
|
+
invalid: "Email ou mot de passe incorrect."
|
24
|
+
invalid_token: "Jeton d'authentification incorrect."
|
25
|
+
timeout: "Votre session est expirée, veuillez vous reconnecter pour continuer."
|
26
|
+
inactive: "Votre compte n'est pas encore activé."
|
27
|
+
sessions:
|
28
|
+
signed_in: "Connecté."
|
29
|
+
signed_out: "Déconnecté."
|
30
|
+
passwords:
|
31
|
+
change_your_password: "Changez votre mot de passe"
|
32
|
+
new_password: "Nouveau mot de passe"
|
33
|
+
confirm_new_password: "Confirmer le nouveau mot de passe"
|
34
|
+
change_my_password: "Changer mon mot de passe"
|
35
|
+
send_reset_password_instructions: "Envoyez-moi les instructions de réinitialisation"
|
36
|
+
send_instructions: 'Vous allez recevoir les instructions de réinitialisation du mot de passe dans quelques instants'
|
37
|
+
updated: 'Votre mot de passe a été édité avec succès, vous êtes maintenant connecté'
|
38
|
+
confirmations:
|
39
|
+
resend_instructions: 'Ré-envoyer les instructions de confirmation'
|
40
|
+
send_instructions: 'Vous allez recevoir les instructions nécessaires à la confirmation de votre compte dans quelques minutes'
|
41
|
+
confirmed: 'Votre compte a été validé, vous êtes maintenant connecté'
|
42
|
+
registrations:
|
43
|
+
signed_up: 'Bienvenue, vous êtes connecté'
|
44
|
+
edit: "Editer %{resourcename}"
|
45
|
+
leave_blank: "laissez vide si vous ne désirez pas le changer"
|
46
|
+
current_password_label: "Nous avons besoin de votre mot de passe actuel pour confirmer les changements"
|
47
|
+
update: 'Modifier'
|
48
|
+
unhappy: "Mécontent"
|
49
|
+
cancel_my_account: "Supprimer mon compte"
|
50
|
+
confirm: "Êtes-vous sûr ?"
|
51
|
+
back: "Retour"
|
52
|
+
inactive_signed_up: "Votre compte a été trouvé. Cependant, nous n'avons pas pu vous connecter car votre compte est %{reason}."
|
53
|
+
updated: 'Votre compte a été modifié avec succès.'
|
54
|
+
destroyed: 'Votre compte a été supprimé avec succès. Nous espérons vous revoir bientôt.'
|
55
|
+
unlocks:
|
56
|
+
resend_instructions: "Ré-envoyer les instructions de déblocage"
|
57
|
+
send_instructions: 'Vous allez recevoir les instructions nécessaires au déblocage de votre compte dans quelques instants'
|
58
|
+
unlocked: 'Votre compte a été débloqué avec succès, vous êtes maintenant connecté.'
|
59
|
+
omniauth_callbacks:
|
60
|
+
success: 'Authentifié avec succès via %{kind}.'
|
61
|
+
failure: "Nous n'avons pas pu vous authentifier via %{kind} : '%{reason}'."
|
62
|
+
mailer:
|
63
|
+
hello: "Bienvenue %{email} !"
|
64
|
+
welcome: "Bienvenue %{email} !"
|
65
|
+
confirm: "Valider mon compte"
|
66
|
+
change: 'Changer mon mot de passe'
|
67
|
+
someone_requested: "Un changement de mot de passe a été demandé. Vous pouvez le faire en cliquant sur le lien ci-dessous."
|
68
|
+
please_ignore: "Si vous n'avez pas fait cette demande, veuillez ignorer cet email."
|
69
|
+
password_wont_change: "Votre mot de passe ne sera pas changé tant que vous n'aurez pas accédé au lien ci-dessus pour en créer un nouveau."
|
70
|
+
locked: "Votre compte a été bloqué à cause d'un nombre excessif de tentatives de connexion."
|
71
|
+
click_to_unlock: "Cliquez sur le lien ci-dessous pour déverrouiller votre compte"
|
72
|
+
unlock: "Déverrouiller mon compte"
|
73
|
+
confirmation_instructions:
|
74
|
+
subject: "Instructions de confirmation"
|
75
|
+
reset_password_instructions:
|
76
|
+
subject: "Instructions pour changer le mot de passe"
|
77
|
+
unlock_instructions:
|
78
|
+
subject: "Instructions pour déverrouiller le compte"
|
@@ -0,0 +1,59 @@
|
|
1
|
+
en:
|
2
|
+
devise:
|
3
|
+
confirmations:
|
4
|
+
new:
|
5
|
+
resend_confirmation_instructions: "Resend confirmation instructions"
|
6
|
+
mailer:
|
7
|
+
confirmation_instructions:
|
8
|
+
action: "Confirm my account"
|
9
|
+
greeting: "Welcome %{recipient}!"
|
10
|
+
instruction: ! "You can confirm your account email through the link below :"
|
11
|
+
subject: "Confirmation instructions"
|
12
|
+
reset_password_instructions:
|
13
|
+
action: "Change my password"
|
14
|
+
greeting: "Hello %{recipient}!"
|
15
|
+
instruction: "Someone has requested a link to change your password, and you can do this through the link below."
|
16
|
+
instruction_2: "If you didn't request this, please ignore this email."
|
17
|
+
instruction_3: "Your password won't change until you access the link above and create a new one."
|
18
|
+
subject: "Reset password instructions"
|
19
|
+
unlock_instructions:
|
20
|
+
action: "Unlock my account"
|
21
|
+
greeting: "Hello %{recipient}!"
|
22
|
+
instruction: ! "Click the link below to unlock your account:"
|
23
|
+
message: "Your account has been locked due to an excessive amount of unsuccessful sign in attempts."
|
24
|
+
subject: "Unlock Instructions"
|
25
|
+
passwords:
|
26
|
+
new:
|
27
|
+
forgot_your_password: "Forgot your password?"
|
28
|
+
send_me_reset_password_instructions: "Send me reset password instructions"
|
29
|
+
edit:
|
30
|
+
change_your_password: "Change your password"
|
31
|
+
new_password: "New password"
|
32
|
+
confirm_new_password: "Confirm new password"
|
33
|
+
change_my_password: "Change my password"
|
34
|
+
registrations:
|
35
|
+
edit:
|
36
|
+
are_you_sure: "Are you sure?"
|
37
|
+
cancel_my_account: "Cancel my account"
|
38
|
+
leave_blank_if_you_don_t_want_to_change_it: "leave blank if you dont want to change it"
|
39
|
+
title: "Edit %{resource}"
|
40
|
+
we_need_your_current_password_to_confirm_your_changes: "we need your current password to confirm your changes"
|
41
|
+
update: "Update"
|
42
|
+
cancel_my_account: "Cancel my account"
|
43
|
+
unhappy: "Unhappy"
|
44
|
+
new:
|
45
|
+
sign_up: "Sign up"
|
46
|
+
sessions:
|
47
|
+
new:
|
48
|
+
sign_in: "Sign in"
|
49
|
+
shared:
|
50
|
+
links:
|
51
|
+
didn_t_receive_confirmation_instructions: "Didn't receive confirmation instructions?"
|
52
|
+
didn_t_receive_unlock_instructions: "Didn't receive unlock instructions?"
|
53
|
+
forgot_your_password: "Forgot your password?"
|
54
|
+
sign_in: "Sign in"
|
55
|
+
sign_in_with_provider: "Sign in with %{provider}"
|
56
|
+
sign_up: "Sign up"
|
57
|
+
unlocks:
|
58
|
+
new:
|
59
|
+
resend_unlock_instructions: "Resend unlock instructions"
|
@@ -0,0 +1,51 @@
|
|
1
|
+
fr:
|
2
|
+
devise:
|
3
|
+
confirmations:
|
4
|
+
new:
|
5
|
+
resend_confirmation_instructions: "Renvoyer les instructions de confirmation"
|
6
|
+
mailer:
|
7
|
+
confirmation_instructions:
|
8
|
+
action: "Confirmer mon email"
|
9
|
+
greeting: "Bienvenue %{recipient}!"
|
10
|
+
instruction: ! "Vous pouvez confirmer votre email grâce au lien ci-dessous:"
|
11
|
+
subject: "Instructions pour confirmer votre compte"
|
12
|
+
reset_password_instructions:
|
13
|
+
action: "Changer mon mot de passe"
|
14
|
+
greeting: "Bonjour %{recipient}!"
|
15
|
+
instruction: ! "Quelqu'un a demandé un lien pour changer votre mot de passe. Le voici :"
|
16
|
+
instruction_2: "Si vous n'avez pas émis cette demande, merci d'ignore cet email."
|
17
|
+
instruction_3: "Votre mot de passe ne changera pas tant que vous n'aurez pas cliqué sur ce lien et renseigné un nouveau mot de passe."
|
18
|
+
subject: "Instructions pour réinitialiser votre mot de passe"
|
19
|
+
unlock_instructions:
|
20
|
+
action: "Débloquer mon compte"
|
21
|
+
greeting: "Bonjour %{recipient}!"
|
22
|
+
instruction: ! "Suivez ce lien pour débloquer votre compte:"
|
23
|
+
message: "Votre compte a été bloqué suite à un nombre d'essais de connexions manqués trop important"
|
24
|
+
subject: "Instructions pour débloquer votre compte"
|
25
|
+
passwords:
|
26
|
+
new:
|
27
|
+
forgot_your_password: "Mot de passe oublié ?"
|
28
|
+
send_me_reset_password_instructions: "Envoyez-moi des instructions pour réinitialiser mon mot de passe"
|
29
|
+
registrations:
|
30
|
+
edit:
|
31
|
+
are_you_sure: "Êtes-vous sûr ?!"
|
32
|
+
cancel_my_account: "Supprimer mon compte"
|
33
|
+
leave_blank_if_you_don_t_want_to_change_it: "laissez ce champ vide pour le laisser inchangé"
|
34
|
+
title: "Éditer %{resource}"
|
35
|
+
we_need_your_current_password_to_confirm_your_changes: "nous avons besoin de votre mot de passe actuel pour valider ces modifications"
|
36
|
+
new:
|
37
|
+
sign_up: "Inscription"
|
38
|
+
sessions:
|
39
|
+
new:
|
40
|
+
sign_in: "Connexion"
|
41
|
+
shared:
|
42
|
+
links:
|
43
|
+
didn_t_receive_confirmation_instructions: "Vous n'avez pas reçu le mail de confirmation ?"
|
44
|
+
didn_t_receive_unlock_instructions: "Vous n'avez pas reçu le mail de débloquage ?"
|
45
|
+
forgot_your_password: "Mot de passe oublié ?"
|
46
|
+
sign_in: "Connexion"
|
47
|
+
sign_in_with_provider: "Connexion avec %{provider}"
|
48
|
+
sign_up: "Inscription"
|
49
|
+
unlocks:
|
50
|
+
new:
|
51
|
+
resend_unlock_instructions: "Renvoyer les instructions de débloquage"
|
@@ -0,0 +1,220 @@
|
|
1
|
+
fr:
|
2
|
+
date:
|
3
|
+
formats:
|
4
|
+
default: "%d/%m/%Y"
|
5
|
+
short: "%e %b"
|
6
|
+
long: "%e %B %Y"
|
7
|
+
day_names:
|
8
|
+
- dimanche
|
9
|
+
- lundi
|
10
|
+
- mardi
|
11
|
+
- mercredi
|
12
|
+
- jeudi
|
13
|
+
- vendredi
|
14
|
+
- samedi
|
15
|
+
abbr_day_names:
|
16
|
+
- dim
|
17
|
+
- lun
|
18
|
+
- mar
|
19
|
+
- mer
|
20
|
+
- jeu
|
21
|
+
- ven
|
22
|
+
- sam
|
23
|
+
month_names:
|
24
|
+
- ~
|
25
|
+
- janvier
|
26
|
+
- février
|
27
|
+
- mars
|
28
|
+
- avril
|
29
|
+
- mai
|
30
|
+
- juin
|
31
|
+
- juillet
|
32
|
+
- août
|
33
|
+
- septembre
|
34
|
+
- octobre
|
35
|
+
- novembre
|
36
|
+
- décembre
|
37
|
+
abbr_month_names:
|
38
|
+
- ~
|
39
|
+
- jan.
|
40
|
+
- fév.
|
41
|
+
- mar.
|
42
|
+
- avr.
|
43
|
+
- mai
|
44
|
+
- juin
|
45
|
+
- juil.
|
46
|
+
- août
|
47
|
+
- sept.
|
48
|
+
- oct.
|
49
|
+
- nov.
|
50
|
+
- déc.
|
51
|
+
order:
|
52
|
+
- :day
|
53
|
+
- :month
|
54
|
+
- :year
|
55
|
+
|
56
|
+
time:
|
57
|
+
formats:
|
58
|
+
default: "%d %B %Y %H:%M:%S"
|
59
|
+
short: "%d %b %H:%M"
|
60
|
+
long: "%A %d %B %Y %H:%M"
|
61
|
+
am: 'am'
|
62
|
+
pm: 'pm'
|
63
|
+
|
64
|
+
datetime:
|
65
|
+
distance_in_words:
|
66
|
+
half_a_minute: "une demi-minute"
|
67
|
+
less_than_x_seconds:
|
68
|
+
zero: "moins d'une seconde"
|
69
|
+
one: "moins d'une seconde"
|
70
|
+
other: "moins de %{count} secondes"
|
71
|
+
x_seconds:
|
72
|
+
one: "1 seconde"
|
73
|
+
other: "%{count} secondes"
|
74
|
+
less_than_x_minutes:
|
75
|
+
zero: "moins d'une minute"
|
76
|
+
one: "moins d'une minute"
|
77
|
+
other: "moins de %{count} minutes"
|
78
|
+
x_minutes:
|
79
|
+
one: "1 minute"
|
80
|
+
other: "%{count} minutes"
|
81
|
+
about_x_hours:
|
82
|
+
one: "environ une heure"
|
83
|
+
other: "environ %{count} heures"
|
84
|
+
x_days:
|
85
|
+
one: "1 jour"
|
86
|
+
other: "%{count} jours"
|
87
|
+
about_x_months:
|
88
|
+
one: "environ un mois"
|
89
|
+
other: "environ %{count} mois"
|
90
|
+
x_months:
|
91
|
+
one: "1 mois"
|
92
|
+
other: "%{count} mois"
|
93
|
+
about_x_years:
|
94
|
+
one: "environ un an"
|
95
|
+
other: "environ %{count} ans"
|
96
|
+
over_x_years:
|
97
|
+
one: "plus d'un an"
|
98
|
+
other: "plus de %{count} ans"
|
99
|
+
almost_x_years:
|
100
|
+
one: "presqu'un an"
|
101
|
+
other: "presque %{count} ans"
|
102
|
+
prompts:
|
103
|
+
year: "Année"
|
104
|
+
month: "Mois"
|
105
|
+
day: "Jour"
|
106
|
+
hour: "Heure"
|
107
|
+
minute: "Minute"
|
108
|
+
second: "Seconde"
|
109
|
+
|
110
|
+
number:
|
111
|
+
format:
|
112
|
+
separator: ","
|
113
|
+
delimiter: " "
|
114
|
+
precision: 3
|
115
|
+
significant: false
|
116
|
+
strip_insignificant_zeros: false
|
117
|
+
currency:
|
118
|
+
format:
|
119
|
+
format: "%n %u"
|
120
|
+
unit: "€"
|
121
|
+
separator: ","
|
122
|
+
delimiter: " "
|
123
|
+
precision: 2
|
124
|
+
significant: false
|
125
|
+
strip_insignificant_zeros: false
|
126
|
+
percentage:
|
127
|
+
format:
|
128
|
+
delimiter: ""
|
129
|
+
precision:
|
130
|
+
format:
|
131
|
+
delimiter: ""
|
132
|
+
human:
|
133
|
+
format:
|
134
|
+
delimiter: ""
|
135
|
+
precision: 2
|
136
|
+
significant: true
|
137
|
+
strip_insignificant_zeros: true
|
138
|
+
storage_units:
|
139
|
+
format: "%n %u"
|
140
|
+
units:
|
141
|
+
byte:
|
142
|
+
one: "octet"
|
143
|
+
other: "octets"
|
144
|
+
kb: "ko"
|
145
|
+
mb: "Mo"
|
146
|
+
gb: "Go"
|
147
|
+
tb: "To"
|
148
|
+
decimal_units:
|
149
|
+
format: "%n %u"
|
150
|
+
units:
|
151
|
+
unit: ""
|
152
|
+
thousand: "millier"
|
153
|
+
million: "million"
|
154
|
+
billion: "milliard"
|
155
|
+
trillion: "billion"
|
156
|
+
quadrillion: "million de milliards"
|
157
|
+
|
158
|
+
support:
|
159
|
+
array:
|
160
|
+
words_connector: ", "
|
161
|
+
two_words_connector: " et "
|
162
|
+
last_word_connector: " et "
|
163
|
+
|
164
|
+
helpers:
|
165
|
+
select:
|
166
|
+
prompt: "Veuillez sélectionner"
|
167
|
+
submit:
|
168
|
+
create: "Créer un(e) %{model}"
|
169
|
+
update: "Modifier ce(tte) %{model}"
|
170
|
+
submit: "Enregistrer ce(tte) %{model}"
|
171
|
+
|
172
|
+
errors: &errors
|
173
|
+
format: "%{attribute} %{message}"
|
174
|
+
messages: &errors_messages
|
175
|
+
inclusion: "n'est pas inclus(e) dans la liste"
|
176
|
+
exclusion: "n'est pas disponible"
|
177
|
+
invalid: "n'est pas valide"
|
178
|
+
confirmation: "ne concorde pas avec la confirmation"
|
179
|
+
accepted: "doit être accepté(e)"
|
180
|
+
empty: "doit être rempli(e)"
|
181
|
+
blank: "doit être rempli(e)"
|
182
|
+
too_long:
|
183
|
+
one: "est trop long (pas plus d'un caractère)"
|
184
|
+
other: "est trop long (pas plus de %{count} caractères)"
|
185
|
+
too_short:
|
186
|
+
one: "est trop court (au moins un caractère)"
|
187
|
+
other: "est trop court (au moins %{count} caractères)"
|
188
|
+
wrong_length:
|
189
|
+
one: "ne fait pas la bonne longueur (doit comporter un seul caractère)"
|
190
|
+
other: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
|
191
|
+
not_a_number: "n'est pas un nombre"
|
192
|
+
not_an_integer: "doit être un nombre entier"
|
193
|
+
greater_than: "doit être supérieur à %{count}"
|
194
|
+
greater_than_or_equal_to: "doit être supérieur ou égal à %{count}"
|
195
|
+
equal_to: "doit être égal à %{count}"
|
196
|
+
less_than: "doit être inférieur à %{count}"
|
197
|
+
less_than_or_equal_to: "doit être inférieur ou égal à %{count}"
|
198
|
+
odd: "doit être impair"
|
199
|
+
even: "doit être pair"
|
200
|
+
taken: "n'est pas disponible"
|
201
|
+
record_invalid: "La validation a échoué : %{errors}"
|
202
|
+
url: "n'est pas une url valide"
|
203
|
+
email: "n'est pas une adresse email valide"
|
204
|
+
|
205
|
+
template: &errors_template
|
206
|
+
header:
|
207
|
+
one: "Impossible d'enregistrer ce(tte) %{model} : 1 erreur"
|
208
|
+
other: "Impossible d'enregistrer ce(tte) %{model} : %{count} erreurs"
|
209
|
+
body: "Veuillez vérifier les champs suivants : "
|
210
|
+
|
211
|
+
activemodel:
|
212
|
+
errors:
|
213
|
+
<<: *errors
|
214
|
+
activerecord:
|
215
|
+
errors:
|
216
|
+
<<: *errors
|
217
|
+
|
218
|
+
will_paginate:
|
219
|
+
previous_label: "←"
|
220
|
+
next_label: "→"
|