diff --git a/app/views/shared/menu/_cart_sidebar.html.haml b/app/views/shared/menu/_cart_sidebar.html.haml index b4b27766cd..a792026afc 100644 --- a/app/views/shared/menu/_cart_sidebar.html.haml +++ b/app/views/shared/menu/_cart_sidebar.html.haml @@ -2,8 +2,10 @@ .background{ng: {click: 'toggleCartSidebar()'}} .sidebar .cart-header - %span.title{"ng-show" => "Cart.line_items.length > 0"} - = t('.items_in_cart', num: "{{ Cart.total_item_count() }}") + %span.title{"ng-show" => "Cart.line_items.length == 1"} + = t('.items_in_cart_singular', num: "{{ Cart.total_item_count() }}") + %span.title{"ng-show" => "Cart.line_items.length > 1"} + = t('.items_in_cart_plural', num: "{{ Cart.total_item_count() }}") %a.close{ng: {click: 'toggleCartSidebar()'}} = t('.close') %i.ofn-i_009-close diff --git a/config/locales/en.yml b/config/locales/en.yml index 23a380cfdf..27cf49f93b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1219,7 +1219,8 @@ en: cart_sidebar: checkout: "Checkout" edit_cart: "Edit cart" - items_in_cart: "%{num} items in your cart" + items_in_cart_singular: "%{num} item in your cart" + items_in_cart_plural: "%{num} items in your cart" close: "Close" cart_empty: "Your cart is empty" take_me_shopping: "Take me shopping!"