From 6dfdcffc69c224173a5125a4903b1633b15361d2 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Fri, 2 Jan 2015 11:52:20 +0100 Subject: [PATCH] Translate problems index --- app/views/problems/index.html.erb | 10 +++++----- config/locales/views/problems/de.yml | 7 +++++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 config/locales/views/problems/de.yml diff --git a/app/views/problems/index.html.erb b/app/views/problems/index.html.erb index a46d613..b35a1b1 100644 --- a/app/views/problems/index.html.erb +++ b/app/views/problems/index.html.erb @@ -1,11 +1,11 @@ -

Listing Problems

+

<%= Problem.model_name.human(count: 2) %>

<%= render 'problem_pagination' %> - - + + @@ -17,9 +17,9 @@ <% if problem.is_translated? %> <%= link_to problem.title, problem %> <% else %> - Dieses Problem wurde noch nicht übersetzt. + <%= t '.not_yet_translated' %> <%= link_to new_problem_translation_path(problem), class: 'btn btn-default btn-xs' do %> - <%= icon :pencil %> Übersetzung vorschlagen + <%= icon :pencil %> <%= t '.suggest_translation' %> <% end %> <% end %> diff --git a/config/locales/views/problems/de.yml b/config/locales/views/problems/de.yml new file mode 100644 index 0000000..5e975a0 --- /dev/null +++ b/config/locales/views/problems/de.yml @@ -0,0 +1,7 @@ +# ruby encoding: utf-8 + +de: + problems: + index: + not_yet_translated: 'Dieses Problem wurde noch nicht übersetzt.' + suggest_translation: 'Übersetzung vorschlagen' \ No newline at end of file
IDTitle<%= Problem.human_attribute_name(:id) %><%= Problem.human_attribute_name(:title) %>