1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-26 18:18:51 +01:00

Add ability to accept or decline translations

This commit is contained in:
2019-02-02 17:53:02 +01:00
parent 0dd3092c4c
commit 3a2aa6ea1a
11 changed files with 87 additions and 11 deletions

View File

@@ -9,4 +9,16 @@ de:
update_problem_count:
success_message: "Problem-Anzahl wurde erfolgreich aktualisiert!"
failure_message: "Problem-Anzahl konnte nicht aktualisiert werden! Grund: %{error}"
no_problem_count: "Keine Problem-Anzahl gegeben!"
no_problem_count: "Keine Problem-Anzahl gegeben!"
translations:
must_be_pending: "Übersetzung muss ausstehend sein, um akzeptiert oder abgelehnt zu werden!"
show:
accept_translation: "Akzeptieren"
decline_translation: "Ablehnen"
visit_current_translation: "Aktuelle Übersetzung anschauen"
already_translated: "Dieses Problem wurde bereits übersetzt."
is_new_translation: "Dieses Problem hat bisher keine Übersetzung."
accept:
success_message: "Übersetzung wurde erfolgreich akzeptiert!"
decline:
success_message: "Übersetzung wurde erfolgreich abgelehnt!"

View File

@@ -1,6 +1,9 @@
# ruby encoding: utf-8
de:
attributes:
created_at: Erstellt
updated_at: Aktualisiert
application:
site_title: "Projekt Euler"
sign_in: 'Einloggen'

View File

@@ -26,6 +26,10 @@ Rails.application.routes.draw do
namespace :admin do
get '', to: 'dashboard#index', as: 'dashboard_index'
post '/update_problem_count', to: 'dashboard#update_problem_count', as: 'dashboard_update_problem_count'
resources :translations, only: [:index, :show]
resources :translations, only: [:index] do
get '', to: 'translations#show', as: ''
post 'accept', to: 'translations#accept'
post 'decline', to: 'translations#decline'
end
end
end