#31914: Django does not pick up .mo files when LOCALE_PATHS is unset ------------------------------------------------+------------------------ Reporter: Ondřej Kolín | Owner: nobody Type: Bug | Status: new Component: Internationalization | Version: 3.1 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 | ------------------------------------------------+------------------------ 1. Set LANGUAGE_CODE and LANGUAGES in settings.py 2. You are able to makemessages and compilemessages 3. Django is not picking up the translated messages 4. Set the LOCALE_PATHS variable in the settings.py 5. django now picks the messages
Fragment of settings.py {{{ LANGUAGE_CODE = 'en' LANGUAGES =[ ('en', _('English')), ('cs', _('Czech')) ] LOCALE_PATHS = ( os.path.join(BASE_DIR, 'locale'), ) }}} If this is intended, I think that makemessages/compile messages should fail as well. If not, the discovery should work as well. -- Ticket URL: <https://code.djangoproject.com/ticket/31914> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/054.87e413ec55eefcd17363e249ffa48c5e%40djangoproject.com.