Permalink
Browse files

Pagination now using an En Dash with spaces

  • Loading branch information...
1 parent aa987ef commit cb2916cd97945c8725eab0fdade278753ca5a907 @gregbell gregbell committed Nov 28, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/active_admin/locales/en.yml
  2. +2 −2 spec/unit/views/components/paginated_collection_spec.rb
@@ -35,7 +35,7 @@ en:
empty: "No %{model} found"
one: "Displaying <b>1</b> %{model}"
one_page: "Displaying <b>all %{n}</b> %{model}"
- multiple: "Displaying %{model} <b>%{from}%{to}</b> of <b>%{total}</b> in total"
+ multiple: "Displaying %{model} <b>%{from}&nbsp;&ndash;&nbsp;%{to}</b> of <b>%{total}</b> in total"
entry:
one: "entry"
other: "entries"
@@ -182,7 +182,7 @@ def paginated_collection(*args)
it "should display proper message (including number and not hash)" do
pagination.find_by_class('pagination_information').first.content.
- gsub('&nbsp;',' ').should == "Displaying posts <b>1 - 2</b> of <b>3</b> in total"
+ gsub('&nbsp;',' ').should == "Displaying posts <b>1 &ndash; 2</b> of <b>3</b> in total"
end
end
@@ -196,7 +196,7 @@ def paginated_collection(*args)
it "should show the proper item counts" do
pagination.find_by_class('pagination_information').first.content.
- gsub('&nbsp;',' ').should == "Displaying posts <b>61 - 81</b> of <b>81</b> in total"
+ gsub('&nbsp;',' ').should == "Displaying posts <b>61 &ndash; 81</b> of <b>81</b> in total"
end
end

0 comments on commit cb2916c

Please sign in to comment.