diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index bd73760..4ce210e 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -56,7 +56,7 @@ deliver_if(recipients: @role.user, key: 'users.added_as_coowner') do |r| UserMailer.permissions_change_notification(@role, current_user).deliver_now end - render json: {code: 1, msg: _("Successfully changed the permissions for #{@role.user.email}. They have been notified via email.")} + render json: {code: 1, msg: d_('dmpopidor', "Successfully changed the permissions for %{user_email}. They have been notified via email.") % { :user_email => @role.user.email }} else render json: {code: 0, msg: flash[:alert]} end diff --git a/config/locale/dmpopidor.pot b/config/locale/dmpopidor.pot index de450d0..2703d26 100644 --- a/config/locale/dmpopidor.pot +++ b/config/locale/dmpopidor.pot @@ -221,3 +221,6 @@ msgid "You can either choose a template provided by your organisation, another organisation or a funder template." msgstr "" + +msgid "Successfully changed the permissions for %{user_email}. They have been notified via email." +msgstr "" \ No newline at end of file diff --git a/config/locale/en_GB/dmpopidor.po b/config/locale/en_GB/dmpopidor.po index 0717b4e..686591d 100644 --- a/config/locale/en_GB/dmpopidor.po +++ b/config/locale/en_GB/dmpopidor.po @@ -218,4 +218,7 @@ msgstr "" msgid "You can either choose a template provided by your organisation, another organisation or a funder template." -msgstr "You can either choose a template provided by your organisation, another organisation or a funder template." \ No newline at end of file +msgstr "You can either choose a template provided by your organisation, another organisation or a funder template." + +msgid "Successfully changed the permissions for %{user_email}. They have been notified via email." +msgstr "Autorisations de %{user_email} modifiées avec succès. L'utilisateur a été informé par mail." \ No newline at end of file diff --git a/config/locale/fr_FR/app.po b/config/locale/fr_FR/app.po index 4f78a42..fd278e7 100644 --- a/config/locale/fr_FR/app.po +++ b/config/locale/fr_FR/app.po @@ -1151,7 +1151,7 @@ msgstr "Numéro de subvention" msgid "Grant number" -msgstr "Titre de la subvention" +msgstr "Numéro de subvention" msgid "Grant number: " msgstr "Numéro de subvention : " @@ -2252,7 +2252,7 @@ msgstr "Option(s) choisie(s)" msgid "Send" -msgstr "Envoyer" +msgstr "Sauvegarder" msgid "Set plan visibility" msgstr "Définir la visibilité du plan" @@ -2331,7 +2331,7 @@ msgstr "Sujet" msgid "Submit" -msgstr "Envoyer" +msgstr "Sauvegarder" msgid "Successfully %{action} %{username}'s account." msgstr "Compte de %{username} %{action} avec succès." @@ -2339,12 +2339,8 @@ msgid "Successfully %{action} your %{object}." msgstr "%{object} %{action} avec succès." -msgid "" -"Successfully changed the permissions for #{@role.user.email}. They have been " -"notified via email." -msgstr "" -"Autorisations de #{@role.user.email} modifiées avec succès. L'utilisateur a " -"été informé par mail." +msgid "Successfully changed the permissions for #{@role.user.email}. They have been notified via email." +msgstr "Autorisations de #{@role.user.email} modifiées avec succès. L'utilisateur a été informé par mail." msgid "Successfully deleted your theme" msgstr "Votre thème a bien été supprimé" diff --git a/config/locale/fr_FR/dmpopidor.po b/config/locale/fr_FR/dmpopidor.po index 83398c6..4945ad3 100644 --- a/config/locale/fr_FR/dmpopidor.po +++ b/config/locale/fr_FR/dmpopidor.po @@ -217,4 +217,7 @@ msgstr "Ce plan est basé sur le modèle %{template_name} (%{org_name})" msgid "You can either choose a template provided by your organisation, another organisation or a funder template." -msgstr "Vous pouvez choisir soit un modèle fourni par votre organisme soit par un autre organisme, ou un modèle financeur." \ No newline at end of file +msgstr "Vous pouvez choisir soit un modèle fourni par votre organisme soit par un autre organisme, ou un modèle financeur." + +msgid "Successfully changed the permissions for %{user_email}. They have been notified via email." +msgstr "Autorisations de %{user_email} modifiées avec succès. L'utilisateur a été informé par mail." \ No newline at end of file