Commit 9425b577 authored by Michal Čihař's avatar Michal Čihař

New language requests go to admins as well

parent 91e15c2c
......@@ -80,7 +80,7 @@ def notify_new_string(translation):
def notify_new_language(subproject, language, user):
'''
Notify subscribed users about new translation
Notify subscribed users about new language requests
'''
subscriptions = Profile.objects.subscribed_new_language(
subproject.project,
......@@ -89,6 +89,17 @@ def notify_new_language(subproject, language, user):
for subscription in subscriptions:
subscription.notify_new_language(subproject, language, user)
# Notify admins
send_notification_email(
'en',
'ADMINS',
'new_language',
subproject,
{
'language': language,
}
)
def notify_new_translation(unit, oldunit, user):
'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment