makemessages - unable to find a locale path

272 views
Skip to first unread message

Kai Kobschätzki

unread,
Jun 12, 2020, 4:08:11 AM6/12/20
to Django users
Hi all,

I have some *.po files. But now I am getting the message error „Unable
to find a locale path to store translations for file $directory“.

All I find with google is that I have to create a subdirectory locale in
the $directory. But I removed the $directory, so I can't or I do not
want to recreate the origina directory...

Do anyone know how I can say django to „forget“ the directory?

Thanks!

bengoshi


Aldian Fazrihady

unread,
Jun 12, 2020, 4:28:28 AM6/12/20
to django...@googlegroups.com
Hi,

you need to set LOCALE_PATHS in the settings file point to your new folder.
For example,
LOCALE_PATHS = [os.path.join(BASE_DIR, 'new_locale')]

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a30a9cd-4538-3295-5dc5-6a0b1cee42ed%40gmail.com.


--
Regards,

Kai Kobschätzki

unread,
Jun 12, 2020, 4:41:52 AM6/12/20
to django...@googlegroups.com

Hi Aldian,

thanks for your response!

I do not want a new folder. I removed a folder and the localization don't accept it..

Greetings

bengoshi

Aldian Fazrihady

unread,
Jun 12, 2020, 5:01:58 AM6/12/20
to django...@googlegroups.com
After django "forget" the directory, what do you expect makemessages to do?

Kai Kobschätzki

unread,
Jun 12, 2020, 5:03:39 AM6/12/20
to django...@googlegroups.com

No error message anymore :)

Aldian Fazrihady

unread,
Jun 12, 2020, 6:02:25 AM6/12/20
to django...@googlegroups.com
makemessages should still extract texts from code and put it in po files and store the po files somewhere? Or should it do nothing?

AMJAD ALI SAMTIO

unread,
Jun 27, 2020, 10:05:49 AM6/27/20
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages