Hiya,

most of the Satchmo store returns properly translated content based on l10n 
settings, but some parts are only in English.

For example error message in cart view (product is out of stock) is not 
localised. The code returning an error message in view *cart.py* for cart 
template *cart.html* looks like

            if stock < qty:
                return (False, cart, cartitem, _("Unfortunately we only 
have %(stock)d '%(cartitem_name)s' in stock.") % {'stock': stock, 
'cartitem_name': cartitem.product.translated_name()})

What do I have to do to get translated content in such cases ?
Do I have to hardcode localised text in my custom views or is there some 
more transparent way ?

Thanks

David

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/satchmo-users/-/i-zFRxIdw6UJ.
To post to this group, send email to satchmo-users@googlegroups.com.
To unsubscribe from this group, send email to 
satchmo-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to