The word gay entered English in the 12th century from Old French "Gai," which was most likely derived from a Germanic source.  The primary meaning of the word in English was "joyful," "carefree," "bright and flashy," and it was often employed in speech and literature with this meaning.