From 58a556378f69dc4a2312c42bfe5549d1e6a514ae Mon Sep 17 00:00:00 2001 From: Meutel Date: Wed, 5 Aug 2015 19:21:30 +0200 Subject: [PATCH] translations --- app/views/books/_index.html.erb | 12 ++++----- app/views/layouts/_book_dl.html.erb | 2 +- app/views/layouts/_filter.html.erb | 6 ++--- app/views/layouts/_initials.html.erb | 5 ++-- app/views/layouts/_perpage.html.erb | 2 +- app/views/static_pages/about.html.erb | 4 +-- app/views/static_pages/home.html.erb | 6 ++--- config/application.rb | 2 +- config/locales/en.yml | 39 ++++++++++++--------------- config/locales/fr.yml | 22 ++++++++++++--- 10 files changed, 55 insertions(+), 45 deletions(-) diff --git a/app/views/books/_index.html.erb b/app/views/books/_index.html.erb index 2737350..2015e49 100644 --- a/app/views/books/_index.html.erb +++ b/app/views/books/_index.html.erb @@ -1,14 +1,14 @@ <% opts = { data: { url: url_for, remote: true, method: :get } } content_for :latest_filter do %>
- <%= label_tag "sort", "Sort by" %> + <%= label_tag "sort", t(:sort_by) %>
<% end %> @@ -17,9 +17,9 @@ content_for :latest_filter do %> <%= will_paginate class: "center" %> - - - + + + <% @books.each do |book| %> diff --git a/app/views/layouts/_book_dl.html.erb b/app/views/layouts/_book_dl.html.erb index a7793a9..d7cd95a 100644 --- a/app/views/layouts/_book_dl.html.erb +++ b/app/views/layouts/_book_dl.html.erb @@ -4,7 +4,7 @@
@@ -13,9 +13,9 @@ <%= form_tag({}, {method: :get, remote: true}) do %>
- <%= button_tag "Search", class: "btn btn-default" %> + <%= button_tag t(:search), class: "btn btn-default" %> - <%= search_field_tag(:term, @preference.term, placeholder: "Search for...", class: "form-control") %> + <%= search_field_tag(:term, @preference.term, placeholder: t(:search_ph), class: "form-control") %>
<% end %> <%= render'layouts/perpage' %> diff --git a/app/views/layouts/_initials.html.erb b/app/views/layouts/_initials.html.erb index 2772661..3e39316 100644 --- a/app/views/layouts/_initials.html.erb +++ b/app/views/layouts/_initials.html.erb @@ -1,9 +1,8 @@ <% initials = ['0'] + ('A'..'Z').to_a %>
-
NameAuthorsSerie<%= t :col_book_title %><%= t :col_book_authors %><%= t :col_book_serie %>