matthiask / plata

Plata - the lean and mean Django-based Shop
https://plata-django-shop.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
197 stars 63 forks source link

Model translations #29

Closed hkage closed 11 years ago

hkage commented 12 years ago

Hi Matthias,

this is only a small issue, but some models from plata.shop.models have unicode representation parts, that will not be translated. E.g. "of" in OrderItem.__unicode__:

def __unicode__(self):
        return u'%s of %s' % (self.quantity, self.product)

This will mostly affect only the admin backend, but it would be nice to have translation for the objects themselves, too. The following models seem to miss a gettext call:

Just an idea. With kind regards Henning

matthiask commented 11 years ago

Hi Henning,

Good idea! Do you want to take a stab at it? Otherwise I'll probably get around to fixing this sometime during the next 3-4 weeks.

hkage commented 11 years ago

Hi Matthias,

sure why not. I already forked the plata repository. Thanks for the feedback.

Henning