From 949fa2a77ad21052357a2ada90521c9e6eb45695 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 30 Dec 2013 10:44:05 -0500 Subject: [PATCH] i18n newest items headers --- app/views/outfits/new.html.haml | 4 ++-- config/locales/en-MEEP.yml | 5 +++++ config/locales/en.yml | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/views/outfits/new.html.haml b/app/views/outfits/new.html.haml index fc4b48c3..1f57426d 100644 --- a/app/views/outfits/new.html.haml +++ b/app/views/outfits/new.html.haml @@ -76,7 +76,7 @@ -# TODO: i18n all the things -# TODO: cache this entire block? or just request newest items every time? - if @newest_unmodeled_items.present? - %h3 We need your help! Can you model these items? + %h3= t '.newest_items.unmodeled.header' %ul#newest-unmodeled-items - @newest_unmodeled_items.each do |item| - localized_cache "items/#{item.id} modeling_progress updated_at=#{item.updated_at.to_i}" do @@ -88,7 +88,7 @@ .missing-bodies = render_predicted_missing_species_by_color(@newest_unmodeled_items_predicted_missing_species_by_color[item]) - if @newest_modeled_items.present? - %h3 These items have already been modeled—thanks for your help! + %h3= t '.newest_items.modeled.header' %ul#newest-modeled-items - @newest_modeled_items.each do |item| %li.object diff --git a/config/locales/en-MEEP.yml b/config/locales/en-MEEP.yml index 0c4c3761..2378826a 100644 --- a/config/locales/en-MEEP.yml +++ b/config/locales/en-MEEP.yml @@ -644,6 +644,11 @@ en-MEEP: Meep, %{user_link}!" blog: link: OpenNeo Meep + newest_items: + unmodeled: + header: We meep your help! Can you meep these items? + modeled: + header: These items have already been meeped—meep for your help! pet_query: notice_html: Thanks for meeping us %{pet_name}. diff --git a/config/locales/en.yml b/config/locales/en.yml index 73a35457..12391cec 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -700,6 +700,11 @@ en: Thanks, %{user_link}!" blog: link: OpenNeo Blog + newest_items: + unmodeled: + header: We need your help! Can you model these items? + modeled: + header: These items have already been modeled—thanks for your help! pet_query: notice_html: Thanks for showing us %{pet_name}.