The approach works. It could still be discussed if this heuristic checking of language codes is a good idea -- if translation files are found for a certain locale then why bother if the locale name is correct. But that is another story.
I include a patch for apt-pkg/indexfile.cc. I suppose I will have to find another package to assign this bug to, as it does not seem to be related to "langpack-locales". Unfortunately Launchpad does not know anything called "apt-pkg", "libapt" or similar.
The approach works. It could still be discussed if this heuristic checking of language codes is a good idea -- if translation files are found for a certain locale then why bother if the locale name is correct. But that is another story.
I include a patch for apt-pkg/ indexfile. cc. I suppose I will have to find another package to assign this bug to, as it does not seem to be related to "langpack-locales". Unfortunately Launchpad does not know anything called "apt-pkg", "libapt" or similar.