From 565aa5375f5fe81b4539fd560c4df1a0cfaacdad Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Tue, 5 Feb 2019 14:14:13 +0100 Subject: [PATCH] Add warnings (copyright+login) to translation form --- app/views/translations/_form.html.erb | 6 ++++++ config/locales/views/translations/de.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/app/views/translations/_form.html.erb b/app/views/translations/_form.html.erb index 1e9228b..243bba0 100644 --- a/app/views/translations/_form.html.erb +++ b/app/views/translations/_form.html.erb @@ -13,5 +13,11 @@ <% end %> +
+ <%= t '.copyright_warning_html' %> + <% if not user_signed_in? %> + <%= t '.not_logged_in_warning' %> + <% end %> +
<%= f.submit %> <% end %> diff --git a/config/locales/views/translations/de.yml b/config/locales/views/translations/de.yml index df84c5e..029cd7f 100644 --- a/config/locales/views/translations/de.yml +++ b/config/locales/views/translations/de.yml @@ -6,6 +6,8 @@ de: preview: Vorschau source_code: Quelltext translation_source_explanation: Hier kommt der HTML-Quelltext der Übersetzung hin. + copyright_warning_html: Sie erklären sich einverstanden, dass die Übersetzung unter der Creative Commons Lizenz CC BY-NC-SA 4.0 veröffentlicht wird. + not_logged_in_warning: Wenn Sie wollen, dass die Übersetzung Ihnen zugeordnet werden kann, müssen Sie sich einloggen (oben rechts), andernfalls ist sie anonym. new: new_translation: Neue Übersetzung für Problem %{id} notice: