We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am attempting to use Arabic with the activate function and passing in ar instead of the full ar_SA.
activate
ar
ar_SA
Fall back to a reasonable default.
[Errno 2] No translation file found for domain: 'humanize'
humanize.activate('ar')
The root of the issue appears to be that the translation provided by Humanize is for SA (Saudi Arabia) and the default for Python is https://github.com/python/cpython/blob/main/Lib/locale.py#L916
My recommendation is to reduce the name of the translation directory down from ar_SA to just ar to encompass a greater range of Arabic speakers. Like the Django project has: https://github.com/django/django/blob/main/django/conf/locale/ar/LC_MESSAGES/django.po
Alternatively, it could be renamed to ar_AA to work with the native (to Python) fallback.
ar_AA
The text was updated successfully, but these errors were encountered:
Good idea, please see #27 to rename it to ar.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What did you do?
I am attempting to use Arabic with the
activate
function and passing inar
instead of the fullar_SA
.What did you expect to happen?
Fall back to a reasonable default.
What actually happened?
What versions are you using?
Code that causes the problem
The root of the issue appears to be that the translation provided by Humanize is for SA (Saudi Arabia) and the default for Python is
https://github.com/python/cpython/blob/main/Lib/locale.py#L916
My recommendation is to reduce the name of the translation directory down from
ar_SA
to justar
to encompass a greater range of Arabic speakers. Like the Django project has: https://github.com/django/django/blob/main/django/conf/locale/ar/LC_MESSAGES/django.poAlternatively, it could be renamed to
ar_AA
to work with the native (to Python) fallback.The text was updated successfully, but these errors were encountered: