update source_build_dist.sh to rm po files of languages not included in LanguageList.qml
Closed, ResolvedPublic

Description

We need to remove .po files of languages not included in LanguageList.qml when building the source tarballs.

Now we ship all existing .po files, even incomplete ones that are not enabled in LanguageList.qml, and this has some bad side effects:

-if user config is set to system language, and the system language is one for which there is a .po file, it will use this language even if it's not in LanguageList.qml

-if user config is set to a specific language that was removed from LanguageList.qml, it will still use this language, and the language entry in the configuration menu is empty and produce a qml error

+

We need to make sure that if the locale in the config does not exist in LanguageList, it should revert to default one (en_US).