[Fixed]-Django – custom translation (.mo file) strings doesn't work

1👍

OK, so as I was just about to send the question, I found the answer.

I was using LANGUAGE_CODE = 'cz', and Django took it as an alias to 'cs' (this is ok), but for some reason, it didn’t load the custom .mo file. When I changed the language code to cs as it is in django/conf/locale/ path, it began to work.

I do not understand why this happens, but at least it works.

👤Zopper

Leave a comment