diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index 3b65891..2937035 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -55,7 +55,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: _("Successfully changed the permissions for #{@role.user.email}. They have been notified via email.")} else render json: {code: 0, msg: flash[:alert]} end diff --git a/config/locale/app.pot b/config/locale/app.pot index 95a4c80..086a81b 100644 --- a/config/locale/app.pot +++ b/config/locale/app.pot @@ -8,7 +8,7 @@ "Project-Id-Version: app 1.0.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-03-12 16:41+0000\n" -"PO-Revision-Date: 2018-06-14 10:58:56-0700\n" +"PO-Revision-Date: 2018-06-20 16:23:24-0700\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -1499,8 +1499,8 @@ msgid "Principal Investigator / Researcher" msgstr "" -msgid "Principal investigator" -msgstr "" +#msgid "Principal investigator" +#msgstr "" msgid "Privacy statement" msgstr "" @@ -1706,9 +1706,13 @@ msgid "See the full list" msgstr "" -msgid "See the full list of participating organisations" +#, fuzzy +msgid "See the full list of participating institutions" msgstr "" +#msgid "See the full list of participating organisations" +#msgstr "" + msgid "See the full list of partner institutions." msgstr "" @@ -1829,6 +1833,10 @@ msgid "Successfully %{action} your %{object}." msgstr "" +#, fuzzy +msgid "Successfully changed the permissions for #{@role.user.email}. They have been notified via email." +msgstr "" + msgid "Successfully deleted your theme" msgstr "" diff --git a/config/locale/de/app.po b/config/locale/de/app.po index 1994c48..641467e 100644 --- a/config/locale/de/app.po +++ b/config/locale/de/app.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: app 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2018-06-14 10:58:56-0700\n" +"PO-Revision-Date: 2018-06-20 16:23:24-0700\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -1765,8 +1765,8 @@ msgid "Principal Investigator / Researcher" msgstr "Principal Investigator / Forscher" -msgid "Principal investigator" -msgstr "" +#msgid "Principal investigator" +#msgstr "" #, fuzzy msgid "Privacy statement" @@ -2010,8 +2010,11 @@ msgstr "" #, fuzzy -msgid "See the full list of participating organisations" -msgstr "Organisation" +msgid "See the full list of participating institutions" +msgstr "" + +#msgid "See the full list of participating organisations" +#msgstr "Organisation" msgid "See the full list of partner institutions." msgstr "" @@ -2155,6 +2158,10 @@ msgstr "" #, fuzzy +msgid "Successfully changed the permissions for #{@role.user.email}. They have been notified via email." +msgstr "" + +#, fuzzy msgid "Successfully deleted your theme" msgstr "Löschen" diff --git a/config/locale/en_GB/app.po b/config/locale/en_GB/app.po index 95a3c4b..d95b133 100644 --- a/config/locale/en_GB/app.po +++ b/config/locale/en_GB/app.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: app 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2018-06-14 10:58:56-0700\n" +"PO-Revision-Date: 2018-06-20 16:23:24-0700\n" "Last-Translator: Brian Riley brian.riley@ucop.edu\n" "Language-Team: LANGUAGE \n" "Language: en_GB\n" @@ -1498,8 +1498,8 @@ msgid "Principal Investigator / Researcher" msgstr "" -msgid "Principal investigator" -msgstr "" +#msgid "Principal investigator" +#msgstr "" msgid "Privacy statement" msgstr "" @@ -1705,9 +1705,13 @@ msgid "See the full list" msgstr "" -msgid "See the full list of participating organisations" +#, fuzzy +msgid "See the full list of participating institutions" msgstr "" +#msgid "See the full list of participating organisations" +#msgstr "" + msgid "See the full list of partner institutions." msgstr "" @@ -1828,6 +1832,10 @@ msgid "Successfully %{action} your %{object}." msgstr "" +#, fuzzy +msgid "Successfully changed the permissions for #{@role.user.email}. They have been notified via email." +msgstr "" + msgid "Successfully deleted your theme" msgstr "" diff --git a/config/locale/en_US/app.po b/config/locale/en_US/app.po index c45a8ec..2b66ed7 100644 --- a/config/locale/en_US/app.po +++ b/config/locale/en_US/app.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: app 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2018-06-14 10:58:56-0700\n" +"PO-Revision-Date: 2018-06-20 16:23:24-0700\n" "Last-Translator: Brian Riley brian.riley@ucop.edu\n" "Language-Team: LANGUAGE \n" "Language: en_US\n" @@ -1499,8 +1499,8 @@ msgid "Principal Investigator / Researcher" msgstr "" -msgid "Principal investigator" -msgstr "" +#msgid "Principal investigator" +#msgstr "" msgid "Privacy statement" msgstr "" @@ -1706,9 +1706,13 @@ msgid "See the full list" msgstr "" -msgid "See the full list of participating organisations" +#, fuzzy +msgid "See the full list of participating institutions" msgstr "" +#msgid "See the full list of participating organisations" +#msgstr "" + msgid "See the full list of partner institutions." msgstr "" @@ -1829,6 +1833,10 @@ msgid "Successfully %{action} your %{object}." msgstr "" +#, fuzzy +msgid "Successfully changed the permissions for #{@role.user.email}. They have been notified via email." +msgstr "" + msgid "Successfully deleted your theme" msgstr "" diff --git a/config/locale/es/app.po b/config/locale/es/app.po index 81a90ea..a7db178 100644 --- a/config/locale/es/app.po +++ b/config/locale/es/app.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: app 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2018-06-14 10:58:56-0700\n" +"PO-Revision-Date: 2018-06-20 16:23:24-0700\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -1759,8 +1759,8 @@ msgid "Principal Investigator / Researcher" msgstr "Principal Investigador / Científico" -msgid "Principal investigator" -msgstr "" +#msgid "Principal investigator" +#msgstr "" #, fuzzy msgid "Privacy statement" @@ -2004,8 +2004,11 @@ msgstr "" #, fuzzy -msgid "See the full list of participating organisations" -msgstr "Organización" +msgid "See the full list of participating institutions" +msgstr "" + +#msgid "See the full list of participating organisations" +#msgstr "Organización" msgid "See the full list of partner institutions." msgstr "" @@ -2149,6 +2152,10 @@ msgstr "" #, fuzzy +msgid "Successfully changed the permissions for #{@role.user.email}. They have been notified via email." +msgstr "" + +#, fuzzy msgid "Successfully deleted your theme" msgstr "Borrar" diff --git a/config/locale/fr_FR/app.po b/config/locale/fr_FR/app.po index 121318a..65f074f 100644 --- a/config/locale/fr_FR/app.po +++ b/config/locale/fr_FR/app.po @@ -3,7 +3,7 @@ "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-14 15:10+0100\n" -"PO-Revision-Date: 2018-06-14 10:58:56-0700\n" +"PO-Revision-Date: 2018-06-20 16:23:24-0700\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: fr_FR\n" @@ -1496,8 +1496,8 @@ msgid "Principal Investigator / Researcher" msgstr "Chercheur principal / Chercheur" -msgid "Principal investigator" -msgstr "Chercheur principal" +#msgid "Principal investigator" +#msgstr "Chercheur principal" msgid "Privacy statement" msgstr "Déclaration de confidentialité" @@ -1703,8 +1703,12 @@ msgid "See the full list" msgstr "Voir la liste complète" -msgid "See the full list of participating organisations" -msgstr "Voir la liste complète des organismes participants" +#, fuzzy +msgid "See the full list of participating institutions" +msgstr "" + +#msgid "See the full list of participating organisations" +#msgstr "Voir la liste complète des organismes participants" msgid "See the full list of partner institutions." msgstr "Voir la liste des institutions partenaires." @@ -1826,6 +1830,10 @@ msgid "Successfully %{action} your %{object}." msgstr "%{object} %{action} avec succès." +#, fuzzy +msgid "Successfully changed the permissions for #{@role.user.email}. They have been notified via email." +msgstr "" + msgid "Successfully deleted your theme" msgstr "Votre thème a bien été supprimé" diff --git a/config/locale/pt_BR/app.po b/config/locale/pt_BR/app.po index 93bba52..7c07655 100644 --- a/config/locale/pt_BR/app.po +++ b/config/locale/pt_BR/app.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: app 1.0.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2018-06-14 10:58:56-0700\n" +"PO-Revision-Date: 2018-06-20 16:23:24-0700\n" "Last-Translator: Benilton de Sá Carvalho benilton@unicamp.br\n" "Language-Team: Portugues do Brasil\n" "Language: pt_BR\n" @@ -1500,8 +1500,8 @@ msgid "Principal Investigator / Researcher" msgstr "Investigador / Pesquisador Principal" -msgid "Principal investigator" -msgstr "Investigador principal" +#msgid "Principal investigator" +#msgstr "Investigador principal" msgid "Privacy statement" msgstr "Política de privacidade" @@ -1707,8 +1707,12 @@ msgid "See the full list" msgstr "Veja a lista completa" -msgid "See the full list of participating organisations" -msgstr "Veja a lista completa de organizações participantes" +#, fuzzy +msgid "See the full list of participating institutions" +msgstr "" + +#msgid "See the full list of participating organisations" +#msgstr "Veja a lista completa de organizações participantes" msgid "See the full list of partner institutions." msgstr "Veja a lista completa de instituições parceiras" @@ -1830,6 +1834,10 @@ msgid "Successfully %{action} your %{object}." msgstr "Sucesso ao %{action} seu %{object}." +#, fuzzy +msgid "Successfully changed the permissions for #{@role.user.email}. They have been notified via email." +msgstr "" + msgid "Successfully deleted your theme" msgstr "Seu tema foi apagado com sucesso" diff --git a/config/locales/bootstrap/fr_FR.bootstrap.yml b/config/locales/bootstrap/fr_FR.bootstrap.yml new file mode 100644 index 0000000..13928b1 --- /dev/null +++ b/config/locales/bootstrap/fr_FR.bootstrap.yml @@ -0,0 +1,17 @@ + +fr_FR: + helpers: + actions: "Actions" + links: + back: "Retour" + cancel: "Annuler" + confirm: "Êtes-vous sûr?" + destroy: "Supprimer" + new: "Nouveau" + edit: "Modifier" + titles: + edit: "Modifier" + save: "Enregistrer" + new: "Nouveau" + delete: "Supprimer" + diff --git a/config/locales/bootstrap/pt_BR.bootstrap.yml b/config/locales/bootstrap/pt_BR.bootstrap.yml index 4bc4ab2..8c72113 100644 --- a/config/locales/bootstrap/pt_BR.bootstrap.yml +++ b/config/locales/bootstrap/pt_BR.bootstrap.yml @@ -1,7 +1,7 @@ # Sample localization file for English. Add more files in this directory for other locales. # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. -en_GB: +pt_BR: helpers: actions: "Ações" links: diff --git a/config/locales/contact_us/contact_us.fr_FR.yml b/config/locales/contact_us/contact_us.fr_FR.yml new file mode 100644 index 0000000..d2f5fe8 --- /dev/null +++ b/config/locales/contact_us/contact_us.fr_FR.yml @@ -0,0 +1,25 @@ +# Sample localization file for English. Add more files in this directory for other locales. +# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. + +fr_FR: + contact_us: + contact_mailer: + contact_email: + sent_by_contact_form: "Envoyé depuis le fomulaire de contact par %{email}" + sent_by_name: "Envoyé par %{name} depuis %{email}" + subject: "Message 'Contactez nous' de %{email}" + contacts: + new: &new + contact_us: "Contactez Nous" + email: "Email" + message: "Message" + name: "Nom" + subject: "Sujet" + submit: "Envoyer" + new_formtastic: + <<: *new + new_simple_form: + <<: *new + notices: + error: "Merci de saisir les deux champs." + success: "Votre message a bien été envoyé." diff --git a/config/locales/contact_us/contact_us.pt_BR.yml b/config/locales/contact_us/contact_us.pt_BR.yml new file mode 100644 index 0000000..9a50162 --- /dev/null +++ b/config/locales/contact_us/contact_us.pt_BR.yml @@ -0,0 +1,25 @@ +# Sample localization file for English. Add more files in this directory for other locales. +# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. + +pt_BR: + contact_us: + contact_mailer: + contact_email: + sent_by_contact_form: "Enviado pelo formulário de contato. %{email}" + sent_by_name: "Enviado por %{name} de %{email}" + subject: "Contate-nos: nova mensagem de %{email}" + contacts: + new: &new + contact_us: "Contate-nos" + email: "Email" + message: "Mensagem" + name: "Nome" + subject: "Assunto" + submit: "Enviar" + new_formtastic: + <<: *new + new_simple_form: + <<: *new + notices: + error: "Você tem de preencher ambos os campos." + success: "Email de contato foi enviado com sucesso." diff --git a/config/locales/devise/devise.fr_FR.yml b/config/locales/devise/devise.fr_FR.yml new file mode 100644 index 0000000..9a6d02c --- /dev/null +++ b/config/locales/devise/devise.fr_FR.yml @@ -0,0 +1,82 @@ +# Additional translations at https://github.com/plataformatec/devise/wiki/I18n + +fr_FR: + devise: + confirmations: + confirmed: "Votre compte a bien été validé. Veuillez vous connecter." + send_instructions: "Vous recevrez dans quelques minutes un courriel contenant les directives pour activer votre compte." + resend_instructions: "Envoyer de nouveau les directives" + send_paranoid_instructions: "Si votre adresse électronique existe dans notre base de données, vous recevrez dans quelques minutes un courriel contenant les directives pour valider votre compte." + failure: + already_authenticated: "Vous êtes déjà connecté(e)." + inactive: "Votre compte n'est plus actif. Merci de nous contacter pour réactiver votre compte." + invalid: "Courriel ou mot de passe incorrect." + invalid_token: "Jeton d'authentification incorrect." + locked: "Votre compte est verrouillé." + not_found_in_database: "Courriel ou mot de passe incorrect." + timeout: "Votre session est expirée. Veuillez vous reconnecter pour continuer." + unauthenticated: "Vous devez vous connecter ou vous inscrire pour continuer." + unconfirmed: "Vous devez confirmer votre compte pour continuer." + mailer: + app_name: "Assistant PGD" + confirmation_instructions: + subject: "Valider votre compte Assistant PGD" + link: "Cliquer ici pour activer votre compte" + email: "

Bienvenue dans l'Assistant PGD, %{email}

+

Merci de vous être inscrit(e) à %{app_link}. Veuillez confirmer votre adresse électronique :

+

%{confirmation_link} (ou copier %{confirmation_direct_url} dans votre navigateur).

" + reset_password_instructions: + subject: "Directives pour réinitialiser le mot de passe" + link: "Réinitialiser mon mot de passe" + email: "

Bonjour %{resource_email}!

+

Un changement de mot de passe a été demandé pour %{app_link}. Vous pouvez le faire en cliquant sur le lien ci-dessous.

+

%{reset_password_link}

+

Si vous n'avez pas demandé ce changement, veuillez ignorer ce message.

+

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.

" + unlock_instructions: + subject: "Directives de déverrouillage" + link: "Déverrouiller mon compte" + email: "

Bonjour %{resource_email}!

+

Votre compte %{app_link} a été verrouillé à la suite d'un trop grand nombre de tentatives d'authentification.

+

Cliquez sur le lien ci-dessous pour déverrouiller votre compte :

+

%{unlock_link}

" + omniauth_callbacks: + failure: "Nous n'avons pas pu vous authentifier à partir de %{kind} parce que '%{reason}'." + success: "Authentification réussie à partir du compte %{kind}." + passwords: + no_token: "Vous ne pouvez pas accéder à cette page sans y avoir été dirigé par un courriel de réinitialisation du mot de passe. Si vous avez été dirigé vers cette page à partir d’un courriel de réinitialisation, assurez-vous d'utiliser l'adresse URL complète fournie." + send_instructions: "Vous recevrez dans quelques minutes un courriel contenant les directives pour réinitialiser le mot de passe." + send_paranoid_instructions: "Si votre adresse électronique existe dans notre base de données, vous recevrez dans quelques minutes un lien de récupération du mot de passe par courriel." + updated: "Votre mot de passe a bien été modifié. Vous êtes maintenant connecté." + updated_not_active: "Votre mot de passe a bien été modifié." + registrations: + destroyed: "Votre compte a bien été supprimé. Nous espérons vous revoir bientôt." + signed_up: "Bienvenu(e)! Vous êtes bien inscrit(e)." + signed_up_but_inactive: "Vous êtes bien inscrit(e). Cependant, vous ne pouvez pas vous connecter, car votre compte n'est pas encore activé." + signed_up_but_locked: "Vous êtes bien inscrit(e). Cependant, vous ne pouvez pas vous connecter, car votre compte est verrouillé." + signed_up_but_unconfirmed: "Un message contenant un lien de confirmation a été envoyé à votre adresse électronique. Ouvrez ce lien pour activer votre compte. Si vous n’avez pas reçu le courriel de confirmation, vérifiez votre filtre antipourriel." + update_needs_confirmation: "Votre compte a bien été mis à jour, mais nous devons vérifier votre nouvelle adresse électronique. Vérifiez vos courriels et cliquez sur le lien de confirmation pour finaliser la validation de votre nouvelle adresse électronique." + updated: "Votre compte a bien été modifié." + sessions: + signed_in: "Connecté" + signed_out: "Déconnecté" + unlocks: + send_instructions: "Vous recevrez dans quelques minutes un courriel contenant les directives pour déverrouiller votre compte." + send_paranoid_instructions: "Si votre compte existe, vous recevrez dans quelques minutes un courriel contenant les directives pour le déverrouiller." + resend_unlock_instructions: "Envoyer de nouveau les directives de déverouillage." + unlocked: "Votre compte a bien été déverrouillé. Veuillez vous connecter pour continuer." + errors: + messages: + already_confirmed: "a déjà été validé, essayez de vous connecter." + confirmation_period_expired: "à confirmer dans les %{period}. Veuillez faire une nouvelle demande." + expired: "a expiré, veuillez faire une nouvelle demande." + not_found: "n'a pas été trouvé" + not_locked: "n'était pas verrouillé" + not_saved: + one: "Une erreur a empêché d’enregistrer ce(tte) %{resource} :" + other: "%{count} erreurs ont empêché d’enregistrer ce(tte) %{resource} :" + blank: "Ce champ ne peut être vide" + activerecord: + attributes: + user: + email: "Courriel: " diff --git a/config/locales/devise/devise.pt_BR.yml b/config/locales/devise/devise.pt_BR.yml index 7469cf3..653a411 100644 --- a/config/locales/devise/devise.pt_BR.yml +++ b/config/locales/devise/devise.pt_BR.yml @@ -1,6 +1,6 @@ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n -en_GB: +pt_BR: devise: confirmations: confirmed: "Sua conta foi confirmada com sucesso. Por favor, inscreva-se." diff --git a/config/locales/devise/devise_invitable.fr_FR.yml b/config/locales/devise/devise_invitable.fr_FR.yml new file mode 100644 index 0000000..051cba3 --- /dev/null +++ b/config/locales/devise/devise_invitable.fr_FR.yml @@ -0,0 +1,23 @@ +fr_FR: + devise: + invitations: + send_instructions: "Un courriel d'invitation a été envoyé à %{email}." + invitation_token_invalid: "Le jeton d'invitation fourni n'est pas valide!" + updated: "Votre mot de passe a été défini avec succès. Vous êtes maintenant connecté(e)." + no_invitations_remaining: "Aucune invitation restante" + invitation_removed: "Votre invitation a été supprimée." + new: + header: "Envoyer une invitation" + submit_button: "Envoyer une invitation" + edit: + header: "Définir votre mot de passe" + submit_button: "Définir mon mot de passe" + mailer: + invitation_instructions: + subject: "Directives de confirmation" + link: "Cliquez ici pour accepter cette invitation" + email: "

Bonjour %{resource_email}!

+

Vous avez été invité(e) par un(e) de vos collègues à contribuer à son plan de gestion de données (PGD) dans %{app_link}

+

%{invitation_link} (ou copier %{invitation_direct_url} dans votre navigateur).

+

Si vous ne voulez pas accepter l'invitation, veuillez ignorer ce message.
+ Votre compte ne sera pas créé tant que vous n'aurez pas accédé au lien ci-dessus et choisi un mot de passe.

"