Prevent loading russian translation.

This commit is contained in:
Roman Telezhynskyi 2022-09-29 11:59:00 +03:00
parent fb85ec4eec
commit b21fefba3f
2 changed files with 7 additions and 2 deletions

View File

@ -238,8 +238,13 @@ void VAbstractApplication::WinAttachConsole()
#endif
//---------------------------------------------------------------------------------------------------------------------
void VAbstractApplication::LoadTranslation(const QString &locale)
void VAbstractApplication::LoadTranslation(QString locale)
{
if (locale.startsWith(QLatin1String("ru")))
{
locale = QString();
}
if (locale.isEmpty())
{
qDebug()<<"Default locale";

View File

@ -64,7 +64,7 @@ public:
static QString translationsPath(const QString &locale = QString());
void LoadTranslation(const QString &locale);
void LoadTranslation(QString locale);
virtual void OpenSettings()=0;
VCommonSettings *Settings();