Skip to content
New issue

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

Send notifications using the system language as a fallback #37

Open
diegobz opened this issue Apr 5, 2011 · 0 comments
Open

Send notifications using the system language as a fallback #37

diegobz opened this issue Apr 5, 2011 · 0 comments

Comments

@diegobz
Copy link

diegobz commented Apr 5, 2011

Notifications currently tend to be sent using the language of the user which is doing the action, in case the get_notification_language function is not able to identify the language of the target (receiver) user.

For a international audience this is not very nice, having in mind that, if I'm a user that speaks Brazilian Portuguese, I might be sending localized (pt_BR) notifications to people who do not speak it.

The following patch makes the notification system to use the default language set in the Django settings, in case no language is found for the target user.

https://gist.github.com/904552

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant