mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-13 14:29:19 +00:00
Add scaffolding for translations. (#2612)
* Fix up concat strings in favor of args, remove some translations that are not meant to be translated and add chinese. Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <QQmlEngine>
|
||||
#include <QSettings>
|
||||
#include <QString>
|
||||
#include <QTranslator>
|
||||
#include <QUrl>
|
||||
#include <Qt>
|
||||
|
||||
@@ -31,6 +32,12 @@ int main(int argc, char *argv[])
|
||||
Logger::globalInstance();
|
||||
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
QTranslator translator;
|
||||
bool success = translator.load(":/i18n/gpt4all_en.qm");
|
||||
Q_ASSERT(success);
|
||||
app.installTranslator(&translator);
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
QString llmodelSearchPaths = QCoreApplication::applicationDirPath();
|
||||
|
Reference in New Issue
Block a user