/*************************************************************************** miniCashConnect Copyright © 2022 christoph holzheuer c.holzheuer@sourceworx.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. ***************************************************************************/ #include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName ( miniCash::orgName ); QCoreApplication::setOrganizationDomain( miniCash::domainName ); QCoreApplication::setApplicationName ( miniCash::appName ); QApplication application(argc, argv); /* qDebug() << " -- first"; myMutex.lock(); qDebug() << " -- second"; myfunc(); myMutex.lock(); qDebug() << " -- third"; */ QTranslator translator; QLocale locale; QStringList list = locale.uiLanguages(); for( const QString& lang : list ) qDebug() << "lang: " << lang; qDebug() << "name:" << locale.name(); //translator.load( QLocale(), QLatin1String("miniCash"), QLatin1String("_"), QLatin1String(":/i18n")); //translator.load( "miniCash_en" ); //application.installTranslator( &translator ); MCConnectMainWindow window; window.show(); return application.exec(); }