I can reproduce the issue but I'm not sure what the fix is, I've opened an issue to track it here:
https://github.com/stephenmcd/cartridge/issues/282 On Fri, Jan 8, 2016 at 11:26 PM, Márcio Moreira <[email protected]> wrote: > Hello, > > I am having a trouble with the quantities of items displayed by > user_panel.html when the language code is set to brazilian portuguese > (pt_BR). The number 1 is displayed for both values on user_panel, even when > there are zero items on cart and on wishlist. Going into the cart and into > the wishlist shows correctly that they are empty. This problem does not > happen when other languages are used. > > LANGUAGE_CODE = "pt-br" > >> 1 item no carrinho: R$ 0,00 <http://192.168.0.21:8000/shop/cart/> >> Lista de desejos contém 1 item <http://192.168.0.21:8000/shop/wishlist/> >> > > LANGUAGE_CODE = "es" > >> 0 elementos en el carrito: R$ 0,00 <http://192.168.0.21:8000/shop/cart/> >> La lista de deseos contiene 0 elementos >> <http://192.168.0.21:8000/shop/wishlist/> > > > LANGUAGE_CODE = "en" > >> 0 items in cart: R$ 0,00 <http://192.168.0.21:8000/shop/cart/> >> Wishlist contains 0 items <http://192.168.0.21:8000/shop/wishlist/> >> > > Portuguese and Spanish django.po files looks very similar: > > ..\venv\Lib\site-packages\cartridge\shop\locale\pt_BR\LC_MESSAGE\django.po > #: templates/includes/user_panel.html:5 > #, python-format > msgid "1 item" > msgid_plural "%(cart_quantity)s items" > msgstr[0] "1 item" > msgstr[1] "%(cart_quantity)s itens" > > ..\venv\Lib\site-packages\cartridge\shop\locale\es\LC_MESSAGE\django.po > #: templates/shop/includes/user_panel.html:5 > #, python-format > msgid "1 item" > msgid_plural "%(cart_quantity)s items" > msgstr[0] "1 elemento" > msgstr[1] "%(cart_quantity)s elementos" > > Any help is welcome. > > Greetings, > Márcio > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
