Its English use dates to 1777 when the British explorer James Cook visited Tonga .
It dates back to 1777 and an English explorer , Captain James Cook , went to a place he named `` the Friendly Islands '' ( now Tonga ) .