mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
i18n: fixed syntax error
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
588b2cb161
commit
c0eb10e4fb
@ -76,7 +76,7 @@ class DjangoTranslation23(DjangoTranslation):
|
||||
|
||||
def gettext(self, msgid):
|
||||
res = DjangoTranslation.gettext(self, msgid)
|
||||
if self.charset() != self.django_output_charset
|
||||
if self.charset() != self.django_output_charset:
|
||||
res = res.decode(self.charset()).encode(self.django_output_charset)
|
||||
return res
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user