add german translations

This commit is contained in:
Karol
2019-12-12 19:19:47 +01:00
parent 8ba764044a
commit eb7a4d5933
4 changed files with 47 additions and 18 deletions

View File

@@ -192,9 +192,9 @@ class ExercisesController < ApplicationController
return render json: {}, status: 201
end
rescue Proforma::ProformaError
render json: t('exercises.export_codeharbor.export_errors.invalid'), status: 400
render json: t('exercises.import_codeharbor.import_errors.invalid'), status: 400
rescue StandardError
render json: t('exercises.export_codeharbor.export_errors.internal_error'), status: 500
render json: t('exercises.import_codeharbor.import_errors.internal_error'), status: 500
end
def user_from_api_key

View File

@@ -9,7 +9,7 @@
.form-group
= f.label(:api_key)
.input-group
= f.text_field(:api_key, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('codeharbor_link.info.token'), class: 'form-control api_key')
= f.text_field(:api_key, data: {toggle: 'tooltip', placement: 'bottom'}, title: t('codeharbor_link.info.api_key'), class: 'form-control api_key')
.input-group-btn
= button_tag t('codeharbor_link.generate'), type: 'button', class: 'generate-api_key btn btn-default'
.actions