I have a language code like fr_fr, fr_be. I would like to get French and Belgium using QLocale, but I can't find how to do it. I did:
QLocale locale("fr_fr"); // or fr_be
QString l = locale.languageToString(locale.language()); //returns French in both cases
QLocale gives you the country and language names, in both native and English languages. Choose what you prefer:
This program returns: