
The language and country names are displayed always in english, which seems to be a Qt limitation.
Fixes: #1509
Great!
I see one mistake in the screenshot though: en (or generally, xx without xx_YY) should be simply English, not English - UnitedStates :)
Yes, I know that's the behavior. But it's not correct. English is "general" English, without locale. You can see this problem with Persian - Iran, which is now duplicate in the list. I wonder if there is another way to take apart the xx_YY which doesn't have this problem (without reinventing the wheel...).
We could check if there is a "_" in the source string and if not only use .language()? Do you know the function to check for a certain char in a QString?
QString::contains(str) -> bool
- display as "language - country (locale name)", when locale name consists of 2 parts
- display as "language (locale name)", when locale name consists of 1 part
ACK