mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 20:32:05 +08:00
feat: adapt to Qt6
adapt to Qt6; fix a few bugs Log: adapt to Qt6; bump version to 4.2.14
This commit is contained in:
19
translations/CMakeLists.txt
Normal file
19
translations/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
# Have to disable cleaning for this folder because cmake deletes .ts files upon clean
|
||||
# Not sure what else wont clean up / dirty workaround of Qt bug
|
||||
# @ref https://bugreports.qt.io/browse/QTBUG-41736
|
||||
# @ref https://stackoverflow.com/a/24245615/1917249
|
||||
set_directory_properties(PROPERTIES CLEAN_NO_CUSTOM TRUE)
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS LinguistTools)
|
||||
|
||||
# Update ts files and release qm files only in Release build
|
||||
file(GLOB TS_FILES "*.ts")
|
||||
if (NOT ${CMAKE_BUILD_TYPE} MATCHES "Debug")
|
||||
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
qt6_create_translation(QM_FILES ${CMAKE_SOURCE_DIR}/src ${TS_FILES} OPTIONS -no-obsolete)
|
||||
# https://stackoverflow.com/questions/70665191/cmake-does-not-generate-ts-files
|
||||
add_custom_target(${PROJECT_NAME}_translations DEPENDS ${TS_FILES} ${QM_FILES})
|
||||
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_translations)
|
||||
endif ()
|
||||
|
||||
install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/translations)
|
||||
@@ -269,12 +269,12 @@
|
||||
<context>
|
||||
<name>DAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="142"/>
|
||||
<location filename="../src/application.cpp" line="141"/>
|
||||
<source>Version: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="152"/>
|
||||
<location filename="../src/application.cpp" line="151"/>
|
||||
<source>%1 is released under %2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@@ -515,19 +515,19 @@
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="35"/>
|
||||
<location filename="../src/application.cpp" line="36"/>
|
||||
<location filename="../src/application.cpp" line="37"/>
|
||||
<location filename="../src/mainwindow-dtk.cpp" line="126"/>
|
||||
<source>Spark Store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="41"/>
|
||||
<location filename="../src/application.cpp" line="40"/>
|
||||
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="149"/>
|
||||
<location filename="../src/application.cpp" line="148"/>
|
||||
<source>Spark Project</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
||||
@@ -236,22 +236,6 @@
|
||||
<source>The current application does not support or tested on current platform, there may be problems</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support deepin, there may be problems</source>
|
||||
<translation type="vanished">La aplicación actual no admite deepin, puede haber problemas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support UOS, there may be problems</source>
|
||||
<translation type="vanished">La aplicación actual no admite uos, puede haber problemas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support Ubuntu, there may be problems</source>
|
||||
<translation type="vanished">La aplicación actual no admite ubuntu, puede haber problemas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support current platform, there may be problems</source>
|
||||
<translation type="vanished">La aplicación actual no admite la Plataforma actual, puede haber problemas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/pages/appintopage.cpp" line="521"/>
|
||||
<location filename="../src/pages/appintopage.cpp" line="536"/>
|
||||
@@ -285,12 +269,12 @@
|
||||
<context>
|
||||
<name>DAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="142"/>
|
||||
<location filename="../src/application.cpp" line="141"/>
|
||||
<source>Version: %1</source>
|
||||
<translation>Versión %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="152"/>
|
||||
<location filename="../src/application.cpp" line="151"/>
|
||||
<source>%1 is released under %2</source>
|
||||
<translation>%1 publicado bajo %2</translation>
|
||||
</message>
|
||||
@@ -531,19 +515,19 @@
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="35"/>
|
||||
<location filename="../src/application.cpp" line="36"/>
|
||||
<location filename="../src/application.cpp" line="37"/>
|
||||
<location filename="../src/mainwindow-dtk.cpp" line="126"/>
|
||||
<source>Spark Store</source>
|
||||
<translation>SPARK Store</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="41"/>
|
||||
<location filename="../src/application.cpp" line="40"/>
|
||||
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></source>
|
||||
<translation><span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="149"/>
|
||||
<location filename="../src/application.cpp" line="148"/>
|
||||
<source>Spark Project</source>
|
||||
<translation>Proyecto spark</translation>
|
||||
</message>
|
||||
|
||||
@@ -236,22 +236,6 @@
|
||||
<source>The current application does not support or tested on current platform, there may be problems</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support deepin, there may be problems</source>
|
||||
<translation type="vanished">L'application actuelle ne supporte pas deepin, il peut y avoir un problème</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support UOS, there may be problems</source>
|
||||
<translation type="vanished">L'application actuelle ne prend pas en charge uos, il peut y avoir un problème</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support Ubuntu, there may be problems</source>
|
||||
<translation type="vanished">L'application actuelle ne supporte pas Ubuntu, il peut y avoir un problème</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support current platform, there may be problems</source>
|
||||
<translation type="vanished">L'application actuelle ne prend pas en charge la plate - forme actuelle, il peut y avoir un problème</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/pages/appintopage.cpp" line="521"/>
|
||||
<location filename="../src/pages/appintopage.cpp" line="536"/>
|
||||
@@ -285,12 +269,12 @@
|
||||
<context>
|
||||
<name>DAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="142"/>
|
||||
<location filename="../src/application.cpp" line="141"/>
|
||||
<source>Version: %1</source>
|
||||
<translation>Version: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="152"/>
|
||||
<location filename="../src/application.cpp" line="151"/>
|
||||
<source>%1 is released under %2</source>
|
||||
<translation>%1 publié sous %2</translation>
|
||||
</message>
|
||||
@@ -531,19 +515,19 @@
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="35"/>
|
||||
<location filename="../src/application.cpp" line="36"/>
|
||||
<location filename="../src/application.cpp" line="37"/>
|
||||
<location filename="../src/mainwindow-dtk.cpp" line="126"/>
|
||||
<source>Spark Store</source>
|
||||
<translation>Le Spark store</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="41"/>
|
||||
<location filename="../src/application.cpp" line="40"/>
|
||||
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></source>
|
||||
<translation><span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="149"/>
|
||||
<location filename="../src/application.cpp" line="148"/>
|
||||
<source>Spark Project</source>
|
||||
<translation>Le projet Spark</translation>
|
||||
</message>
|
||||
|
||||
@@ -236,22 +236,6 @@
|
||||
<source>The current application does not support or tested on current platform, there may be problems</source>
|
||||
<translation>当前应用不支持或未在您的平台上测试过,安装后可能会出现问题</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support deepin, there may be problems</source>
|
||||
<translation type="vanished">当前应用不支持deepin,安装后可能会出现问题</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support UOS, there may be problems</source>
|
||||
<translation type="vanished">当前应用不支持UOS,安装后可能会出现问题</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support Ubuntu, there may be problems</source>
|
||||
<translation type="vanished">当前应用不支持Ubuntu,安装后可能会出现问题</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The current application does not support current platform, there may be problems</source>
|
||||
<translation type="vanished">当前应用不支持平台,安装后可能会出现问题</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/pages/appintopage.cpp" line="521"/>
|
||||
<location filename="../src/pages/appintopage.cpp" line="536"/>
|
||||
@@ -285,12 +269,12 @@
|
||||
<context>
|
||||
<name>DAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="142"/>
|
||||
<location filename="../src/application.cpp" line="141"/>
|
||||
<source>Version: %1</source>
|
||||
<translation>版本:%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="152"/>
|
||||
<location filename="../src/application.cpp" line="151"/>
|
||||
<source>%1 is released under %2</source>
|
||||
<translation>%1遵循%2协议发布</translation>
|
||||
</message>
|
||||
@@ -531,19 +515,19 @@
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="35"/>
|
||||
<location filename="../src/application.cpp" line="36"/>
|
||||
<location filename="../src/application.cpp" line="37"/>
|
||||
<location filename="../src/mainwindow-dtk.cpp" line="126"/>
|
||||
<source>Spark Store</source>
|
||||
<translation>星火应用商店</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="41"/>
|
||||
<location filename="../src/application.cpp" line="40"/>
|
||||
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></source>
|
||||
<translation><span style=' font-size:10pt;font-weight:60;'>一款由社区提供的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>星火计划开发者</span></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="149"/>
|
||||
<location filename="../src/application.cpp" line="148"/>
|
||||
<source>Spark Project</source>
|
||||
<translation>星火计划</translation>
|
||||
</message>
|
||||
|
||||
@@ -269,12 +269,12 @@
|
||||
<context>
|
||||
<name>DAboutDialog</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="142"/>
|
||||
<location filename="../src/application.cpp" line="141"/>
|
||||
<source>Version: %1</source>
|
||||
<translation>版本:%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="152"/>
|
||||
<location filename="../src/application.cpp" line="151"/>
|
||||
<source>%1 is released under %2</source>
|
||||
<translation>%1遵循%2协议发布</translation>
|
||||
</message>
|
||||
@@ -515,19 +515,19 @@
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="35"/>
|
||||
<location filename="../src/application.cpp" line="36"/>
|
||||
<location filename="../src/application.cpp" line="37"/>
|
||||
<location filename="../src/mainwindow-dtk.cpp" line="126"/>
|
||||
<source>Spark Store</source>
|
||||
<translation>星火应用商店</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="41"/>
|
||||
<location filename="../src/application.cpp" line="40"/>
|
||||
<source><span style=' font-size:10pt;font-weight:60;'>An appstore powered by community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>Spark developers</span></source>
|
||||
<translation><span style=' font-size:10pt;font-weight:60;'>一款由社区提供的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style=' font-size:12pt;'>星火计划开发者</span></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/application.cpp" line="149"/>
|
||||
<location filename="../src/application.cpp" line="148"/>
|
||||
<source>Spark Project</source>
|
||||
<translation>星火计划</translation>
|
||||
</message>
|
||||
|
||||
Reference in New Issue
Block a user