forked from OpenNeo/impress
i18n for broken_image_reports#new
This commit is contained in:
parent
a433cbf436
commit
fc595c3447
5 changed files with 48 additions and 17 deletions
|
@ -154,6 +154,10 @@ module ApplicationHelper
|
|||
%(<meta name="user-signed-in" content="#{user_signed_in?}">).html_safe
|
||||
end
|
||||
|
||||
def labeled_time_ago_in_words(time)
|
||||
content_tag :abbr, time_ago_in_words(time), :title => time
|
||||
end
|
||||
|
||||
def title(value)
|
||||
content_for :title, value
|
||||
end
|
||||
|
|
|
@ -1,2 +1,11 @@
|
|||
module BrokenImageReportsHelper
|
||||
def format_converted_at(converted_at)
|
||||
translate 'broken_image_reports.new.converted_at_html',
|
||||
:converted_at_ago => labeled_time_ago_in_words(converted_at)
|
||||
end
|
||||
|
||||
def format_reported_at(reported_at)
|
||||
translate 'broken_image_reports.new.reported_at_html',
|
||||
:reported_at_ago => labeled_time_ago_in_words(reported_at)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
- title 'Report broken image'
|
||||
- title t('.title')
|
||||
|
||||
%p
|
||||
Thanks for helping us find broken image! Sometimes the converters don't get
|
||||
things quite right, and sometimes that can be fixed by just trying the
|
||||
conversion again. If reconversion doesn't seem to solve the issue, consider
|
||||
sending us a bug report at #{mail_to 'webmaster@openneo.net'}. Thanks!
|
||||
%p= t '.explanation_html', :contact_link => mail_to(contact_email)
|
||||
|
||||
%p
|
||||
Which of these images looked broken? We'll put it in line for reconversion.
|
||||
%p= t '.call_to_action'
|
||||
|
||||
%ul#report-assets
|
||||
- @swf_assets.each do |swf_asset|
|
||||
|
@ -17,16 +12,10 @@
|
|||
= form_tag(:action => :create) do
|
||||
= hidden_field_tag 'swf_asset_remote_id', swf_asset.remote_id
|
||||
= hidden_field_tag 'swf_asset_type', swf_asset.type
|
||||
= submit_tag 'Report as broken'
|
||||
= submit_tag t('.submit')
|
||||
|
||||
- if swf_asset.converted_at?
|
||||
%span.converted-at
|
||||
Converted
|
||||
= time_ago_in_words swf_asset.converted_at
|
||||
ago
|
||||
%span.converted-at= format_converted_at(swf_asset.converted_at)
|
||||
- else
|
||||
%span.reported-broken-at
|
||||
Reported
|
||||
= time_ago_in_words swf_asset.reported_broken_at
|
||||
ago
|
||||
%span.reported-broken-at= format_reported_at(swf_asset.reported_broken_at)
|
||||
|
||||
|
|
|
@ -30,6 +30,20 @@ en-meep:
|
|||
Images © 2000–%{year} Neopets, Inc. All Rights Reserved.
|
||||
Used With Permission. Meep.
|
||||
|
||||
broken_image_reports:
|
||||
new:
|
||||
title: Meep broken image
|
||||
explanation_html:
|
||||
Thanks for helping us find broken meeps! Sometimes the meepits don't
|
||||
get things quite right, and sometimes that can be meeped by just
|
||||
meeping the conversion again. If reconversion doesn't seem to meep the
|
||||
meep, consider sending us a meep at %{contact_link}. Meep!
|
||||
call_to_action:
|
||||
Which of these meeps looked meeped? We'll put it in line for remeeping.
|
||||
submit: Meep as broken
|
||||
converted_at_html: Conveeped %{converted_at_ago} ago
|
||||
reported_at_html: Repeeped %{reported_at_ago} ago
|
||||
|
||||
outfits:
|
||||
new:
|
||||
tagline: Meeps made meepy!
|
||||
|
|
|
@ -30,6 +30,21 @@ en:
|
|||
Images © 2000–%{year} Neopets, Inc. All Rights Reserved.
|
||||
Used With Permission
|
||||
|
||||
broken_image_reports:
|
||||
new:
|
||||
title: Report broken image
|
||||
explanation_html:
|
||||
Thanks for helping us find broken images! Sometimes the converters
|
||||
don't get things quite right, and sometimes that can be fixed by just
|
||||
trying the conversion again. If reconversion doesn't seem to solve the
|
||||
issue, consider sending us a bug report at %{contact_link}. Thanks!
|
||||
call_to_action:
|
||||
Which of these images looked broken?
|
||||
We'll put it in line for reconversion.
|
||||
submit: Report as broken
|
||||
converted_at_html: Converted %{converted_at_ago} ago
|
||||
reported_at_html: Reported %{reported_at_ago} ago
|
||||
|
||||
outfits:
|
||||
new:
|
||||
tagline: Neopets wearables made easy!
|
||||
|
|
Loading…
Reference in a new issue