translations

This commit is contained in:
Meutel 2015-08-13 21:17:56 +02:00
parent 995b7a2039
commit 4010fdd183
7 changed files with 44 additions and 9 deletions

View File

@ -1,4 +1,4 @@
<h2><%= pluralize(@authors.count, "co-author") %></h2>
<h2><%= t(:author_coauthor, count: @authors.count) %></h2>
<ul>
<% @authors.each do |a| %>
<li><%= link_to a.name, a %></li>

View File

@ -3,8 +3,8 @@
<%= will_paginate class: "center" %>
<table class="table table-striped authors">
<tr>
<th>Name</th>
<th>Books</th>
<th><%= t :col_author_name %></th>
<th><%= t :col_author_books %></th>
</tr>
<% @authors.each do |author| %>
<tr>

View File

@ -1,4 +1,4 @@
<h2><%= pluralize(@books.count, "book") %></h2>
<h2><%= t(:author_book, count: @books.count) %></h2>
<ul>
<% @books.each do |b| %>
<li><%= link_to b.title, b %></li>

View File

@ -3,9 +3,9 @@
<%= will_paginate class: "center" %>
<table class="table table-striped series">
<tr>
<th>Name</th>
<th>Authors</th>
<th>Books</th>
<th><%= t :col_serie_name %></th>
<th><%= t :col_serie_authors %></th>
<th><%= t :col_serie_books %></th>
</tr>
<% @series.each do |serie| %>
<tr>

View File

@ -6,7 +6,7 @@
</div>
<h2>
<span class="glyphicon glyphicon-book"></span>
<%= "Book".pluralize(@serie.books.count) %>
<%= t(:serie_book, count: @serie.books.count) %>
</h2>
<ul>
<% @serie.books.each do |book| %>
@ -24,7 +24,7 @@ if authors
%>
<h2>
<span class="glyphicon glyphicon-user"></span>
<%= "Author".pluralize(authors.count) %>
<%= t(:serie_author, count: authors.count) %>
</h2>
<ul>
<% authors.each do |author| %>

View File

@ -13,6 +13,7 @@ en:
search: "Search"
search_ph: "Search for..."
per_page: "Items per page"
sort_by: "Sort by"
sort_by_date: "Date"
sort_by_name: "Name"
col_book_title: "Title"
@ -32,3 +33,20 @@ en:
book_pubdate: "Publishing date"
book_publisher: "Publisher"
no_cover: "No cover"
col_serie_name: "Name"
col_serie_authors: "Authors"
col_serie_books: "Books"
serie_book:
one: "Book"
other: "Books"
serie_author:
one: "Author"
other: "Authors"
col_author_name: "Name"
col_author_books: "Books"
author_book:
one: "Book"
other: "Books"
author_coauthor:
one: "Co-Author"
other: "Co-Authors"

View File

@ -33,3 +33,20 @@ fr:
book_pubdate: "Date de publication"
book_publisher: "Editeur"
no_cover: "Pas de couverture"
col_serie_name: "Nom"
col_serie_authors: "Auteurs"
col_serie_books: "Livres"
serie_book:
one: "Livre"
other: "Livres"
serie_author:
one: "Auteur"
other: "Auteurs"
col_author_name: "Nom"
col_author_books: "Livres"
author_book:
one: "Livre"
other: "Livres"
author_coauthor:
one: "Co-Auteur"
other: "Co-Auteurs"