#28434: JavaScriptCatalog, JSONCatalog does not contains translate from
LOCALE_PATHS
------------------------------------------------+------------------------
Reporter: Stanislav | Owner: nobody
Type: Bug | Status: new
Component: Internationalization | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
JavaScriptCatalog and JSONCatalog does not contains translate from
locale\de\LC_MESSAGES\django.po or translate from
locale\ru\LC_MESSAGES\django.po.
settings.py
{{{
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
LANGUAGES = [
('en', _('English')),
('de', _('German')),
('ru', _('Russian')),
]
LOCALE_PATHS = (
os.path.join(BASE_DIR, 'locale'),
)
}}}
urls.py
{{{
urlpatterns += i18n_patterns(
url(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-
catalog'),
url(r'^jsoni18n/$', JSONCatalog.as_view(), name='json-catalog'),
)
}}}
The command line
{{{
django-admin makemessages -l de
django-admin makemessages -l ru
}}}
I'm added translation into locale\de\LC_MESSAGES\django.po,
locale\ru\LC_MESSAGES\django.po
The command line
{{{
django-admin makemessages -d djangojs -l de
django-admin makemessages -d djangojs -l ru
django-admin compilemessages
}}}
But the response from the
http://127.0.0.1:8000/ru/jsi18n/,
http://127.0.0.1:8000/de/jsi18n/
http://127.0.0.1:8000/ru/jsoni18n/
http://127.0.0.1:8000/de/jsoni18n/
does not contains translate from LOCALE_PATHS.
This urls contains tranlate only from
django\contrib\admin\locale\de\LC_MESSAGES\djangojs.po
django\contrib\admin\locale\ru\LC_MESSAGES\djangojs.po
I asked about this problem in 3 forums, but no one could answer.
Full code here https://github.com/ctac22/django-
translation/tree/master/myproject
--
Ticket URL: <https://code.djangoproject.com/ticket/28434>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.767f6607d5c0e2b3fcf7d89ed50f3f68%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.