Is there a way to select the language QTCreator uses for menu and dialogs? Mine always starts in German, but I would prefer English.
I've found no preferences where this might be changed.
Is there a way to select the language QTCreator uses for menu and dialogs? Mine always starts in German, but I would prefer English.
I've found no preferences where this might be changed.
Some time ago there was a nasty workaround mentioned: rename the translation files.
Asperamanca (9th July 2009)
Ouch...that's really nasty!
Based on what does QTCreator decide which language to run in? I have an English Windows XP installed, my Regional Settings are for my location (Austria), but the only time language is mentioned is for keyboard (yep, I have a german keyboard, but that should not affect application language), and Language for Non-Unicode-Programs (I certainly hope QTCreator is a Unicode program!)
So...how does QTCreator divine that it should really run in German?
From qlocale.cpp:
#ifndef QT_NO_SYSTEMLOCALE
static QByteArray envVarLocale()
{
static QByteArray lang = 0;
#ifdef Q_OS_UNIX
lang = qgetenv("LC_ALL");
if (lang.isNull())
lang = qgetenv("LC_NUMERIC");
if (lang.isNull())
#endif
lang = qgetenv("LANG");
return lang;
}
which means that if LC_ALL is not set then the value of LC_NUMERIC is used which is standard according to man 7 locale (which I think is a little sick because you cannot set things like number formats or monetary formats and have a different language).
.....
If the second argument to setlocale(3) is empty string, "", for the default locale, it is determined using the following steps:
1. If there is a non-null environment variable LC_ALL, the value of LC_ALL is used.
2. If an environment variable with the same name as one of the categories above exists and is non-null, its value is used for that category.
3. If there is a non-null environment variable LANG, the value of LANG is used.
....
so a workaround seems to be to set a different LC_NUMERIC value
Bookmarks