1
0
Fork 0
forked from OpenNeo/impress

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

@ -12,14 +12,11 @@ class BrokenImageReportsController < ApplicationController
def create
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

View file

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

View file

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