plug-ins: better parse locales.
Be a little cleverer about what locale we care about in the context of the help system. Variants and encoding in particular are of no interest to us. Let's also always add a base language (like "en" for "en_GB") rather than fully trusting g_get_language_names() since it seems to return funny results on some platform. Finally check for duplicates before adding to language list.