i18n for broken_image_reports#create flashes

This commit is contained in:
Emi Matchu 2013-01-01 22:23:25 -05:00
parent 99e3bba72f
commit 3c9e37f614
3 changed files with 18 additions and 5 deletions

View file

@ -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

View file

@ -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:

View file

@ -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: