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:
parent
1f4f0f334a
commit
80c35c8cf3
@ -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| %>
|
||||
|
||||
@ -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 %>
|
||||
|
||||
7
config/locales/views/translations/de.yml
Normal file
7
config/locales/views/translations/de.yml
Normal file
@ -0,0 +1,7 @@
|
||||
# ruby encoding: utf-8
|
||||
|
||||
de:
|
||||
translations:
|
||||
new:
|
||||
back: Zurück
|
||||
new_translation: Neue Übersetzung für Problem %{id}
|
||||
Loading…
Reference in New Issue
Block a user