mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
FIX: replace invitee_name to inviter_name in translation overrides
This commit is contained in:
parent
e42812fcf7
commit
895cc0666b
|
@ -0,0 +1,12 @@
|
|||
class ReplaceInviteMailerTranslationOverride < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
execute <<~SQL
|
||||
UPDATE translation_overrides
|
||||
SET value = replace(value, '%{invitee_name}', '%{inviter_name}')
|
||||
WHERE translation_key IN ('invite_mailer.subject_template', 'invite_mailer.text_body_template',
|
||||
'invite_forum_mailer.subject_template', 'invite_forum_mailer.text_body_template',
|
||||
'custom_invite_mailer.subject_template', 'custom_invite_mailer.text_body_template',
|
||||
'custom_invite_forum_mailer.subject_template', 'custom_invite_forum_mailer.text_body_template');
|
||||
SQL
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user