Skip to content

Commit

Permalink
fix i18n typos
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBTurchyn committed Sep 23, 2024
1 parent c717293 commit 8b035f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/submissions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion app/views/submissions/_submitters_order.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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]) %>
<span class="label"><%= t('preserve_order') %></span>
<span class="tooltip" data-tip="<%= t('when_checked_notifications_will_be_sent_to_the_second_party_once_the_form_is_completed_by_the_previous_party') %>">
<span class="tooltip" data-tip="<%= t('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') %>">
<%= svg_icon('info_circle', class: 'w-4 h-4') %>
</span>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/submissions/new.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>
<toggle-visible data-element-ids="<%= options.map(&:last).to_json %>" class="relative text-center px-2 mt-4 block">
<div class="join">
Expand Down
5 changes: 3 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: <span>Add <span class="hidden md:inline">Recipients</span></span>
type_emails_here: Type emails here
or_embed_on_your_website: Or embed on your website
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 8b035f8

Please sign in to comment.