1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 08:46:41 +01:00

Translate translations/new

This commit is contained in:
Philipp Fischbeck 2015-01-02 14:59:53 +01:00
parent 1f4f0f334a
commit 80c35c8cf3
3 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<%= form_for([@problem, @translation]) do |f| %>
<% if @translation.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@translation.errors.count, "error") %> prohibited this problem from being saved:</h2>
<h2><%= t 'errors.template.header', model: Translation.model_name.human, count: @translation.errors.count %></h2>
<ul>
<% @translation.errors.full_messages.each do |message| %>

View File

@ -1,5 +1,5 @@
<h1>New translation for problem <%= @problem.id %></h1>
<h1><%= t '.new_translation', id: @problem.id %></h1>
<%= render 'form' %>
<%= link_to 'Back', translations_path %>
<%= link_to t('.back'), translations_path %>

View File

@ -0,0 +1,7 @@
# ruby encoding: utf-8
de:
translations:
new:
back: Zurück
new_translation: Neue Übersetzung für Problem %{id}