Quellcode durchsuchen

Corrected two translation issues

master
David Winterbottom vor 13 Jahren
Ursprung
Commit
cbbe39a9ae
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1
    1
      oscar/apps/order/abstract_models.py
  2. 1
    1
      oscar/views/generic.py

+ 1
- 1
oscar/apps/order/abstract_models.py Datei anzeigen

@@ -618,7 +618,7 @@ class ShippingEventQuantity(models.Model):
618 618
         super(ShippingEventQuantity, self).save(*args, **kwargs)
619 619
         
620 620
     def __unicode__(self):
621
-        return _("%(product)s - quantity %(qty)d") % {'product': self.line.product, 'qty': self.quantity}
621
+        return _(u"%(product)s - quantity %(qty)d") % {'product': self.line.product, 'qty': self.quantity}
622 622
 
623 623
 
624 624
 class AbstractShippingEventType(models.Model):

+ 1
- 1
oscar/views/generic.py Datei anzeigen

@@ -1,7 +1,7 @@
1 1
 from django.utils.encoding import smart_str
2 2
 from django.contrib import messages
3 3
 from django.http import HttpResponseRedirect
4
-from django.utils.translation import ugettext_lazy
4
+from django.utils.translation import ugettext_lazy as _
5 5
 
6 6
 
7 7
 class PostActionMixin(object):

Laden…
Abbrechen
Speichern