def notify_new_string(translation):
 mails = []
 subscriptions = Profile.objects.subscribed_new_string(translation.subproject.project, translation.language)
 for subscription in subscriptions:
  mails.append(subscription.notify_new_string(translation))
 send_mails(mails)

def notify_new_string ( translation ) : mails = [ ] subscriptions = Profile . objects . subscribed_new_string ( translation . subproject . project , translation . language ) for subscription in subscriptions : mails . append ( subscription . notify_new_string ( translation ) ) send_mails ( mails )
notification on new string to translate .