Add missing translations (#1250)

Fixes #1218
This commit is contained in:
Artur Beljajev 2019-07-08 13:43:57 +03:00 committed by Georg
parent 90aeb5f398
commit 1dfe30ccfd
6 changed files with 19 additions and 6 deletions

View file

@ -0,0 +1,3 @@
class CertificationRequest
extend ActiveModel::Translation
end

View file

@ -1,6 +1,6 @@
- content_for :actions do
= link_to(t(:add), new_admin_bank_statement_path, class: 'btn btn-primary')
= link_to(t(:import), import_admin_bank_statements_path, class: 'btn btn-primary')
= link_to(t('.import_btn'), import_admin_bank_statements_path, class: 'btn btn-primary')
= render 'shared/title', name: t(:bank_statements)
.row

View file

@ -8,7 +8,7 @@
.form-group
- if params[:crt]
.col-md-4.control-label
= f.label :crt, t(:certificate)
= f.label :crt, t('.certificate_file')
.col-md-8
= f.file_field :crt
- else

View file

@ -54,7 +54,7 @@
%dt= t(:version)
%dd= @csr.version
%dt= t(:subject)
%dt= CertificationRequest.human_attribute_name :subject
%dd= @csr.subject
%dt= t(:signature_algorithm)
@ -78,7 +78,7 @@
%dt= t(:version)
%dd= @crt.version
%dt= t(:serial_number)
%dt= Certificate.human_attribute_name :serial_number
%dd= @crt.serial
%dt= t(:signature_algorithm)
@ -93,8 +93,8 @@
%dt= t(:valid_to)
%dd= @crt.not_after
%dt= t(:subject)
%dt= Certificate.human_attribute_name :subject
%dd= @crt.subject
%dt= t(:extensions)
%dt= Certificate.human_attribute_name :extensions
%dd= @crt.extensions.map(&:to_s).join('<br>').html_safe

View file

@ -0,0 +1,5 @@
en:
admin:
bank_statements:
index:
import_btn: Import

View file

@ -0,0 +1,5 @@
en:
admin:
certificates:
new:
certificate_file: Certificate file