translation
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
2025-09-18 22:27:14 +02:00
parent 589a22e5fe
commit 3f958bade1
3 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ class GuestMailer < ApplicationMailer
@guest = guest @guest = guest
mail( mail(
to: guest.name_with_email, to: guest.name_with_email,
subject: "#{I18n.t(:wedding_name)}: RSVP Confirmation" subject: "#{I18n.t(:wedding_name)}: Zusage/Absage"
) )
end end
@ -15,7 +15,7 @@ class GuestMailer < ApplicationMailer
@guest = guest @guest = guest
mail( mail(
to: guest.name_with_email, to: guest.name_with_email,
subject: "#{I18n.t(:wedding_name)}: Your RSVP" subject: "#{I18n.t(:wedding_name)}: Deine Zusage/Absage"
) )
end end
end end

View File

@ -26,10 +26,10 @@ class Guest < ApplicationRecord
# Don't allow long or odd names in emails; may be spam. # Don't allow long or odd names in emails; may be spam.
def email_safe_salutation def email_safe_salutation
return 'Hello,' if return 'Hallo,' if
first_name.blank? || first_name !~ /\A[\p{Word}\s'-]{1,30}\z/i first_name.blank? || first_name !~ /\A[\p{Word}\s'-]{1,30}\z/i
"Dear #{first_name}," "Liebe/Lieber #{first_name},"
end end
validates :diet, length: { maximum: 8192 } validates :diet, length: { maximum: 8192 }

View File

@ -1,3 +1,3 @@
<strong>Alert</strong><br> <strong>Knusthöhe 65</strong><br>
Qikiqtaaluk Region, Nunavut<br> 42897 Remscheid<br>
Canada<br> Deutschland<br>