Skip to content
This repository has been archived by the owner on Mar 10, 2018. It is now read-only.

Commit

Permalink
Extract hardcoded strings for blank slate on coupons#index
Browse files Browse the repository at this point in the history
- Missing pt-BR translations
  • Loading branch information
cabgfx committed Oct 8, 2015
1 parent 008fdaa commit bfd51f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/coupons/coupons/_no_coupons.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="panel panel-no-coupons">
<h1 class="panel-title">No Coupons</h1>
<h1 class="panel-title"><%= t('coupons.blank_slate.index.no_coupons') %></h1>

<div class="panel-body">
<p>
You haven't created coupons yet. This where they appear.
<%= t('coupons.blank_slate.index.info') %>
</p>

<p>
Expand Down
5 changes: 5 additions & 0 deletions config/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

2 comments on commit bfd51f4

@fnando
Copy link
Owner

@fnando fnando commented on bfd51f4 Oct 9, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I slightly changed the scope: 44816b4

Can you update the Danish translations?

Thanks!

@fnando
Copy link
Owner

@fnando fnando commented on bfd51f4 Oct 9, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, now there's the Kaminari translations. Would be nice if you update them as well. :)

Please sign in to comment.