From 2cf7b1b36cd9be82ea07863a09d63c9435fe358a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Mon, 28 Sep 2020 18:54:25 +0100 Subject: [PATCH] Make label translatable --- app/views/admin/enterprises/form/_business_details.html.haml | 4 +++- config/locales/en.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/admin/enterprises/form/_business_details.html.haml b/app/views/admin/enterprises/form/_business_details.html.haml index 8615d81321..4f46fcf464 100644 --- a/app/views/admin/enterprises/form/_business_details.html.haml +++ b/app/views/admin/enterprises/form/_business_details.html.haml @@ -38,7 +38,9 @@ .omega.eight.columns %a{ href: '{{ Enterprise.terms_and_conditions }}', target: '_blank', ng: { if: 'Enterprise.terms_and_conditions' } } - = '{{ Enterprise.terms_and_conditions_file_name }}' " uploaded on " '{{ Enterprise.terms_and_conditions_updated_at }}' + = '{{ Enterprise.terms_and_conditions_file_name }}' + = t('.uploaded_on') + = '{{ Enterprise.terms_and_conditions_updated_at }}' .pad-top = f.file_field :terms_and_conditions, accept: 'application/pdf' .pad-top diff --git a/config/locales/en.yml b/config/locales/en.yml index 5eb5b40892..9691b851ed 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -705,6 +705,7 @@ en: invoice_text: Add customized text at the end of invoices terms_and_conditions: "Terms and Conditions" remove_terms_and_conditions: "Remove File" + uploaded_on: "uploaded on" contact: name: Name name_placeholder: eg. Gustav Plum