From 36bc50d83adcb3df0fece432efc2c2270d8eaeb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Mon, 3 Sep 2018 22:50:17 +0200 Subject: [PATCH] localize home page action buttons --- app/views/shared/_home_header.html.erb | 4 ++-- config/locales/en.yml | 3 +++ config/locales/fr.yml | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/shared/_home_header.html.erb b/app/views/shared/_home_header.html.erb index 2866613..25a670d 100644 --- a/app/views/shared/_home_header.html.erb +++ b/app/views/shared/_home_header.html.erb @@ -6,8 +6,8 @@

<%= t(".intro") %>

- <%= link_to "Learn More", root_path(@root, anchor: "description"), :class => "btn btn-primary" %> - <%= link_to "Sign Up", new_user_registration_path, :class => "btn btn-tertiary" %> + <%= link_to t(".actions.learn_more"), root_path(@root, anchor: "description"), :class => "btn btn-primary" %> + <%= link_to t(".actions.sign_up"), new_user_registration_path, :class => "btn btn-tertiary" %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 018d5ad..192c006 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -97,6 +97,9 @@ en: home_header: welcome: "Chexpire" intro: "Never forget to renew a domain name or SSL certificate." + actions: + learn_more: "Learn More" + sign_up: "Sign Up" beta_banner: beta_info: "Chexpire is in \"beta\" release: only few TLD (.com/.net/.org/.fr) are verified for domain name checks and TLS 1.2 is not supported for SSL checks." issue_link: "Please report issues." diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 7e4d329..65ac761 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -119,13 +119,16 @@ fr: new_domain_check: "Nouveau nom de domaine" new_ssl_check: "Nouveau certificat SSL" my_notifications: "Mes notifications" - sign_up: "Enregistrement" + sign_up: "Inscription" sign_in: "Connexion" sign_out: "Déconnexion" profile: "Profil" home_header: welcome: "Chexpire" intro: "vous n'oublierez plus jamais de renouveler un nom de domaine ou un certificat SSL." + actions: + learn_more: "En savoir plus" + sign_up: "S'inscrire" beta_banner: beta_info: "Chexpire est en version \"beta\" : seuls certains TLD (.com/.net/.org/.fr) sont vérifiés pour les noms de domaine et TLS 1.2 n'est pas supporté pour les vérifications SSL." issue_link: "Merci de nous reporter bugs et suggestions."