From 9c7ddd55a4f649408d28f12886f0e0dac1dc5367 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 1 Jan 2013 22:23:25 -0500 Subject: [PATCH] i18n for broken_image_reports#create flashes --- app/controllers/broken_image_reports_controller.rb | 7 ++----- config/locales/en-meep.yml | 8 ++++++++ config/locales/en.yml | 8 ++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/app/controllers/broken_image_reports_controller.rb b/app/controllers/broken_image_reports_controller.rb index f71da60c..088e6141 100644 --- a/app/controllers/broken_image_reports_controller.rb +++ b/app/controllers/broken_image_reports_controller.rb @@ -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 diff --git a/config/locales/en-meep.yml b/config/locales/en-meep.yml index 4d8123ea..aea8ad42 100644 --- a/config/locales/en-meep.yml +++ b/config/locales/en-meep.yml @@ -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: diff --git a/config/locales/en.yml b/config/locales/en.yml index 87e85176..18a5fa9f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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: