From bfd51f4682d904cf1f548053ec037bfb8b4e32c3 Mon Sep 17 00:00:00 2001 From: Casper Klenz-Kitenge Date: Thu, 8 Oct 2015 11:23:43 +0200 Subject: [PATCH] Extract hardcoded strings for blank slate on coupons#index - Missing pt-BR translations --- app/views/coupons/coupons/_no_coupons.html.erb | 4 ++-- config/locale/en.yml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/coupons/coupons/_no_coupons.html.erb b/app/views/coupons/coupons/_no_coupons.html.erb index fc9cdf78..2c49de2d 100644 --- a/app/views/coupons/coupons/_no_coupons.html.erb +++ b/app/views/coupons/coupons/_no_coupons.html.erb @@ -1,9 +1,9 @@
-

No Coupons

+

<%= t('coupons.blank_slate.index.no_coupons') %>

- You haven't created coupons yet. This where they appear. + <%= t('coupons.blank_slate.index.info') %>

diff --git a/config/locale/en.yml b/config/locale/en.yml index 62ec1e35..1eeb2b72 100644 --- a/config/locale/en.yml +++ b/config/locale/en.yml @@ -101,6 +101,11 @@ en: no_description: 'No description provided' dont_expire: Never + blank_slate: + index: + no_coupons: 'No Coupons' + info: "You haven't created coupons yet. This where they appear." + activerecord: errors: messages: