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:
AT
2024-07-11 13:02:54 -04:00
committed by GitHub
parent df5d374187
commit 607ac19dcb
11 changed files with 5597 additions and 78 deletions

View File

@@ -44,9 +44,9 @@ configure_file(
)
if(LINUX)
find_package(Qt6 6.4 COMPONENTS Core Quick WaylandCompositor QuickDialogs2 Svg HttpServer Sql Pdf REQUIRED)
find_package(Qt6 6.4 COMPONENTS Core Quick WaylandCompositor QuickDialogs2 Svg HttpServer Sql Pdf LinguistTools REQUIRED)
else()
find_package(Qt6 6.4 COMPONENTS Core Quick QuickDialogs2 Svg HttpServer Sql Pdf REQUIRED)
find_package(Qt6 6.4 COMPONENTS Core Quick QuickDialogs2 Svg HttpServer Sql Pdf LinguistTools REQUIRED)
endif()
# Get the Qt6Core target properties
@@ -226,6 +226,10 @@ qt_add_qml_module(chat
icons/you.svg
)
qt_add_translations(chat
TS_FILES ${CMAKE_SOURCE_DIR}/translations/gpt4all_en.ts
)
set_target_properties(chat PROPERTIES
WIN32_EXECUTABLE TRUE
)