diff --git a/app/views/accounts/confirm.html.erb b/app/views/accounts/confirm.html.erb
index 0219a2e887..7168230563 100644
--- a/app/views/accounts/confirm.html.erb
+++ b/app/views/accounts/confirm.html.erb
@@ -6,5 +6,5 @@
<%- content_for :account_links do %>
- <%= _("Proceed to %s", link_to(_("admin"), controller: 'admin/dashboard')) %>
+ <%= t(".proceed_to", link: link_to(t(".admin"), controller: 'admin/dashboard')) %>
<% end %>
diff --git a/app/views/accounts/login.html.erb b/app/views/accounts/login.html.erb
index f3ff451285..e59547d322 100644
--- a/app/views/accounts/login.html.erb
+++ b/app/views/accounts/login.html.erb
@@ -1,5 +1,5 @@
<%= form_tag action: "login" do %>
- <%= text_field(:user, :login, {class: 'input-block-level', placeholder: t(".login")})%>
+ <%= text_field(:user, :login, {class: 'input-block-level', placeholder: t(".login"), autofocus: 'autofocus'})%>
<%= password_field(:user, :password, {class: 'input-block-level', placeholder: t(".password")})%>
@@ -16,11 +16,11 @@
<% end %>
<%- content_for :account_links do %>
- <%= link_to(_("I've lost my password"), action: 'recover_password') %>
+ <%= link_to(t("accounts.lost_my_password"), action: 'recover_password') %>
<%- if this_blog.allow_signup? %>
- <%= link_to(_("Create an account"), action: 'signup') %>
+ <%= link_to(t("accounts.create_account"), action: 'signup') %>
<% end %>
- <%= link_to(_("← Back to %s", this_blog.blog_name).html_safe, this_blog.base_url) %>
+ <%= link_to(t("accounts.back_to", place: this_blog.blog_name).html_safe, this_blog.base_url) %>
<% end %>
diff --git a/app/views/accounts/recover_password.html.erb b/app/views/accounts/recover_password.html.erb
index 698452eb63..6586993736 100644
--- a/app/views/accounts/recover_password.html.erb
+++ b/app/views/accounts/recover_password.html.erb
@@ -4,11 +4,11 @@
<% end %>
<%- content_for :account_links do %>
- <%= link_to(_("Back to login"), action: 'login') %>
+ <%= link_to(t("accounts.back_to_login"), action: 'login') %>
<%- if this_blog.allow_signup? %>
- <%= link_to(_("Create an account"), action: 'signup') %>
+ <%= link_to(t("accounts.create_account"), action: 'signup') %>
<% end %>
- <%= link_to(_("← Back to %s", this_blog.blog_name).html_safe, this_blog.base_url) %>
+ <%= link_to(t("accounts.back_to", place: this_blog.blog_name).html_safe, this_blog.base_url) %>
<% end %>
diff --git a/app/views/accounts/signup.html.erb b/app/views/accounts/signup.html.erb
index 95c90097fe..2c25812d0b 100644
--- a/app/views/accounts/signup.html.erb
+++ b/app/views/accounts/signup.html.erb
@@ -5,9 +5,9 @@
<% end %>
<%- content_for :account_links do %>
- <%= link_to(_("I've lost my password"), action: 'recover_password') %>
+ <%= link_to(t("accounts.lost_my_password"), action: 'recover_password') %>
- <%= link_to(_("Back to login"), action: 'login') %>
+ <%= link_to(t("accounts.back_to_login"), action: 'login') %>
- <%= link_to(_("← Back to %s", this_blog.blog_name).html_safe, this_blog.base_url) %>
+ <%= link_to(t("accounts.back_to", place: this_blog.blog_name).html_safe, this_blog.base_url) %>
<% end %>
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index 41fabd181b..4a2a5399ec 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -5,8 +5,15 @@ fr:
explanations: "Afin d'économiser des ressources, Publify génère des fichiers statiques avec votre contenu. Ces fichiers sont supprimés lors d'une nouvelle publication. Vous pouvez cependant les effacer vous même."
accounts:
+ back_to: "← Revenir à %{place}"
+ back_to_login: "S'identifier"
+ create_account: "Créer un compte"
+ lost_my_password: "J'ai perdu mon mot de passe"
login:
login: "Identifiant"
password: "Mot de passe"
sign_in: "S'identifier"
remember_me: "Rester connecté"
+ confirm:
+ proceed_to: "Allez sur %{link}"
+ admin: "l'administration"
diff --git a/lang/fr_FR.rb b/lang/fr_FR.rb
index ccd608433c..4aeb854d93 100644
--- a/lang/fr_FR.rb
+++ b/lang/fr_FR.rb
@@ -96,10 +96,6 @@
# app/controllers/grouping_controller.rb
l.store "page", "page"
- # app/helpers/accounts_helper.rb
- l.store "Create an account", "Créer un compte"
- l.store "I've lost my password", "J'ai perdu mon mot de passe"
-
# app/helpers/admin/base_helper.rb
l.store "Cancel", "Annuler"
l.store "Store", "Stocker"
@@ -165,7 +161,6 @@
# app/views/accounts/recover_password.html.erb
l.store "Reset my password", "Me renvoyer un mot de passe"
l.store "Username or email", "Identifiant ou email"
- l.store "Back to login", "S'identifier"
# app/views/accounts/signup.html.erb
l.store "Username", "Identifiant"
@@ -721,8 +716,6 @@
l.store "Login: %s", "Identifiant : %s"
l.store "Password: %s", "Mot de passe : %s"
l.store "Don't lose the mail sent at %s or you won't be able to login anymore", "Ne perdez pas l'email que nous venons de vous envoyer à l'adresse %s ou vous ne pourrez plus vous connecter à l'application"
- l.store "Proceed to %s", "Allez sur %s"
- l.store "admin", "l'administration"
# app/views/shared/_search.html.erb
l.store "Live Search", "Recherche instantanée"
@@ -841,7 +834,6 @@
l.store "Article Types", "Modèles d'articles"
l.store "Aug", "août"
l.store "August", "août"
- l.store "Back to ", "Revenir à "
l.store "Back to overview", "Revenir à la liste"
l.store "Back to tags list", "Revenir à la liste des labels"
l.store "Blacklist Pattern could not be created.", "Cette entrée n'a pas pu être créée"