mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Translate translations/new
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<%= form_for([@problem, @translation]) do |f| %>
|
<%= form_for([@problem, @translation]) do |f| %>
|
||||||
<% if @translation.errors.any? %>
|
<% if @translation.errors.any? %>
|
||||||
<div id="error_explanation">
|
<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>
|
<ul>
|
||||||
<% @translation.errors.full_messages.each do |message| %>
|
<% @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' %>
|
<%= 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}
|
||||||
Reference in New Issue
Block a user