On Tue, Aug 07, 2007 at 08:26:34PM +0200, Jean-Marc Lasgouttes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > >> - Use QLocale::something. I am wary of using a different algorithm > >> than the one used by gettext. Here is query gettext to know what > >> language has been used. This seems rather robust. > > > > I seem to have difficulties to parse that. > > gettext uses some somewhat complicated algorithm to decide what the > interface language is. I would be surprised if Qt used exactly the > same on all platforms (respect the LC_ALL env. variable if set on > windows?).
Probably not. [In theory I should know...] Most notably QCoreApplication::init() call setlocale(LC_ALL, "") on Windows. But I think the Qt logic is different in any case: One explicitly asks for a specific translation (and can change that at run time without changing environement variables etc). Andre'