mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-18 00:38:01 +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:
@@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user