THE SITUATION:
I need to insert flags inside the language select. I have searched in Google and StackOverflow but the solutions founded are not work
Instead of inserting images you could generate css classes (from the language name or adding a new value only for that) and add the images as background images in your css (using sprites).
{{ language.name }}
For the css sprites I usually use sass with compass.