1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

Set the qtsparkle language on startup

This commit is contained in:
David Sansome 2012-08-08 19:16:23 +01:00
parent 0943b66da2
commit 1fe1a9def3

View File

@ -96,6 +96,10 @@ using boost::scoped_ptr;
const QDBusArgument& operator>> (const QDBusArgument& arg, QImage& image);
#endif
#ifdef Q_OS_WIN32
# include <qtsparkle/Updater>
#endif
// Load sqlite plugin on windows and mac.
#ifdef HAVE_STATIC_SQLITE
# include <QtPlugin>
@ -381,6 +385,11 @@ int main(int argc, char *argv[]) {
LoadTranslation("clementine", a.applicationDirPath(), language);
LoadTranslation("clementine", QDir::currentPath(), language);
#ifdef Q_OS_WIN32
// Set the language for qtsparkle
qtsparkle::LoadTranslations(language);
#endif
// Icons
IconLoader::Init();