djangogirls icon indicating copy to clipboard operation
djangogirls copied to clipboard

Translation mismatch for pt_br message

Open anaschwendler opened this issue 10 months ago • 2 comments

When running django-admin makemessages --all I faced the following issue: image

It is possible to run as django-admin makemessages --locale=pt_br but we need fixing anyway :)

Thanks!

anaschwendler avatar Apr 21 '24 14:04 anaschwendler

I suspect this is a problem with django looking at the LANGUAGES setting for its locale names.

https://docs.djangoproject.com/en/5.0/ref/settings/#languages

With Brazilian, the language code that needs to go in the setting is pt-br, but message catalog creation uses locale name which is pt_BR.

This would need an investigation of how the --all flag is handled.

marksweb avatar Apr 22 '24 13:04 marksweb

I'll take a look once I finish the other one for sure :)

anaschwendler avatar Apr 22 '24 13:04 anaschwendler