refined language detection; put info dialog in two separate files