Skip to content

Commit 31a0231

Browse files
committed
fix: Update translation
Update translation pms: TASK-361719
1 parent 73c4837 commit 31a0231

86 files changed

Lines changed: 13498 additions & 10810 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.reuse/dep5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Copyright: UnionTech Software Technology Co., Ltd.
4444
License: LGPL-3.0-or-later
4545

4646
# project config files(pkla in cc)
47-
Files: dss-network-plugin/50-dss-network-plugin.rules src/dde-network-core.pc.in try-compile/networkmanagerqt.cc *.pc.in
47+
Files: dss-network-plugin/50-dss-network-plugin.rules src/dde-network-core.pc.in try-compile/networkmanagerqt.cc *.pc.in *.pkla
4848
Copyright: UnionTech Software Technology Co., Ltd.
4949
License: LGPL-3.0-or-later
5050

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1"/>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1"/>

dock-network-plugin/CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ find_package(DdeDock REQUIRED)
3939
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -O0")
4040
#endif()
4141

42-
file(GLOB TS_FILES "translations/*.ts")
43-
qt_add_translation(QM_FILES ${TS_FILES})
44-
add_custom_target(language ALL DEPENDS ${QM_FILES})
45-
4642
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
4743
add_library(${PLUGIN_NAME} SHARED ${SRCS} ../net-view/window/qrc/network.qrc)
4844
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../../dde-dock)
4945

46+
file(GLOB TS_FILES "translations/*.ts")
47+
qt_add_translations(${PLUGIN_NAME}_language
48+
TS_FILES ${TS_FILES}
49+
SOURCES ${SRCS}
50+
LUPDATE_OPTIONS -no-obsolete -no-ui-lines -locations none
51+
QM_FILES_OUTPUT_VARIABLE QM_FILES
52+
)
53+
add_custom_target(${PLUGIN_NAME}_language ALL DEPENDS ${QM_FILES})
5054
# get_target_property(KF6_QT_INCLUDE_DIRS KF6::NetworkManagerQt INTERFACE_INCLUDE_DIRECTORIES)
5155

5256
target_include_directories(${PLUGIN_NAME} PUBLIC

0 commit comments

Comments
 (0)