i18n for broken_image_reports#create flashes
This commit is contained in:
parent
52225c0f3d
commit
9c7ddd55a4
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]).
|
swf_asset = SwfAsset.where(:type => params[:swf_asset_type]).
|
||||||
find_by_remote_id(params[:swf_asset_remote_id])
|
find_by_remote_id(params[:swf_asset_remote_id])
|
||||||
|
|
||||||
|
|
||||||
if swf_asset.report_broken
|
if swf_asset.report_broken
|
||||||
flash[:success] = "Thanks! This image will be reconverted soon. If it " +
|
flash[:success] = t('broken_image_reports.create.success')
|
||||||
"looks the same after conversion, please consider sending a bug report."
|
|
||||||
else
|
else
|
||||||
flash[:alert] = "This image is already in line for reconversion. We'll " +
|
flash[:alert] = t('broken_image_reports.create.already_reported')
|
||||||
"get to it soon, don't worry."
|
|
||||||
end
|
end
|
||||||
|
|
||||||
redirect_to :back
|
redirect_to :back
|
||||||
|
|
|
@ -44,6 +44,14 @@ en-meep:
|
||||||
search: Meep
|
search: Meep
|
||||||
|
|
||||||
broken_image_reports:
|
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:
|
new:
|
||||||
title: Meep broken image
|
title: Meep broken image
|
||||||
explanation_html:
|
explanation_html:
|
||||||
|
|
|
@ -44,6 +44,14 @@ en:
|
||||||
search: Search
|
search: Search
|
||||||
|
|
||||||
broken_image_reports:
|
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:
|
new:
|
||||||
title: Report broken image
|
title: Report broken image
|
||||||
explanation_html:
|
explanation_html:
|
||||||
|
|
Loading…
Reference in a new issue