Prevent loading russian translation.
This commit is contained in:
parent
fb85ec4eec
commit
b21fefba3f
|
@ -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";
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user