Add translations for inbox controller
This commit is contained in:
parent
6b1be53827
commit
bf0ac3c4e3
|
@ -20,7 +20,7 @@ class InboxController < ApplicationController
|
||||||
|
|
||||||
if @inbox_author.empty?
|
if @inbox_author.empty?
|
||||||
@empty = true
|
@empty = true
|
||||||
flash.now[:info] = "No questions from @#{params[:author]} found, showing default entries instead!"
|
flash.now[:info] = t(".author.info", author: params[:author])
|
||||||
else
|
else
|
||||||
@inbox = @inbox_author
|
@inbox = @inbox_author
|
||||||
@inbox_count = @inbox_author_count
|
@inbox_count = @inbox_author_count
|
||||||
|
@ -33,7 +33,7 @@ class InboxController < ApplicationController
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
Sentry.capture_exception(e)
|
Sentry.capture_exception(e)
|
||||||
flash.now[:error] = "No user with the name @#{params[:author]} found, showing default entries instead!"
|
flash.now[:error] = t(".author.error", author: params[:author])
|
||||||
@not_found = true
|
@not_found = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,6 +23,10 @@ en:
|
||||||
destroy:
|
destroy:
|
||||||
success: "Announcement has been deleted successfully."
|
success: "Announcement has been deleted successfully."
|
||||||
error: "Unable to delete announcement."
|
error: "Unable to delete announcement."
|
||||||
|
inbox:
|
||||||
|
author:
|
||||||
|
info: "No questions from @%{author} found, showing default entries instead!"
|
||||||
|
error: "No user with the name @%{author} found, showing default entries instead!"
|
||||||
services:
|
services:
|
||||||
create:
|
create:
|
||||||
success: "Service connected successfully."
|
success: "Service connected successfully."
|
||||||
|
|
Loading…
Reference in New Issue