 
       deleteButton = document.createElement("input")
       deleteButton.type = 'RemoveButton'
-      console.log language
-      if language == 'en'
+
+      if locale == 'en'
         deleteButton.value = 'Remove'
       else
         deleteButton.value = 'Entfernen'
+
       deleteButton.id = 'delete' + count
       deleteButton.name = 'deleteInvitationButton' + count
 

  if $('.typeahead').length
    typeahead()
  if $('#invite_user').length
    inviteInitUser()
  return



  re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
  re.test email

ready = ->
  if $('#setInactiveButton').length
    sendLanguageWithButtonToCallback $('#setInactiveButton'), setInactiveWarning
