polivalente 0.3.1 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 385474de37ab9691a728702edf42223dddc09382c74e353c3d68877d8c85ab75
4
- data.tar.gz: 7481f61e3af5c6e58d5c074a8e46046c60070861fab31b4e186d98703ff5df66
3
+ metadata.gz: 519abbcde73a8cc71755ca276ed90162cf9765e208ad35e056eb1d683b6d9f81
4
+ data.tar.gz: e53d67eea6a037523611c684abd49239cf032b5a52a772f6698b24d419f7b4cf
5
5
  SHA512:
6
- metadata.gz: bb2882561a4436dd9afa195e5a68d4bff20e3226e1dad666fd25f688f4159edbd8d1e0d5de6ddbddc1d139f68e20f7bef76bd6e913a31b819ef80fb60dd71899
7
- data.tar.gz: b20d02a7766d3a324c594e54178ee43cb71113fa6f36eb279010debf5a19a0d55ec77aef1d06af18a130977c8505eb462a7426f2bd74456f9e4a58923cdd2de1
6
+ metadata.gz: 4d65b2d3c25b08c0d15b12e39ad22a17d8ba978a22803a2d3f202c5f6e5ffb784d6dd47ef91980ce788746fcf7c2c9172721ffbab3794171c391fc223e77ecd2
7
+ data.tar.gz: c76affedd778732bef995a0ea986c35bbbb934c5e186d08af8b0b90b9cef24a8606d2eaa92ebba3b325399eb7d34117b98f8810e38c2cf940dc346b3df1b081a
@@ -0,0 +1,23 @@
1
+ module Polivalente
2
+ class CustomDeviseController < ApplicationController
3
+ include Polivalente::UserLocale
4
+ before_action :set_user_locale!
5
+
6
+ class CustomResponder < ActionController::Responder
7
+ def to_turbo_stream
8
+ controller.render(options.merge(formats: :html))
9
+
10
+ rescue ActionView::MissingTemplate => error
11
+ if get?
12
+ elsif has_errors? && default_action
13
+ render rendering_options.merge(formats: :html, status: :unprocessable_entity)
14
+ else
15
+ redirect_to navigation_location
16
+ end
17
+ end
18
+ end
19
+
20
+ self.responder = CustomResponder
21
+ respond_to :html, :turbo_stream
22
+ end
23
+ end
@@ -4,7 +4,8 @@ module Polivalente
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- has_many :archives, dependent: :destroy
7
+ has_many :archives, dependent: :destroy, class_name: "Polivalente::Archive"
8
+
8
9
  scope :with_archives, -> { include(:archives) }
9
10
  end
10
11
  end
@@ -4,7 +4,7 @@ module Polivalente
4
4
  prepend Discard::Model
5
5
 
6
6
  included do
7
- has_many :comments, as: :commentable, dependent: :destroy
7
+ has_many :comments, as: :commentable, dependent: :destroy, class_name: "Polivalente::Comment"
8
8
 
9
9
  scope :commented, -> { where(comments.count > 0) }
10
10
  scope :with_comments, -> { includes(:comments) }
@@ -5,7 +5,7 @@ module Polivalente
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- has_many :comments, dependent: :destroy
8
+ has_many :comments, dependent: :destroy, class_name: "Polivalente::Comment"
9
9
 
10
10
  scope :with_comments, -> { includes(:comments) }
11
11
  end
@@ -4,7 +4,7 @@ module Polivalente
4
4
  prepend Discard::Model
5
5
 
6
6
  included do
7
- has_many :reactions, as: :reactable, dependent: :destroy
7
+ has_many :reactions, as: :reactable, dependent: :destroy, class_name: "Polivalente::Reaction"
8
8
 
9
9
  scope :with_reactions, -> { include(:reactions) }
10
10
 
@@ -5,7 +5,7 @@ module Polivalente
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- has_many :reactions, dependent: :destroy
8
+ has_many :reactions, dependent: :destroy, class_name: "Polivalente::Reaction"
9
9
 
10
10
  scope :with_reactions, -> { include(:reactions) }
11
11
  end
@@ -5,8 +5,8 @@ module Polivalente
5
5
  included do
6
6
  attr_accessor :name, :tag_list
7
7
 
8
- has_many :taggings, as: :taggable
9
- has_many :tags, through: :taggings
8
+ has_many :taggings, as: :taggable, class_name: "Polivalente::Tagging"
9
+ has_many :tags, through: :taggings, class_name: "Polivalente::Tag"
10
10
 
11
11
  scope :with_taggings, -> { include(:taggings) }
12
12
 
@@ -4,7 +4,7 @@ module Polivalente
4
4
  prepend Discard::Model
5
5
 
6
6
  included do
7
- has_many :trashes, as: :trashable, dependent: :destroy
7
+ has_many :trashes, as: :trashable, dependent: :destroy, class_name: "Polivalente::Trash"
8
8
 
9
9
  after_discard :place_in_trash!
10
10
  after_undiscard :remove_from_trash!
@@ -6,7 +6,8 @@ module Polivalente
6
6
  extend ActiveSupport::Concern
7
7
 
8
8
  included do
9
- has_many :trashes, dependent: :destroy
9
+ has_many :trashes, dependent: :destroy, class_name: "Polivalente::Trash"
10
+
10
11
  scope :with_trash, -> { include(:trashes) }
11
12
  end
12
13
  end
@@ -1,10 +1,10 @@
1
1
  class CreateUsers < ActiveRecord::Migration[7.0]
2
2
  def change
3
3
  create_table :users do |t|
4
- t.string :first_name, null: false, index: true
5
- t.string :last_name, null: false, index: true
6
- t.boolean :is_admin, null: false, index: true, default: false
7
- t.boolean :is_verified, null: false, index: true, default: false
4
+ t.string :first_name, null: false, index: true
5
+ t.string :last_name, null: false, index: true
6
+ t.boolean :is_admin, null: false, index: true, default: false
7
+ t.boolean :is_verified, null: false, index: true, default: false
8
8
 
9
9
  ## Devise::DatabaseAuthenticatable
10
10
  t.string :email, null: false, default: "", index: { unique: true }
@@ -25,9 +25,10 @@ class CreateUsers < ActiveRecord::Migration[7.0]
25
25
  t.string :last_sign_in_ip
26
26
 
27
27
  ## Devise::Confirmable
28
- t.string :confirmation_token, unique: true
28
+ t.string :confirmation_token, index: { unique: true }
29
29
  t.datetime :confirmed_at
30
30
  t.datetime :confirmation_sent_at
31
+ t.string :unconfirmed_email # Only if using reconfirmable
31
32
 
32
33
  ## Devise::Lockable
33
34
  t.integer :failed_attempts, default: 0, null: false
@@ -0,0 +1,15 @@
1
+ module Polivalente
2
+ module Generators
3
+ class ControllersGenerator < ::Rails::Generators::Base
4
+ source_root File.expand_path("../../templates", __FILE__)
5
+
6
+ def copy_devise_controller
7
+ template "devise_controller.rb", "app/controllers/custom_devise_controller.rb"
8
+ end
9
+
10
+ def copy_user_omniauth_controller
11
+ template "omniauth_controller.rb", "app/controllers/users/omniauth_callbacks_controller.rb"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -6,27 +6,22 @@ module Polivalente
6
6
  def copy_migrations
7
7
  rails_command "railties:install:migrations FROM=polivalente", inline: true
8
8
  end
9
-
10
- def copy_locales
11
- copy_file "../../../../config/locales/en.yml", "config/locales/en.yml"
12
- copy_file "../../../../config/locales/es.yml", "config/locales/es.yml"
13
- copy_file "../../../../config/locales/fr.yml", "config/locales/fr.yml"
14
- copy_file "../../../../config/locales/pt.yml", "config/locales/pt.yml"
15
- end
16
9
 
17
10
  def copy_initializer
18
11
  template "polivalente.rb", "config/initializers/polivalente.rb"
19
12
  end
20
13
 
21
- def copy_initializer
14
+ def copy_ams_initializer
22
15
  template "active_model_serializers.rb", "config/initializers/active_model_serializers.rb"
23
16
  end
24
17
 
25
18
  def add_route
26
- devise_class = Polivalente.config.user_class.constantize
27
-
28
19
  route "mount Polivalente::Engine => ''"
29
- route "devise_for :users, path: 'auth'"
20
+ route "devise_for :users, path: 'auth', path_names: { sign_in: 'login', sign_out: 'logout' }"
21
+ end
22
+
23
+ def add_devise_i18n_gem
24
+ gem 'devise-18n'
30
25
  end
31
26
 
32
27
  def show_readme
@@ -6,5 +6,20 @@ the gem's initializer.
6
6
 
7
7
  Then, proceed to run the installer for Devise.
8
8
 
9
+ You can customise your devise routes (in config/routes.rb) like so:
10
+
11
+ ```
12
+ devise_for :user, path: 'auth', path_names: {
13
+ sign_in: 'login',
14
+ sign_up: 'signup',
15
+ sign_out: 'logout',
16
+ confirmation: 'verification',
17
+ registration: 'register',
18
+ password: 'secret',
19
+ unlock: 'unblock',
20
+ },
21
+ controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
22
+ ```
23
+
9
24
  For help, please check this gem's README on GitHub. Available at:
10
25
  https://github.com/oleoneto/polivalente
@@ -0,0 +1,18 @@
1
+ class CustomDeviseController < ApplicationController
2
+ class CustomResponder < ActionController::Responder
3
+ def to_turbo_stream
4
+ controller.render(options.merge(formats: :html))
5
+
6
+ rescue ActionView::MissingTemplate => error
7
+ if get?
8
+ elsif has_errors? && default_action
9
+ render rendering_options.merge(formats: :html, status: :unprocessable_entity)
10
+ else
11
+ redirect_to navigation_location
12
+ end
13
+ end
14
+ end
15
+
16
+ self.responder = CustomResponder
17
+ respond_to :html, :turbo_stream
18
+ end
@@ -0,0 +1,13 @@
1
+ class CustomDeviseFailureApp < Devise::FailureApp
2
+ def respond
3
+ if request_format == :turbo_stream
4
+ redirect
5
+ else
6
+ super
7
+ end
8
+ end
9
+
10
+ def skip_format?
11
+ %w(html turbo_stream */*).include? request_format.to_s
12
+ end
13
+ end
@@ -0,0 +1,25 @@
1
+ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
2
+ skip_before_action :verify_authenticity_token, only: :all
3
+
4
+ def all
5
+ user_class = Polivalente.config.user_class.constantize
6
+
7
+ raise request.env["omniauth.auth"].to_yaml
8
+
9
+ user = user_class.from_omniauth(request.env["omniauth.auth"])
10
+
11
+ if user.persisted?
12
+ flash.notice = "Signed in!"
13
+ sign_in_and_redirect user
14
+ else
15
+ session["devise.user_attributes"] = user.attributes
16
+ redirect_to new_user_registration_url
17
+ end
18
+ end
19
+ alias_method :github, :all
20
+ alias_method :twitter, :all
21
+
22
+ def failure
23
+ redirect_to main_app.root_path
24
+ end
25
+ end
@@ -0,0 +1,11 @@
1
+ module Polivalente
2
+ module Generators
3
+ class ViewsGenerator < ::Rails::Generators::Base
4
+ source_root File.expand_path("../../templates", __FILE__)
5
+
6
+ def copy_devise_views
7
+ directory "../../../../app/views/devise", "app/views/devise"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -17,6 +17,13 @@ module Polivalente
17
17
  end
18
18
  end
19
19
 
20
+ initializer "polivalente.assets" do |app|
21
+ if Rails.application.config.respond_to?(:assets)
22
+ app.config.assets.precompile << "polivalente/application.js"
23
+ app.config.assets.precompile << "polivalente/application.css"
24
+ end
25
+ end
26
+
20
27
  # Do not prefix table names with `polivantente_`
21
28
  def self.table_name_prefix
22
29
  end
@@ -1,3 +1,3 @@
1
1
  module Polivalente
2
- VERSION = "0.3.1"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polivalente
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo Neto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -129,6 +129,7 @@ files:
129
129
  - app/assets/stylesheets/polivalente/application.css
130
130
  - app/controllers/polivalente/application_controller.rb
131
131
  - app/controllers/polivalente/autocomplete_controller.rb
132
+ - app/controllers/polivalente/custom_devise_controller.rb
132
133
  - app/controllers/polivalente/ping_controller.rb
133
134
  - app/helpers/polivalente/application_helper.rb
134
135
  - app/helpers/polivalente/color_helper.rb
@@ -164,11 +165,6 @@ files:
164
165
  - app/serializers/polivalente/tagging_serializer.rb
165
166
  - app/serializers/polivalente/user_serializer.rb
166
167
  - app/views/layouts/polivalente/application.html.erb
167
- - config/locales/devise.en.yml
168
- - config/locales/en.yml
169
- - config/locales/es.yml
170
- - config/locales/fr.yml
171
- - config/locales/pt.yml
172
168
  - config/routes.rb
173
169
  - db/migrate/20220124153504_create_users.rb
174
170
  - db/migrate/20220125040905_create_tags.rb
@@ -180,12 +176,17 @@ files:
180
176
  - db/migrate/20220125144339_create_reactions.rb
181
177
  - db/migrate/20220125144342_create_trash.rb
182
178
  - db/migrate/20220130033524_create_archives.rb
179
+ - lib/generators/polivalente/controllers/controllers_generator.rb
183
180
  - lib/generators/polivalente/install/install_generator.rb
184
181
  - lib/generators/polivalente/templates/README
185
182
  - lib/generators/polivalente/templates/active_model_serializers.rb
183
+ - lib/generators/polivalente/templates/devise_controller.rb
184
+ - lib/generators/polivalente/templates/devise_failure_app.rb
185
+ - lib/generators/polivalente/templates/omniauth_controller.rb
186
186
  - lib/generators/polivalente/templates/polivalente.rb
187
187
  - lib/generators/polivalente/templates/user.rb
188
188
  - lib/generators/polivalente/user/user_generator.rb
189
+ - lib/generators/polivalente/views/views_generator.rb
189
190
  - lib/generators/rails/concern/USAGE
190
191
  - lib/generators/rails/concern/concern_generator.rb
191
192
  - lib/generators/rails/concern/templates/concern.rb
@@ -1,65 +0,0 @@
1
- # Additional translations at https://github.com/heartcombo/devise/wiki/I18n
2
-
3
- en:
4
- devise:
5
- confirmations:
6
- confirmed: "Your email address has been successfully confirmed."
7
- send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
8
- send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
9
- failure:
10
- already_authenticated: "You are already signed in."
11
- inactive: "Your account is not activated yet."
12
- invalid: "Invalid %{authentication_keys} or password."
13
- locked: "Your account is locked."
14
- last_attempt: "You have one more attempt before your account is locked."
15
- not_found_in_database: "Invalid %{authentication_keys} 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 email address 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
- email_changed:
27
- subject: "Email Changed"
28
- password_change:
29
- subject: "Password Changed"
30
- omniauth_callbacks:
31
- failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
32
- success: "Successfully authenticated from %{kind} account."
33
- passwords:
34
- 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."
35
- send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
36
- 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."
37
- updated: "Your password has been changed successfully. You are now signed in."
38
- updated_not_active: "Your password has been changed successfully."
39
- registrations:
40
- destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
41
- signed_up: "Welcome! You have signed up successfully."
42
- signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
43
- signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
44
- signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
45
- update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirmation link to confirm your new email address."
46
- updated: "Your account has been updated successfully."
47
- updated_but_not_signed_in: "Your account has been updated successfully, but since your password was changed, you need to sign in again."
48
- sessions:
49
- signed_in: "Signed in successfully."
50
- signed_out: "Signed out successfully."
51
- already_signed_out: "Signed out successfully."
52
- unlocks:
53
- send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
54
- send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
55
- unlocked: "Your account has been unlocked successfully. Please sign in to continue."
56
- errors:
57
- messages:
58
- already_confirmed: "was already confirmed, please try signing in"
59
- confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
60
- expired: "has expired, please request a new one"
61
- not_found: "not found"
62
- not_locked: "was not locked"
63
- not_saved:
64
- one: "1 error prohibited this %{resource} from being saved:"
65
- other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -1,79 +0,0 @@
1
- en:
2
- devise:
3
- confirmations:
4
- confirmed: "Your email address has been successfully confirmed."
5
- send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
6
- send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
7
- failure:
8
- already_authenticated: "You are already signed in."
9
- inactive: "Your account is not activated yet."
10
- invalid: "Invalid %{authentication_keys} or password."
11
- locked: "Your account is locked."
12
- last_attempt: "You have one more attempt before your account is locked."
13
- not_found_in_database: "Invalid %{authentication_keys} or password."
14
- timeout: "Your session expired. Please sign in again to continue."
15
- unauthenticated: "You need to sign in or sign up before continuing."
16
- unconfirmed: "You have to confirm your email address before continuing."
17
- mailer:
18
- confirmation_instructions:
19
- subject: "Confirmation instructions"
20
- reset_password_instructions:
21
- subject: "Reset password instructions"
22
- unlock_instructions:
23
- subject: "Unlock instructions"
24
- email_changed:
25
- subject: "Email Changed"
26
- password_change:
27
- subject: "Password Changed"
28
- omniauth_callbacks:
29
- failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
30
- success: "Successfully authenticated from %{kind} account."
31
- passwords:
32
- 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."
33
- send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
34
- 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."
35
- updated: "Your password has been changed successfully. You are now signed in."
36
- updated_not_active: "Your password has been changed successfully."
37
- registrations:
38
- destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
39
- signed_up: "Welcome! You have signed up successfully."
40
- signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
41
- signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
42
- signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
43
- update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirmation link to confirm your new email address."
44
- updated: "Your account has been updated successfully."
45
- updated_but_not_signed_in: "Your account has been updated successfully, but since your password was changed, you need to sign in again."
46
- sessions:
47
- signed_in: "Signed in successfully."
48
- signed_out: "Signed out successfully."
49
- already_signed_out: "Signed out successfully."
50
- shared:
51
- links:
52
- back:
53
- didn_t_receive_confirmation_instructions: Didn't receive confirmation instructions?
54
- didn_t_receive_unlock_instructions: Didn't receive unlock instructions?
55
- forgot_your_password: Forgot your password?
56
- sign_in: Sign in
57
- sign_in_with_provider: Sign in with %{provider}
58
- sign_up: Sign up
59
- unlocks:
60
- send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
61
- send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
62
- unlocked: "Your account has been unlocked successfully. Please sign in to continue."
63
- errors:
64
- messages:
65
- already_confirmed: "was already confirmed, please try signing in"
66
- confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
67
- expired: "has expired, please request a new one"
68
- not_found: "not found"
69
- not_locked: "was not locked"
70
- not_saved:
71
- one: "1 error prohibited this %{resource} from being saved:"
72
- other: "%{count} errors prohibited this %{resource} from being saved:"
73
- configuration: "Application Settings"
74
- current_locale: "Current Locale"
75
- available_locales: "Available locales"
76
- trash:
77
- time_to_live: "Trash TTL"
78
- key: "key"
79
- value: "value"
@@ -1,111 +0,0 @@
1
- es:
2
- devise:
3
- confirmations:
4
- confirmed: Tu cuenta ha sido confirmada satisfactoriamente.
5
- new:
6
- resend_confirmation_instructions: Reenviar instrucciones de confirmación
7
- send_instructions: Vas a recibir un correo con instrucciones sobre cómo confirmar tu cuenta en unos minutos.
8
- send_paranoid_instructions: Si tu correo existe en nuestra base de datos, en unos minutos recibirás un correo con instrucciones sobre cómo confirmar tu cuenta.
9
- failure:
10
- already_authenticated: Ya has iniciado sesión.
11
- inactive: Tu cuenta aún no ha sido activada.
12
- invalid: Email o contraseña no válidos.
13
- last_attempt: Tienes un intento más antes de que tu cuenta sea bloqueada.
14
- locked: Tu cuenta está bloqueada.
15
- not_found_in_database: Email o contraseña no válidos.
16
- timeout: Tu sesión expiró. Por favor, inicia sesión nuevamente para continuar.
17
- unauthenticated: Tienes que iniciar sesión o registrarte para poder continuar.
18
- unconfirmed: Tienes que confirmar tu cuenta para poder continuar.
19
- mailer:
20
- confirmation_instructions:
21
- action: Confirmar mi cuenta
22
- greeting: "¡Bienvenido %{recipient}!"
23
- instruction: 'Usted puede confirmar el correo electrónico de su cuenta a través de este enlace:'
24
- subject: Instrucciones de confirmación
25
- reset_password_instructions:
26
- action: Cambiar mi contraseña
27
- greeting: "¡Hola %{recipient}!"
28
- instruction: Alguien ha solicitado un enlace para cambiar su contraseña, lo que se puede realizar a través del siguiente enlace.
29
- instruction_2: Si usted no lo ha solicitado, por favor ignore este correo electrónico.
30
- instruction_3: Su contraseña no será cambiada hasta que usted acceda el enlace y cree uno nuevo.
31
- subject: Instrucciones de recuperación de contraseña
32
- unlock_instructions:
33
- action: Desbloquear mi cuenta
34
- greeting: "¡Hola %{recipient}!"
35
- instruction: 'Haga click en el siguiente enlace para desbloquear su cuenta:'
36
- message: Su cuenta ha sido bloqueada debido a una cantidad excesiva de intentos infructuosos para ingresar.
37
- subject: Instrucciones para desbloquear
38
- omniauth_callbacks:
39
- failure: No has sido autorizado en la cuenta %{kind} porque "%{reason}".
40
- success: Has sido autorizado satisfactoriamente en la cuenta %{kind}.
41
- passwords:
42
- edit:
43
- change_my_password: Cambiar mi contraseña
44
- change_your_password: Cambie su contraseña
45
- confirm_new_password: Confirme la nueva contraseña
46
- new_password: Nueva contraseña
47
- new:
48
- forgot_your_password: "¿Ha olvidado su contraseña?"
49
- send_me_reset_password_instructions: Envíeme las instrucciones para resetear mi contraseña
50
- no_token: No puedes acceder a esta página si no es a través de un enlace para resetear tu contraseña. Si has llegado hasta aquí desde el email para resetear tu contraseña, por favor asegúrate de que la URL introducida está completa.
51
- send_instructions: Recibirás un correo con instrucciones sobre cómo resetear tu contraseña en unos pocos minutos.
52
- send_paranoid_instructions: Si tu correo existe en nuestra base de datos, recibirás un correo con instrucciones sobre cómo resetear tu contraseña en tu bandeja de entrada.
53
- updated: Se ha cambiado tu contraseña. Ya iniciaste sesión.
54
- updated_not_active: Tu contraseña fue cambiada.
55
- registrations:
56
- destroyed: Fue grato tenerte con nosotros. Tu cuenta fue cancelada.
57
- edit:
58
- are_you_sure: "¿Está usted seguro?"
59
- cancel_my_account: Anular mi cuenta
60
- currently_waiting_confirmation_for_email: 'Actualmente esperando la confirmacion de: %{email} '
61
- leave_blank_if_you_don_t_want_to_change_it: dejar en blanco si no desea cambiarlo
62
- title: Editar %{resource}
63
- unhappy: Infeliz
64
- update: Actualizar
65
- we_need_your_current_password_to_confirm_your_changes: necesitamos su contraseña actual para confirmar los cambios
66
- new:
67
- sign_up: Registrarse
68
- signed_up: Bienvenido. Tu cuenta fue creada.
69
- signed_up_but_inactive: Tu cuenta ha sido creada correctamente. Sin embargo, no hemos podido iniciar la sesión porque tu cuenta aún no está activada.
70
- signed_up_but_locked: Tu cuenta ha sido creada correctamente. Sin embargo, no hemos podido iniciar la sesión porque que tu cuenta está bloqueada.
71
- signed_up_but_unconfirmed: Se ha enviado un mensaje con un enlace de confirmación a tu correo electrónico. Abre el enlace para activar tu cuenta.
72
- update_needs_confirmation: Has actualizado tu cuenta correctamente, pero es necesario confirmar tu nuevo correo electrónico. Por favor, comprueba tu correo y sigue el enlace de confirmación para finalizar la comprobación del nuevo correo eletrónico.
73
- updated: Tu cuenta se ha actualizada.
74
- sessions:
75
- already_signed_out: Sesión finalizada.
76
- new:
77
- sign_in: Iniciar sesión
78
- signed_in: Sesión iniciada.
79
- signed_out: Sesión finalizada.
80
- shared:
81
- links:
82
- back: Atrás
83
- didn_t_receive_confirmation_instructions: "¿No ha recibido las instrucciones de confirmación?"
84
- didn_t_receive_unlock_instructions: "¿No ha recibido instrucciones para desbloquear?"
85
- forgot_your_password: "¿Ha olvidado su contraseña?"
86
- sign_in: Iniciar sesión
87
- sign_in_with_provider: Iniciar sesión con %{provider}
88
- sign_up: Registrarse
89
- unlocks:
90
- new:
91
- resend_unlock_instructions: Reenviar instrucciones para desbloquear
92
- send_instructions: Vas a recibir instrucciones para desbloquear tu cuenta en unos pocos minutos.
93
- send_paranoid_instructions: Si tu cuenta existe, vas a recibir instrucciones para desbloquear tu cuenta en unos pocos minutos.
94
- unlocked: Tu cuenta ha sido desbloqueada. Ya puedes iniciar sesión.
95
- errors:
96
- messages:
97
- already_confirmed: ya ha sido confirmada, por favor intenta iniciar sesión
98
- confirmation_period_expired: necesita confirmarse dentro de %{period}, por favor solicita una nueva
99
- expired: ha expirado, por favor solicita una nueva
100
- not_found: no se ha encontrado
101
- not_locked: no estaba bloqueada
102
- not_saved:
103
- one: 'Ocurrió un error al tratar de guardar %{resource}:'
104
- other: 'Ocurrieron %{count} errores al tratar de guardar %{resource}:'
105
- configuration: "Configuración"
106
- current_locale: "Local atual"
107
- available_locales: "Locales disponibles"
108
- trash:
109
- time_to_live: "Duración de basura"
110
- key: "llave"
111
- value: "valor"
@@ -1,111 +0,0 @@
1
- fr:
2
- devise:
3
- confirmations:
4
- confirmed: Votre compte a été confirmé avec succès.
5
- new:
6
- resend_confirmation_instructions: Renvoyer les instructions de confirmation
7
- send_instructions: Vous allez recevoir sous quelques minutes un email comportant des instructions pour confirmer votre compte.
8
- send_paranoid_instructions: Si votre email existe sur notre base de données, vous recevrez sous quelques minutes un message avec des instructions pour confirmer votre compte.
9
- failure:
10
- already_authenticated: Vous êtes déjà connecté(e).
11
- inactive: Votre compte n’est pas encore activé.
12
- invalid: Email ou mot de passe incorrect.
13
- last_attempt: Il vous reste une chance avant que votre compte soit bloqué.
14
- locked: Votre compte est verrouillé.
15
- not_found_in_database: Email ou mot de passe incorrect.
16
- timeout: Votre session est périmée, veuillez vous reconnecter pour continuer.
17
- unauthenticated: Vous devez vous connecter ou vous enregistrer pour continuer.
18
- unconfirmed: Vous devez confirmer votre compte par email.
19
- mailer:
20
- confirmation_instructions:
21
- action: Confirmer mon email
22
- greeting: Bienvenue %{recipient}!
23
- instruction: 'Vous pouvez confirmer votre email grâce au lien ci-dessous:'
24
- subject: Instructions de confirmation
25
- reset_password_instructions:
26
- action: Changer mon mot de passe
27
- greeting: Bonjour %{recipient}!
28
- instruction: "Quelqu'un a demandé un lien pour changer votre mot de passe, le voici :"
29
- instruction_2: "Si vous n'avez pas émis cette demande, merci d'ignorer ce email."
30
- 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.
31
- subject: Instructions pour changer de mot de passe
32
- unlock_instructions:
33
- action: Débloquer mon compte
34
- greeting: Bonjour %{recipient}!
35
- instruction: 'Suivez ce lien pour débloquer votre compte:'
36
- message: Votre compte a été bloqué suite à un nombre d'essais de connexions manquées trop important
37
- subject: Instructions pour déverrouiller le compte
38
- omniauth_callbacks:
39
- failure: 'Nous ne pouvons pas vous authentifier depuis %{kind} pour la raison suivante : ''%{reason}''.'
40
- success: Autorisé avec succès par votre compte %{kind}.
41
- passwords:
42
- edit:
43
- change_my_password: Changer mon mot de passe
44
- change_your_password: Changer votre mot de passe
45
- confirm_new_password: Confirmez votre nouveau mot de passe
46
- new_password: Nouveau mot de passe
47
- new:
48
- forgot_your_password: Mot de passe oublié ?
49
- send_me_reset_password_instructions: Envoyez-moi des instructions pour réinitialiser mon mot de passe
50
- no_token: "Vous ne pouvez pas accéder à cette page si vous n’y accédez pas depuis un email de réinitialisation de mot de passe. Si vous venez en effet d’un tel email, vérifiez que vous avez copié l’adresse URL en entier."
51
- send_instructions: Vous allez recevoir sous quelques minutes un email vous indiquant comment réinitialiser votre mot de passe.
52
- send_paranoid_instructions: Si votre email existe dans notre base de données, vous recevrez un lien vous permettant de récupérer votre mot de passe.
53
- updated: Votre mot de passe a été modifié avec succès. Vous êtes maintenant connecté(e).
54
- updated_not_active: Votre mot de passe a été modifié avec succès.
55
- registrations:
56
- destroyed: Au revoir ! Votre compte a été supprimé avec succès. Nous espérons vous revoir bientôt.
57
- edit:
58
- are_you_sure: "Êtes-vous sûr ?"
59
- cancel_my_account: Supprimer mon compte
60
- currently_waiting_confirmation_for_email: 'Confirmation en attente pour: %{email}'
61
- leave_blank_if_you_don_t_want_to_change_it: laissez ce champ vide pour le laisser inchangé
62
- title: "Éditer %{resource}"
63
- unhappy: 'Pas content '
64
- update: Modifier
65
- we_need_your_current_password_to_confirm_your_changes: nous avons besoin de votre mot de passe actuel pour valider ces modifications
66
- new:
67
- sign_up: Inscription
68
- signed_up: Bienvenue ! Vous vous êtes enregistré(e) avec succès.
69
- signed_up_but_inactive: "Vous vous êtes enregistré(e) avec succès. Cependant, nous n’avons pas pu vous connecter car votre compte n’a pas encore été activé."
70
- signed_up_but_locked: "Vous vous êtes enregistré(e) avec succès. Cependant, nous n’avons pas pu vous connecter car votre compte est verrouillé."
71
- signed_up_but_unconfirmed: "Un message avec un lien de confirmation vous a été envoyé par mail. Veuillez suivre ce lien pour activer votre compte."
72
- update_needs_confirmation: "Vous avez modifié votre compte avec succès, mais nous devons vérifier votre nouvelle adresse de email. Veuillez consulter vos emails et cliquer sur le lien de confirmation pour confirmer votre nouvelle adresse."
73
- updated: Votre compte a été modifié avec succès.
74
- sessions:
75
- already_signed_out: Déconnecté(e).
76
- new:
77
- sign_in: Connexion
78
- signed_in: Connecté(e) avec succès.
79
- signed_out: Déconnecté(e) avec succès.
80
- shared:
81
- links:
82
- back: Retour
83
- didn_t_receive_confirmation_instructions: Vous n'avez pas reçu le email de confirmation ?
84
- didn_t_receive_unlock_instructions: Vous n'avez pas reçu le email de déblocage ?
85
- forgot_your_password: Mot de passe oublié ?
86
- sign_in: Connexion
87
- sign_in_with_provider: Connexion avec %{provider}
88
- sign_up: Inscription
89
- unlocks:
90
- new:
91
- resend_unlock_instructions: Renvoyer les instructions de déblocage
92
- send_instructions: Vous allez recevoir sous quelques minutes un email comportant des instructions pour déverrouiller votre compte.
93
- send_paranoid_instructions: Si votre email existe sur notre base de données, vous recevrez sous quelques minutes un message avec des instructions pour déverrouiller votre compte.
94
- unlocked: Votre compte a été déverrouillé avec succès. Veuillez vous connecter.
95
- errors:
96
- messages:
97
- already_confirmed: a déjà été confirmé(e)
98
- confirmation_period_expired: doit être confirmé(e) en %{period}, veuillez en demander un(e) autre
99
- expired: est périmé, veuillez en demander un autre
100
- not_found: n’a pas été trouvé(e)
101
- not_locked: n’était pas verrouillé(e)
102
- not_saved:
103
- one: 'une erreur a empêché ce (cet ou cette) %{resource} d’être enregistré(e) :'
104
- other: "%{count} erreurs ont empêché ce (cet ou cette) %{resource} d’être enregistré(e) :"
105
- configuration: "Reglages"
106
- current_locale: "Local"
107
- available_locales: "Locales disponibles"
108
- trash:
109
- time_to_live: "Duration de poubelle"
110
- key: "clé"
111
- value: "valeur"
@@ -1,111 +0,0 @@
1
- pt:
2
- devise:
3
- confirmations:
4
- confirmed: A sua conta foi confirmada com sucesso.
5
- new:
6
- resend_confirmation_instructions: Reenviar instruções de confirmação
7
- send_instructions: Dentro de alguns minutos irá receber um email com instruções para confirmar a sua conta.
8
- send_paranoid_instructions: Se o seu email existir na nossa base de dados, irá receber dentro de alguns minutos um email com instruções para confirmar a sua conta.
9
- failure:
10
- already_authenticated: Já se encontra autenticado.
11
- inactive: A sua conta ainda não foi activada.
12
- invalid: O endereço de email ou a palavra-passe são inválidos.
13
- last_attempt: Tem mais uma tentativa antes da sua conta ser bloqueada.
14
- locked: A sua conta está bloqueada.
15
- not_found_in_database: O endereço de email ou a palavra-passe são inválidos.
16
- timeout: A sua sessão expirou, por favor autentique-se novamente para continuar.
17
- unauthenticated: Antes de continuar tem de se autenticar ou efectuar um registo.
18
- unconfirmed: Tem de confirmar a sua conta antes de continuar.
19
- mailer:
20
- confirmation_instructions:
21
- action: Confirmar a minha conta
22
- greeting: Bem-vindo %{recipient}!
23
- instruction: 'Pode confirmar a sua conta através do link:'
24
- subject: Instruções de confirmação
25
- reset_password_instructions:
26
- action: Repor a minha senha
27
- greeting: Olá %{recipient}!
28
- instruction: Foi efectuado um pedido para repor a sua palavra-passe. Para o fazer click no link abaixo.
29
- instruction_2: Se não fez este pedido, por favor ignore este e-mail.
30
- instruction_3: A sua palavra-passe só será alterada quando aceder ao link abaixo para a alterar.
31
- subject: Instruções de recuperação de palavra-passe
32
- unlock_instructions:
33
- action: Desbloquear a minha conta
34
- greeting: Olá %{recipient}!
35
- instruction: 'Clique no seguinte link para desbloquear a sua conta:'
36
- message: A sua conta foi bloqueada devido a um número excessivo de tentativas de acesso inválidas.
37
- subject: Instruções de desbloqueio
38
- omniauth_callbacks:
39
- failure: Não foi possível autenticar a sua conta por %{kind} porque "%{reason}".
40
- success: A sua conta foi autenticada por %{kind} com sucesso.
41
- passwords:
42
- edit:
43
- change_my_password:
44
- change_your_password:
45
- confirm_new_password:
46
- new_password:
47
- new:
48
- forgot_your_password: Esqueceu a sua senha?
49
- send_me_reset_password_instructions: Enviar-me instruções para repor a senha
50
- no_token: Não pode aceder a esta página sem vir do email de redefinição da senha. Se vem dum email para redefinir a senha, por favor certifique-se que usou o URL completo que foi enviado.
51
- send_instructions: Dentro de alguns minutos irá receber um email com instruções de reinicialização da palavra-passe.
52
- send_paranoid_instructions: Se o seu e-mail existir na nossa base de dados, irá receber dentro de alguns minutos um e-mail com instruções para recuperar a sua senha.
53
- updated: A sua palavra-passe foi alterada com sucesso. Agora está autenticado.
54
- updated_not_active: A sua password foi alterada com sucesso.
55
- registrations:
56
- destroyed: A sua conta foi cancelada com sucesso.
57
- edit:
58
- are_you_sure: Tem a certeza?
59
- cancel_my_account: Cancelar a minha conta
60
- currently_waiting_confirmation_for_email:
61
- leave_blank_if_you_don_t_want_to_change_it: deixe em branco caso não queira alterar
62
- title: Editar %{resource}
63
- unhappy:
64
- update:
65
- we_need_your_current_password_to_confirm_your_changes: precisamos da sua senha actual para confirmar as alterações
66
- new:
67
- sign_up: Criar Conta
68
- signed_up: Bemvindo! A autenticação foi efectuada com sucesso.
69
- signed_up_but_inactive: Registou-se com sucesso. No entanto, não podemos iniciar a sua sessão porque ainda não confirmou a sua conta.
70
- signed_up_but_locked: Registou-se com sucesso. No entanto, não podemos iniciar a sua sessão porque a sua conta encontra-se bloqueada.
71
- signed_up_but_unconfirmed: Foi enviado um email com um link para confirmar o seu email. Por favor abra o link para activar a sua conta.
72
- update_needs_confirmation: A sua conta foi actualizada com sucesso, mas precisamos de confirmar o seu email. Por favor veja o seu email e clique no link para finalizar a confirmação do seu email.
73
- updated: A sua conta foi actualizada com sucesso.
74
- sessions:
75
- already_signed_out: Sessão terminada com sucesso.
76
- new:
77
- sign_in: Entrar
78
- signed_in: Autenticação efectuada com sucesso.
79
- signed_out: Saiu da sessão com sucesso.
80
- shared:
81
- links:
82
- back:
83
- didn_t_receive_confirmation_instructions: Não recebeu instruções de confirmação?
84
- didn_t_receive_unlock_instructions: Não recebeu instruções de desbloqueio?
85
- forgot_your_password: Equeceu a palavra-passe?
86
- sign_in: Login
87
- sign_in_with_provider: Entrar com %{provider}
88
- sign_up: Criar conta
89
- unlocks:
90
- new:
91
- resend_unlock_instructions: Renviar instruções de desbloqueio
92
- send_instructions: Dentro de alguns minutos irá receber um email com as instruções para desbloquear a sua conta.
93
- send_paranoid_instructions: Se a sua conta existir, irá receber dentro de alguns minutos um email com instruções para a desbloquear.
94
- unlocked: A sua conta foi desbloqueada com sucesso. Por favor autentique-se para continuar.
95
- errors:
96
- messages:
97
- already_confirmed: já foi confirmado, por favor tente efectuar a autenticação
98
- confirmation_period_expired: necessitava de confirmação até %{period}, por favor faça um novo pedido
99
- expired: expirou, por favor solicite um novo
100
- not_found: não foi encontrado
101
- not_locked: não foi bloqueado
102
- not_saved:
103
- one: '1 erro impediu %{resource} de ser gravado:'
104
- other: "%{count} erros impediram %{resource} de ser gravado:"
105
- configuration: "Configuração"
106
- current_locale: "Locação atual"
107
- available_locales: "Locações disponíveis"
108
- trash:
109
- time_to_live: "Duração de lixeira"
110
- key: "chave"
111
- value: "valor"