mirror of
https://github.com/django/django.git
synced 2024-12-30 13:05:45 +00:00
[1.8.x] Refs #24324 -- Fixed makemessages crash when Django is installed in a non-ASCII path.
Backport of 81a94cc616
from master
This commit is contained in:
parent
b2f7daa4a6
commit
9dba901d9c
@ -16,6 +16,7 @@ from django.core.management.utils import (
|
|||||||
find_command, handle_extensions, popen_wrapper,
|
find_command, handle_extensions, popen_wrapper,
|
||||||
)
|
)
|
||||||
from django.utils import six
|
from django.utils import six
|
||||||
|
from django.utils._os import upath
|
||||||
from django.utils.encoding import force_str
|
from django.utils.encoding import force_str
|
||||||
from django.utils.functional import cached_property, total_ordering
|
from django.utils.functional import cached_property, total_ordering
|
||||||
from django.utils.jslex import prepare_js_for_gettext
|
from django.utils.jslex import prepare_js_for_gettext
|
||||||
@ -472,7 +473,7 @@ class Command(BaseCommand):
|
|||||||
the msgs string, inserting it at the right place. msgs should be the
|
the msgs string, inserting it at the right place. msgs should be the
|
||||||
contents of a newly created .po file.
|
contents of a newly created .po file.
|
||||||
"""
|
"""
|
||||||
django_dir = os.path.normpath(os.path.join(os.path.dirname(django.__file__)))
|
django_dir = os.path.normpath(os.path.join(os.path.dirname(upath(django.__file__))))
|
||||||
if self.domain == 'djangojs':
|
if self.domain == 'djangojs':
|
||||||
domains = ('djangojs', 'django')
|
domains = ('djangojs', 'django')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user