Commit c7c53909 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Detect the system locale at startup and set the default language.

parent 7e268b02
......@@ -32,6 +32,7 @@
#include "IntroDialog.h"
#include <QApplication>
#include <QTranslator>
#include <QFile>
#include <QColor>
#include <QPalette>
......@@ -52,6 +53,10 @@ VLMCmain( int argc, char **argv )
app.setOrganizationDomain( "vlmc.org" );
app.setApplicationVersion( PROJECT_VERSION );
QTranslator appTranslator;
appTranslator.load( "vlmc_" + QLocale::system().name(), ":/ts/" );
app.installTranslator( &appTranslator );
#ifdef Q_OS_WIN
QFile css(":/styles/windows");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment