소스 검색

Corrected two translation issues

master
David Winterbottom 13 년 전
부모
커밋
cbbe39a9ae
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      oscar/apps/order/abstract_models.py
  2. 1
    1
      oscar/views/generic.py

+ 1
- 1
oscar/apps/order/abstract_models.py 파일 보기

618
         super(ShippingEventQuantity, self).save(*args, **kwargs)
618
         super(ShippingEventQuantity, self).save(*args, **kwargs)
619
         
619
         
620
     def __unicode__(self):
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
 class AbstractShippingEventType(models.Model):
624
 class AbstractShippingEventType(models.Model):

+ 1
- 1
oscar/views/generic.py 파일 보기

1
 from django.utils.encoding import smart_str
1
 from django.utils.encoding import smart_str
2
 from django.contrib import messages
2
 from django.contrib import messages
3
 from django.http import HttpResponseRedirect
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
 class PostActionMixin(object):
7
 class PostActionMixin(object):

Loading…
취소
저장