Prevent loading russian translation.
This commit is contained in:
parent
fb85ec4eec
commit
b21fefba3f
|
@ -238,8 +238,13 @@ void VAbstractApplication::WinAttachConsole()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VAbstractApplication::LoadTranslation(const QString &locale)
|
void VAbstractApplication::LoadTranslation(QString locale)
|
||||||
{
|
{
|
||||||
|
if (locale.startsWith(QLatin1String("ru")))
|
||||||
|
{
|
||||||
|
locale = QString();
|
||||||
|
}
|
||||||
|
|
||||||
if (locale.isEmpty())
|
if (locale.isEmpty())
|
||||||
{
|
{
|
||||||
qDebug()<<"Default locale";
|
qDebug()<<"Default locale";
|
||||||
|
|
|
@ -64,7 +64,7 @@ public:
|
||||||
|
|
||||||
static QString translationsPath(const QString &locale = QString());
|
static QString translationsPath(const QString &locale = QString());
|
||||||
|
|
||||||
void LoadTranslation(const QString &locale);
|
void LoadTranslation(QString locale);
|
||||||
|
|
||||||
virtual void OpenSettings()=0;
|
virtual void OpenSettings()=0;
|
||||||
VCommonSettings *Settings();
|
VCommonSettings *Settings();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user