Mercurial > hg > sonic-visualiser
diff main/main.cpp @ 658:86d1f640ae1e
Add choice of interface language to the prefs dialog (in case user is unhappy with system locale)
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 10:35:55 +0000 |
parents | 6d8a76bd91a7 |
children | 17fe7e0c23a1 |
line wrap: on
line diff
--- a/main/main.cpp Thu Nov 21 17:05:03 2013 +0000 +++ b/main/main.cpp Tue Nov 26 10:35:55 2013 +0000 @@ -317,6 +317,10 @@ QString language = QLocale::system().name(); + settings.beginGroup("Preferences"); + language = settings.value("locale", language).toString(); + settings.endGroup(); + QTranslator qtTranslator; QString qtTrName = QString("qt_%1").arg(language); SVDEBUG << "Loading " << qtTrName << "... ";