Fix missing I18n in messages plugin

This commit is contained in:
Patrick Gansterer 2022-05-27 21:48:55 +02:00
parent f7311d25f6
commit a40934dd5a

View file

@ -43,7 +43,7 @@ class MessagesController < ApplicationController
def show
@message = Message.find(params[:id])
unless @message.is_readable_for?(current_user)
redirect_to messages_url, alert: 'Nachricht ist privat!'
redirect_to messages_url, alert: I18n.t('messages.new.error_private')
end
end