Skip to content

Commit

Permalink
Merge pull request #2 from augustocbx/master
Browse files Browse the repository at this point in the history
Translation of the locale file to pt-BR and correction of a installation bug
  • Loading branch information
tomichj authored Oct 17, 2016
2 parents 2889550 + b2c53e1 commit d0f669d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
invitation
25 changes: 25 additions & 0 deletions config/locales/invitation.pt-BR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
pt-BR:
activerecord:
attributes:
invite:
email: "Email"
invitation:
flash:
invite_issued:
one: "Problema no convite"
other: "Problemas nos convites"
invite_error:
one: "Não foi possível enviar um convite para %{email}"
other: "Não foi possível enviar convites para %{email}"
invite_mailer:
existing_user:
subject: "Instruções do convite"
hello: "Olá %{email}"
someone_invited_you: "%{sender} convidou você para %{invitable} em %{url}. Agora você tem permissões para acessar com a url a seguir."
ignore: "Se as suas permissões não foram adicionadas ou se você sentir que este é um erro, por favor, entre em contato com %{sender}."
new_user:
subject: "Instruções do convite"
hello: "Olá %{email}"
someone_invited_you: "%{sender} convidou você para %{invitable} em %{url}. Agora você tem permissões para acessar com a url a seguir."
accept: "Aceitar o convite"
ignore: "Se você não deseja aceitar este convite, por favor, ignore este email. Sua conta não será criada até você acessar o link a seguir e criar a sua conta."
2 changes: 1 addition & 1 deletion lib/invitation/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Configuration
attr_accessor :routes

def initialize
@user_model = ::User
@user_model = ::User if defined?(::User)
@user_registration_url = ->(params) { Rails.application.routes.url_helpers.sign_up_url(params) }
@mailer_sender = 'reply@example.com'
@routes = true
Expand Down

0 comments on commit d0f669d

Please sign in to comment.