i18n for broken_image_reports#create flashes
This commit is contained in:
parent
99e3bba72f
commit
3c9e37f614
3 changed files with 18 additions and 5 deletions
|
@ -13,13 +13,10 @@ class BrokenImageReportsController < ApplicationController
|
|||
swf_asset = SwfAsset.where(:type => params[:swf_asset_type]).
|
||||
find_by_remote_id(params[:swf_asset_remote_id])
|
||||
|
||||
|
||||
if swf_asset.report_broken
|
||||
flash[:success] = "Thanks! This image will be reconverted soon. If it " +
|
||||
"looks the same after conversion, please consider sending a bug report."
|
||||
flash[:success] = t('broken_image_reports.create.success')
|
||||
else
|
||||
flash[:alert] = "This image is already in line for reconversion. We'll " +
|
||||
"get to it soon, don't worry."
|
||||
flash[:alert] = t('broken_image_reports.create.already_reported')
|
||||
end
|
||||
|
||||
redirect_to :back
|
||||
|
|
|
@ -44,6 +44,14 @@ en-meep:
|
|||
search: Meep
|
||||
|
||||
broken_image_reports:
|
||||
create:
|
||||
success:
|
||||
Thanks! This image will be remeeped soon. If it looks the same after
|
||||
meeping, please consider sending a bug report.
|
||||
already_reported:
|
||||
This image is already in line for remeeping. We'll get to it soon,
|
||||
don't worry.
|
||||
|
||||
new:
|
||||
title: Meep broken image
|
||||
explanation_html:
|
||||
|
|
|
@ -44,6 +44,14 @@ en:
|
|||
search: Search
|
||||
|
||||
broken_image_reports:
|
||||
create:
|
||||
success:
|
||||
Thanks! This image will be reconverted soon. If it looks the same after
|
||||
conversion, please consider sending a bug report.
|
||||
already_reported:
|
||||
This image is already in line for reconversion. We'll get to it soon,
|
||||
don't worry.
|
||||
|
||||
new:
|
||||
title: Report broken image
|
||||
explanation_html:
|
||||
|
|
Loading…
Reference in a new issue