Improve help file loading.
* gpgex.cc (get_lang_name): Rewrite using gettext. (start_help): Improve language detection. Remove fallback to an external URL. * main.h (gpgex_server): Add root_dir. (utf8_to_wchar): Add prototype. * main.cc (gpgex_server::root_dir): New. (get_locale_dir): Pass then instance to GetModuleFileNameW. Store the root dir. (utf8_to_wchar): New. (DllMain): Run i18n_init after debug_init.
The help file is now only loaded for on-disk files and never anymore
from a web site. The location of the help file is determined using
the installation directory of gpgex.dll. When looking for the help
file, the language with variant (e.g. "de_DE") is tried first, if that
does not exist a file with just the language tag (e.g. "de") is tried;
if that also also fails "en" is used as language tag.