From 8b035f80b34be39dc9a2ac7599cfd095bed871fa Mon Sep 17 00:00:00 2001 From: Oleksandr Turchyn Date: Mon, 23 Sep 2024 11:38:08 +0300 Subject: [PATCH] fix i18n typos --- app/controllers/submissions_controller.rb | 2 +- app/views/submissions/_submitters_order.html.erb | 2 +- app/views/submissions/new.html.erb | 2 +- config/locales/en.yml | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index 76fdc18c3..515dda43e 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -57,7 +57,7 @@ def destroy if params[:permanently].present? @submission.destroy! - I18n.t('submission_has_been_deleted') + I18n.t('submission_has_been_removed') else @submission.update!(archived_at: Time.current) diff --git a/app/views/submissions/_submitters_order.html.erb b/app/views/submissions/_submitters_order.html.erb index 45f14bdcd..fb6bdb277 100644 --- a/app/views/submissions/_submitters_order.html.erb +++ b/app/views/submissions/_submitters_order.html.erb @@ -3,7 +3,7 @@ <%= f.label :preserve_order, for: uuid = SecureRandom.uuid, class: 'flex items-center cursor-pointer' do %> <%= f.check_box :preserve_order, id: uuid, class: 'base-checkbox', checked: template.submissions.last&.submitters_order.in?(['preserved', nil]) %> <%= t('preserve_order') %> - + <%= svg_icon('info_circle', class: 'w-4 h-4') %> <% end %> diff --git a/app/views/submissions/new.html.erb b/app/views/submissions/new.html.erb index 67e65f72d..f1a7b6741 100644 --- a/app/views/submissions/new.html.erb +++ b/app/views/submissions/new.html.erb @@ -1,4 +1,4 @@ -<%= render 'shared/turbo_modal_large', title: params[:selfsign] ? t('add_recipients') : 'Add New Recipients' do %> +<%= render 'shared/turbo_modal_large', title: params[:selfsign] ? t('add_recipients') : t('add_new_recipients') do %> <% options = [['via Email', 'email'], ['via Phone', 'phone'], %w[Detailed detailed], ['Upload List', 'list']].compact %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index bb75864e8..d88cd4764 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -326,6 +326,7 @@ en: &en bulk_send_from_excel_xlsx_or_csv: Bulk send from Excel XLSX or CSV add_new: Add New add_recipients: Add Recipients + add_new_recipients: Add New Recipients add_recipients_html: Add type_emails_here: Type emails here or_embed_on_your_website: Or embed on your website @@ -339,7 +340,7 @@ en: &en re_send_sms: Re-send SMS send_sms: Send SMS preserve_order: Preserve order - when_checked_notifications_will_be_sent_to_the_second_party_once_the_form_is_completed_by_the_previous_party: When checked, notifications will be sent to the second party once the form is completed by the previous party. Uncheck this option to send notifications to all parties simultaneously right away. + when_checked_notifications_will_be_sent_to_the_second_party_once_the_form_is_completed_by_the_previous_party_uncheck_this_option_to_send_notifications_to_all_parties_simultaneously_right_away: When checked, notifications will be sent to the second party once the form is completed by the previous party. Uncheck this option to send notifications to all parties simultaneously right away. upgrade_to_send_unlimited_signature_requests: Upgrade to send unlimited signature requests add_without_sending: Add without sending upgade_now: Upgrade Now @@ -475,7 +476,7 @@ en: &en please_sign_in: Please sign in. not_found: Not found new_recipients_have_been_added: New recipients have been added - submission_has_been_deleted: Submission has been deleted + submission_has_been_removed: Submission has been removed submission_has_been_archived: Submission has been archived form_has_been_completed_already: Form has been completed already. form_has_been_archived: Form has been archived.