Skip to content

Commit afbe887

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

85 files changed

Lines changed: 13497 additions & 10809 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.
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)