diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4cc8e6dce..78ab4f9e6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,6 +43,7 @@ set(DDE_SHELL_PLUGIN_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/dde-shell CACHE STRING
set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/dde-shell" CACHE STRING "Headers install path")
set(CONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/DDEShell" CACHE STRING "CMake config file install directory")
set(QML_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/qt${QT_VERSION_MAJOR}/qml" CACHE STRING "Qml plugin install directory")
+set(DDE_SHELL_TRANSLATION_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/dde-shell" CACHE STRING "Translation install directory")
# avoid warning when `D_APPLET_CLASS` used in .cpp
set(CMAKE_AUTOMOC_MACRO_NAMES "D_APPLET_CLASS")
@@ -50,7 +51,7 @@ find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH};${ECM_MODULE_PATH};${PROJECT_SOURCE_DIR}/cmake")
include(DDEShellPackageMacros)
-find_package(Qt${QT_VERSION_MAJOR} ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Core Gui Concurrent Quick WaylandClient DBus)
+find_package(Qt${QT_VERSION_MAJOR} ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Core Gui Concurrent Quick WaylandClient DBus LinguistTools)
find_package(Dtk${DTK_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui)
find_package(WaylandProtocols REQUIRED)
find_package(PkgConfig REQUIRED)
diff --git a/cmake/DDEShellPackageMacros.cmake b/cmake/DDEShellPackageMacros.cmake
index 5d87abd47..8ffb2eefa 100644
--- a/cmake/DDEShellPackageMacros.cmake
+++ b/cmake/DDEShellPackageMacros.cmake
@@ -34,3 +34,54 @@ function(ds_install_package)
install(TARGETS ${_config_TARGET} DESTINATION ${DDE_SHELL_PLUGIN_INSTALL_DIR}/)
endif()
endfunction()
+
+function(ds_handle_package_translation)
+ set(oneValueArgs PACKAGE)
+ set(multiValueArgs QML_FILES SOURCE_FILES )
+ cmake_parse_arguments(_config "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
+
+ if(NOT _config_QML_FILES)
+ file(GLOB_RECURSE _config_QML_FILES ${CMAKE_CURRENT_SOURCE_DIR}/package/*.qml)
+ file(GLOB additional_QML_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.qml)
+ list(APPEND _config_QML_FILES ${additional_QML_FILES})
+ endif()
+
+ if(NOT _config_SOURCE_FILES)
+ file(GLOB _config_SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
+ endif()
+
+ set(TRANSLATION_FILES
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_az.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_bo.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_ca.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_es.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_fi.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_fr.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_hu.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_it.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_ja.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_ko.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_nb_NO.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_pl.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_pt_BR.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_ru.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_uk.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_zh_CN.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_zh_HK.ts
+ ${CMAKE_CURRENT_SOURCE_DIR}/translations/${_config_PACKAGE}_zh_TW.ts
+ )
+
+ add_custom_target(${_config_PACKAGE}_translation ALL
+ SOURCES ${TRANSLATION_FILES}
+ )
+
+ qt_add_translations(${_config_PACKAGE}_translation
+ TS_FILES ${TRANSLATION_FILES}
+ SOURCES ${_config_QML_FILES} ${_config_SOURCE_FILES}
+ QM_FILES_OUTPUT_VARIABLE TRANSLATED_FILES
+ )
+
+ # /usr/share/dde-shell/org.deepin.xxx/translations/org.deepin.xxx.qm
+ install(FILES ${TRANSLATED_FILES} DESTINATION ${DDE_SHELL_TRANSLATION_INSTALL_DIR}/${_config_PACKAGE}/translations)
+endfunction()
\ No newline at end of file
diff --git a/debian/dde-shell.install b/debian/dde-shell.install
index f5da40fcc..adec6b756 100644
--- a/debian/dde-shell.install
+++ b/debian/dde-shell.install
@@ -14,4 +14,5 @@ usr/lib/*/libdde-dockplugin-interface.so.*
usr/share/dsg/configs/org.deepin.ds.dock/
usr/lib/dde-dock/tmp/plugins
usr/lib/dde-dock/tmp/plugins/quick-trays
-usr/share/dde-dock/tmp/translations
\ No newline at end of file
+usr/share/dde-dock/tmp/translations
+usr/share/dde-shell/*/translations
diff --git a/misc/DDEShellConfig.cmake.in b/misc/DDEShellConfig.cmake.in
index 6e3e293a9..e28cc2f44 100644
--- a/misc/DDEShellConfig.cmake.in
+++ b/misc/DDEShellConfig.cmake.in
@@ -7,6 +7,7 @@ find_package(Qt@QT_VERSION_MAJOR@ COMPONENTS Qml Quick REQUIRED)
include(${CMAKE_CURRENT_LIST_DIR}/DDEShellTargets.cmake)
set(DDE_SHELL_PACKAGE_INSTALL_DIR @CMAKE_INSTALL_PREFIX@/@DDE_SHELL_PACKAGE_INSTALL_DIR@)
set(DDE_SHELL_PLUGIN_INSTALL_DIR @CMAKE_INSTALL_PREFIX@/@DDE_SHELL_PLUGIN_INSTALL_DIR@)
+set(DDE_SHELL_TRANSLATION_INSTALL_DIR @CMAKE_INSTALL_PREFIX@/@DDE_SHELL_TRANSLATION_INSTALL_DIR@)
check_required_components(Dtk@DTK_VERSION_MAJOR@Core)
include("${CMAKE_CURRENT_LIST_DIR}/DDEShellPackageMacros.cmake")
diff --git a/panels/dock/CMakeLists.txt b/panels/dock/CMakeLists.txt
index 9b1a265dc..5bbf8a05c 100644
--- a/panels/dock/CMakeLists.txt
+++ b/panels/dock/CMakeLists.txt
@@ -76,6 +76,7 @@ if (BUILD_WITH_X11)
endif(BUILD_WITH_X11)
ds_install_package(PACKAGE org.deepin.ds.dock TARGET dockpanel)
+ds_handle_package_translation(PACKAGE org.deepin.ds.dock)
# sub plugins
add_subdirectory(clipboarditem)
diff --git a/panels/dock/clipboarditem/CMakeLists.txt b/panels/dock/clipboarditem/CMakeLists.txt
index 7f36a60da..eb8e98a0e 100644
--- a/panels/dock/clipboarditem/CMakeLists.txt
+++ b/panels/dock/clipboarditem/CMakeLists.txt
@@ -14,3 +14,4 @@ target_link_libraries(dock-clipboarditem PRIVATE
)
ds_install_package(PACKAGE org.deepin.ds.dock.clipboarditem TARGET dock-clipboarditem)
+ds_handle_package_translation(PACKAGE org.deepin.ds.dock.clipboarditem)
\ No newline at end of file
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_az.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_az.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_az.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_bo.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_bo.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_bo.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ca.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ca.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ca.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_es.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_es.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_es.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_fi.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_fi.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_fi.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_fr.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_fr.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_fr.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_hu.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_hu.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_hu.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_it.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_it.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_it.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ja.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ja.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ja.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ko.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ko.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ko.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_nb_NO.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_nb_NO.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_nb_NO.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_pl.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_pl.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_pl.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_pt_BR.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_pt_BR.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_pt_BR.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ru.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ru.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_ru.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_uk.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_uk.ts
new file mode 100644
index 000000000..2dd30e6ae
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_uk.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_CN.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_CN.ts
new file mode 100644
index 000000000..7525f97ec
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_CN.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+ 剪切板
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_HK.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_HK.ts
new file mode 100644
index 000000000..76148ca95
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_HK.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+ 剪切闆
+
+
+
diff --git a/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_TW.ts b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_TW.ts
new file mode 100644
index 000000000..406b6f554
--- /dev/null
+++ b/panels/dock/clipboarditem/translations/org.deepin.ds.dock.clipboarditem_zh_TW.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::ClipboardItem
+
+
+ Clipboard
+ 剪切闆
+
+
+
diff --git a/panels/dock/searchitem/CMakeLists.txt b/panels/dock/searchitem/CMakeLists.txt
index 960b85018..eaedb74e4 100644
--- a/panels/dock/searchitem/CMakeLists.txt
+++ b/panels/dock/searchitem/CMakeLists.txt
@@ -14,3 +14,4 @@ target_link_libraries(dock-searchitem PRIVATE
)
ds_install_package(PACKAGE org.deepin.ds.dock.searchitem TARGET dock-searchitem)
+ds_handle_package_translation(PACKAGE org.deepin.ds.dock.searchitem)
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_az.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_az.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_az.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_bo.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_bo.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_bo.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ca.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ca.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ca.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_es.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_es.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_es.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_fi.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_fi.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_fi.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_fr.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_fr.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_fr.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_hu.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_hu.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_hu.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_it.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_it.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_it.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ja.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ja.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ja.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ko.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ko.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ko.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_nb_NO.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_nb_NO.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_nb_NO.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_pl.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_pl.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_pl.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_pt_BR.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_pt_BR.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_pt_BR.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ru.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ru.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_ru.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_uk.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_uk.ts
new file mode 100644
index 000000000..8e3b24efb
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_uk.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_CN.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_CN.ts
new file mode 100644
index 000000000..a48f0d070
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_CN.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+ 全局搜索
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_HK.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_HK.ts
new file mode 100644
index 000000000..3746d4507
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_HK.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+ 全局搜索
+
+
+
diff --git a/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_TW.ts b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_TW.ts
new file mode 100644
index 000000000..73d86270d
--- /dev/null
+++ b/panels/dock/searchitem/translations/org.deepin.ds.dock.searchitem_zh_TW.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ dock::SearchItem
+
+
+ GrandSearch
+ 全局搜索
+
+
+
diff --git a/panels/dock/taskmanager/CMakeLists.txt b/panels/dock/taskmanager/CMakeLists.txt
index 6f7693c6b..67f8560ed 100644
--- a/panels/dock/taskmanager/CMakeLists.txt
+++ b/panels/dock/taskmanager/CMakeLists.txt
@@ -108,3 +108,4 @@ endif(BUILD_WITH_X11)
ds_install_package(PACKAGE org.deepin.ds.dock.taskmanager TARGET dock-taskmanager)
dtk_add_config_meta_files(APPID org.deepin.ds.dock FILES dconfig/org.deepin.ds.dock.taskmanager.json)
+ds_handle_package_translation(PACKAGE org.deepin.ds.dock.taskmanager)
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_az.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_az.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_az.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_bo.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_bo.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_bo.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ca.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ca.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ca.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_es.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_es.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_es.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_fi.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_fi.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_fi.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_fr.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_fr.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_fr.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_hu.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_hu.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_hu.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_it.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_it.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_it.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ja.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ja.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ja.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ko.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ko.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ko.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_nb_NO.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_nb_NO.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_nb_NO.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_pl.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_pl.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_pl.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_pt_BR.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_pt_BR.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_pt_BR.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ru.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ru.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_ru.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_uk.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_uk.ts
new file mode 100644
index 000000000..fb59d9517
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_uk.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+
+
+
+
+ All Windows
+
+
+
+
+ Undock
+
+
+
+
+ Dock
+
+
+
+
+ Force Quit
+
+
+
+
+ Close All
+
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_CN.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_CN.ts
new file mode 100644
index 000000000..0953b5e99
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_CN.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+ 打开
+
+
+
+ All Windows
+ 所有窗口
+
+
+
+ Undock
+ 移除驻留
+
+
+
+ Dock
+ 驻留
+
+
+
+ Force Quit
+ 强制退出
+
+
+
+ Close All
+ 关闭所有
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_HK.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_HK.ts
new file mode 100644
index 000000000..1a08e03fa
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_HK.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+ 打開
+
+
+
+ All Windows
+ 所有窗口
+
+
+
+ Undock
+ 移除駐留
+
+
+
+ Dock
+ 駐留
+
+
+
+ Force Quit
+ 強制退出
+
+
+
+ Close All
+ 關閉所有
+
+
+
diff --git a/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_TW.ts b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_TW.ts
new file mode 100644
index 000000000..069df7594
--- /dev/null
+++ b/panels/dock/taskmanager/translations/org.deepin.ds.dock.taskmanager_zh_TW.ts
@@ -0,0 +1,37 @@
+
+
+
+
+ dock::AppItem
+
+
+ Open
+ 打開
+
+
+
+ All Windows
+ 所有窗口
+
+
+
+ Undock
+ 移除駐留
+
+
+
+ Dock
+ 駐留
+
+
+
+ Force Quit
+ 強制退出
+
+
+
+ Close All
+ 關閉所有
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock.ts b/panels/dock/translations/org.deepin.ds.dock.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_az.ts b/panels/dock/translations/org.deepin.ds.dock_az.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_az.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_bo.ts b/panels/dock/translations/org.deepin.ds.dock_bo.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_bo.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_ca.ts b/panels/dock/translations/org.deepin.ds.dock_ca.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_ca.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_es.ts b/panels/dock/translations/org.deepin.ds.dock_es.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_es.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_fi.ts b/panels/dock/translations/org.deepin.ds.dock_fi.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_fi.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_fr.ts b/panels/dock/translations/org.deepin.ds.dock_fr.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_fr.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_hu.ts b/panels/dock/translations/org.deepin.ds.dock_hu.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_hu.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_it.ts b/panels/dock/translations/org.deepin.ds.dock_it.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_it.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_ja.ts b/panels/dock/translations/org.deepin.ds.dock_ja.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_ja.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_ko.ts b/panels/dock/translations/org.deepin.ds.dock_ko.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_ko.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_nb_NO.ts b/panels/dock/translations/org.deepin.ds.dock_nb_NO.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_nb_NO.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_pl.ts b/panels/dock/translations/org.deepin.ds.dock_pl.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_pl.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_pt_BR.ts b/panels/dock/translations/org.deepin.ds.dock_pt_BR.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_pt_BR.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_ru.ts b/panels/dock/translations/org.deepin.ds.dock_ru.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_ru.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_uk.ts b/panels/dock/translations/org.deepin.ds.dock_uk.ts
new file mode 100644
index 000000000..d6dcf7aa5
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_uk.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+
+
+
+
+ Fashion Mode
+
+
+
+
+ Efficient Mode
+
+
+
+
+ Item Alignment
+
+
+
+
+
+ Left
+
+
+
+
+ Center
+
+
+
+
+ Position
+
+
+
+
+ Top
+
+
+
+
+ Bottom
+
+
+
+
+ Right
+
+
+
+
+ Status
+
+
+
+
+ Keep Shown
+
+
+
+
+ Keep Hidden
+
+
+
+
+ Smart Hide
+
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_zh_CN.ts b/panels/dock/translations/org.deepin.ds.dock_zh_CN.ts
new file mode 100644
index 000000000..812acaf71
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_zh_CN.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+ 指示器样式
+
+
+
+ Fashion Mode
+ 时尚模式
+
+
+
+ Efficient Mode
+ 高效模式
+
+
+
+ Item Alignment
+ 对齐方式
+
+
+
+
+ Left
+ 左
+
+
+
+ Center
+ 居中
+
+
+
+ Position
+ 位置
+
+
+
+ Top
+ 顶部
+
+
+
+ Bottom
+ 底部
+
+
+
+ Right
+ 右
+
+
+
+ Status
+ 状态
+
+
+
+ Keep Shown
+ 一直显示
+
+
+
+ Keep Hidden
+ 一直隐藏
+
+
+
+ Smart Hide
+ 智能隐藏
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_zh_HK.ts b/panels/dock/translations/org.deepin.ds.dock_zh_HK.ts
new file mode 100644
index 000000000..4d4dd782a
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_zh_HK.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+ 指示器樣式
+
+
+
+ Fashion Mode
+ 時尚模式
+
+
+
+ Efficient Mode
+ 高效模式
+
+
+
+ Item Alignment
+ 對齊方式
+
+
+
+
+ Left
+ 左
+
+
+
+ Center
+ 居中
+
+
+
+ Position
+ 位置
+
+
+
+ Top
+ 頂部
+
+
+
+ Bottom
+ 底部
+
+
+
+ Right
+ 右
+
+
+
+ Status
+ 狀態
+
+
+
+ Keep Shown
+ 壹直顯示
+
+
+
+ Keep Hidden
+ 壹直隱藏
+
+
+
+ Smart Hide
+ 智能隱藏
+
+
+
diff --git a/panels/dock/translations/org.deepin.ds.dock_zh_TW.ts b/panels/dock/translations/org.deepin.ds.dock_zh_TW.ts
new file mode 100644
index 000000000..d8c6d0d25
--- /dev/null
+++ b/panels/dock/translations/org.deepin.ds.dock_zh_TW.ts
@@ -0,0 +1,78 @@
+
+
+
+
+ main
+
+
+ Indicator Style
+ 指示器樣式
+
+
+
+ Fashion Mode
+ 時尚模式
+
+
+
+ Efficient Mode
+ 高效模式
+
+
+
+ Item Alignment
+ 對齊方式
+
+
+
+
+ Left
+ 左
+
+
+
+ Center
+ 居中
+
+
+
+ Position
+ 位置
+
+
+
+ Top
+ 頂部
+
+
+
+ Bottom
+ 底部
+
+
+
+ Right
+ 右
+
+
+
+ Status
+ 狀態
+
+
+
+ Keep Shown
+ 壹直顯示
+
+
+
+ Keep Hidden
+ 壹直隱藏
+
+
+
+ Smart Hide
+ 智能隱藏
+
+
+
diff --git a/panels/notification/CMakeLists.txt b/panels/notification/CMakeLists.txt
index 76bccf0f4..e13ecae3d 100644
--- a/panels/notification/CMakeLists.txt
+++ b/panels/notification/CMakeLists.txt
@@ -18,3 +18,4 @@ target_link_libraries(notificationpanel PRIVATE
)
ds_install_package(PACKAGE org.deepin.ds.notification TARGET notificationpanel)
+ds_handle_package_translation(PACKAGE org.deepin.ds.notification)
diff --git a/panels/notification/translations/org.deepin.ds.notification.ts b/panels/notification/translations/org.deepin.ds.notification.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_az.ts b/panels/notification/translations/org.deepin.ds.notification_az.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_az.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_bo.ts b/panels/notification/translations/org.deepin.ds.notification_bo.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_bo.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_ca.ts b/panels/notification/translations/org.deepin.ds.notification_ca.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_ca.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_es.ts b/panels/notification/translations/org.deepin.ds.notification_es.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_es.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_fi.ts b/panels/notification/translations/org.deepin.ds.notification_fi.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_fi.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_fr.ts b/panels/notification/translations/org.deepin.ds.notification_fr.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_fr.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_hu.ts b/panels/notification/translations/org.deepin.ds.notification_hu.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_hu.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_it.ts b/panels/notification/translations/org.deepin.ds.notification_it.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_it.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_ja.ts b/panels/notification/translations/org.deepin.ds.notification_ja.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_ja.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_ko.ts b/panels/notification/translations/org.deepin.ds.notification_ko.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_ko.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_nb_NO.ts b/panels/notification/translations/org.deepin.ds.notification_nb_NO.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_nb_NO.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_pl.ts b/panels/notification/translations/org.deepin.ds.notification_pl.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_pl.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_pt_BR.ts b/panels/notification/translations/org.deepin.ds.notification_pt_BR.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_pt_BR.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_ru.ts b/panels/notification/translations/org.deepin.ds.notification_ru.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_ru.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_uk.ts b/panels/notification/translations/org.deepin.ds.notification_uk.ts
new file mode 100644
index 000000000..cd9391072
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_uk.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_zh_CN.ts b/panels/notification/translations/org.deepin.ds.notification_zh_CN.ts
new file mode 100644
index 000000000..3b6015249
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_zh_CN.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+ 一条新消息
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_zh_HK.ts b/panels/notification/translations/org.deepin.ds.notification_zh_HK.ts
new file mode 100644
index 000000000..38fa1100e
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_zh_HK.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+ 壹條新消息
+
+
+
diff --git a/panels/notification/translations/org.deepin.ds.notification_zh_TW.ts b/panels/notification/translations/org.deepin.ds.notification_zh_TW.ts
new file mode 100644
index 000000000..661173d47
--- /dev/null
+++ b/panels/notification/translations/org.deepin.ds.notification_zh_TW.ts
@@ -0,0 +1,12 @@
+
+
+
+
+ notification::BubbleItem
+
+
+ 1 new message
+ 壹條新消息
+
+
+
diff --git a/panels/osd/default/CMakeLists.txt b/panels/osd/default/CMakeLists.txt
index bfddba3c9..113739a48 100644
--- a/panels/osd/default/CMakeLists.txt
+++ b/panels/osd/default/CMakeLists.txt
@@ -10,3 +10,4 @@ target_link_libraries(osd-default PRIVATE
)
ds_install_package(PACKAGE org.deepin.ds.osd.default)
+ds_handle_package_translation(PACKAGE org.deepin.ds.osd.default)
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default.ts b/panels/osd/default/translations/org.deepin.ds.osd.default.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_az.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_az.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_az.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_bo.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_bo.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_bo.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_ca.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_ca.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_ca.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_es.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_es.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_es.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_fi.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_fi.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_fi.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_fr.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_fr.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_fr.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_hu.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_hu.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_hu.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_it.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_it.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_it.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_ja.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_ja.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_ja.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_ko.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_ko.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_ko.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_nb_NO.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_nb_NO.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_nb_NO.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_pl.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_pl.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_pl.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_pt_BR.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_pt_BR.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_pt_BR.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_ru.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_ru.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_ru.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_uk.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_uk.ts
new file mode 100644
index 000000000..0192fae1a
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_uk.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+
+
+
+
+ WLAN off
+
+
+
+
+ Caps Lock on
+
+
+
+
+ Caps Lock off
+
+
+
+
+ Numeric keypad on
+
+
+
+
+ Numeric keypad off
+
+
+
+
+ Touchpad on
+
+
+
+
+ Touchpad off
+
+
+
+
+ Touchpad toggle
+
+
+
+
+ Fn toggle
+
+
+
+
+ Airplane mode on
+
+
+
+
+ Airplane mode off
+
+
+
+
+ Mute on
+
+
+
+
+ Mute off
+
+
+
+
+ Balanced power
+
+
+
+
+ Power saver
+
+
+
+
+ High performance
+
+
+
+
+ Window effect enabled
+
+
+
+
+ Window effect disabled
+
+
+
+
+ Failed to enable window effects
+
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_zh_CN.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_zh_CN.ts
new file mode 100644
index 000000000..47889975c
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_zh_CN.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+ 打开wifi
+
+
+
+ WLAN off
+ 关闭wifi
+
+
+
+ Caps Lock on
+ 大写
+
+
+
+ Caps Lock off
+ 小写
+
+
+
+ Numeric keypad on
+ 打开数字键盘
+
+
+
+ Numeric keypad off
+ 关闭数字键盘
+
+
+
+ Touchpad on
+ 打开触控板
+
+
+
+ Touchpad off
+ 关闭触控板
+
+
+
+ Touchpad toggle
+ 触摸板切换
+
+
+
+ Fn toggle
+ Fn切换
+
+
+
+ Airplane mode on
+ 打开飞行模式
+
+
+
+ Airplane mode off
+ 关闭飞行模式
+
+
+
+ Mute on
+ 开启静音
+
+
+
+ Mute off
+ 关闭静音
+
+
+
+ Balanced power
+ 平衡模式
+
+
+
+ Power saver
+ 省电模式
+
+
+
+ High performance
+ 性能模式
+
+
+
+ Window effect enabled
+ 开启窗口特效
+
+
+
+ Window effect disabled
+ 关闭窗口特效
+
+
+
+ Failed to enable window effects
+ 打开窗口特效失败
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_zh_HK.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_zh_HK.ts
new file mode 100644
index 000000000..a71eee845
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_zh_HK.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+ 打開wifi
+
+
+
+ WLAN off
+ 關閉wifi
+
+
+
+ Caps Lock on
+ 大寫
+
+
+
+ Caps Lock off
+ 小寫
+
+
+
+ Numeric keypad on
+ 打開數字鍵盤
+
+
+
+ Numeric keypad off
+ 關閉數字鍵盤
+
+
+
+ Touchpad on
+ 打開觸控板
+
+
+
+ Touchpad off
+ 關閉觸控板
+
+
+
+ Touchpad toggle
+ 觸控板切換
+
+
+
+ Fn toggle
+ Fn切換
+
+
+
+ Airplane mode on
+ 開啟飛航模式
+
+
+
+ Airplane mode off
+ 關閉飛航模式
+
+
+
+ Mute on
+ 開啟靜音
+
+
+
+ Mute off
+ 關閉靜音
+
+
+
+ Balanced power
+ 平衡模式
+
+
+
+ Power saver
+ 省電模式
+
+
+
+ High performance
+ 高性能模式
+
+
+
+ Window effect enabled
+ 打開窗口特效
+
+
+
+ Window effect disabled
+ 關閉窗口特效
+
+
+
+ Failed to enable window effects
+ 打開窗口特效失敗
+
+
+
diff --git a/panels/osd/default/translations/org.deepin.ds.osd.default_zh_TW.ts b/panels/osd/default/translations/org.deepin.ds.osd.default_zh_TW.ts
new file mode 100644
index 000000000..eecec5f99
--- /dev/null
+++ b/panels/osd/default/translations/org.deepin.ds.osd.default_zh_TW.ts
@@ -0,0 +1,107 @@
+
+
+
+
+ main
+
+
+ WLAN on
+ 打開wifi
+
+
+
+ WLAN off
+ 關閉wifi
+
+
+
+ Caps Lock on
+ 大寫
+
+
+
+ Caps Lock off
+ 小寫
+
+
+
+ Numeric keypad on
+ 打開數字鍵盤
+
+
+
+ Numeric keypad off
+ 關閉數字鍵盤
+
+
+
+ Touchpad on
+ 打開觸控板
+
+
+
+ Touchpad off
+ 關閉觸控板
+
+
+
+ Touchpad toggle
+ 觸控板切換
+
+
+
+ Fn toggle
+ Fn切換
+
+
+
+ Airplane mode on
+ 開啟飛航模式
+
+
+
+ Airplane mode off
+ 關閉飛航模式
+
+
+
+ Mute on
+ 開啟靜音
+
+
+
+ Mute off
+ 關閉靜音
+
+
+
+ Balanced power
+ 平衡模式
+
+
+
+ Power saver
+ 省電模式
+
+
+
+ High performance
+ 高性能模式
+
+
+
+ Window effect enabled
+ 打開窗口特效
+
+
+
+ Window effect disabled
+ 關閉窗口特效
+
+
+
+ Failed to enable window effects
+ 打開窗口特效失敗
+
+
+
diff --git a/panels/osd/displaymode/CMakeLists.txt b/panels/osd/displaymode/CMakeLists.txt
index 5e5685f11..fbb74577c 100644
--- a/panels/osd/displaymode/CMakeLists.txt
+++ b/panels/osd/displaymode/CMakeLists.txt
@@ -13,3 +13,4 @@ target_link_libraries(osd-displaymode PRIVATE
)
ds_install_package(PACKAGE org.deepin.ds.osd.displaymode TARGET osd-displaymode)
+ds_handle_package_translation(PACKAGE org.deepin.ds.osd.displaymode)
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_az.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_az.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_az.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_bo.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_bo.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_bo.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ca.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ca.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ca.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_es.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_es.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_es.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_fi.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_fi.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_fi.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_fr.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_fr.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_fr.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_hu.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_hu.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_hu.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_it.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_it.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_it.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ja.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ja.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ja.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ko.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ko.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ko.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_nb_NO.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_nb_NO.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_nb_NO.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_pl.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_pl.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_pl.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_pt_BR.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_pt_BR.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_pt_BR.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ru.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ru.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_ru.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_uk.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_uk.ts
new file mode 100644
index 000000000..8596d6be3
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_uk.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+
+
+
+
+ Extend
+
+
+
+
+ Only on %1
+
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_CN.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_CN.ts
new file mode 100644
index 000000000..f44cfe0a1
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_CN.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+ 复制
+
+
+
+ Extend
+ 扩展
+
+
+
+ Only on %1
+ 仅
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_HK.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_HK.ts
new file mode 100644
index 000000000..421240c04
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_HK.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+ 複制
+
+
+
+ Extend
+ 擴展
+
+
+
+ Only on %1
+ 僅
+
+
+
diff --git a/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_TW.ts b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_TW.ts
new file mode 100644
index 000000000..546548c88
--- /dev/null
+++ b/panels/osd/displaymode/translations/org.deepin.ds.osd.displaymode_zh_TW.ts
@@ -0,0 +1,22 @@
+
+
+
+
+ osd::DisPlayModeApplet
+
+
+ Duplicate
+ 複制
+
+
+
+ Extend
+ 擴展
+
+
+
+ Only on %1
+ 僅
+
+
+
diff --git a/shell/appletloader.cpp b/shell/appletloader.cpp
index 034f881dd..95ff6b77b 100644
--- a/shell/appletloader.cpp
+++ b/shell/appletloader.cpp
@@ -14,6 +14,9 @@
#include
#include
#include
+#include
+#include
+#include
#include
DS_BEGIN_NAMESPACE
@@ -65,6 +68,13 @@ class DAppletLoaderPrivate : public DObjectPrivate
return groups;
}
+ ~DAppletLoaderPrivate()
+ {
+ for (const auto &tl : std::as_const(m_pluginTranslators)) {
+ tl->deleteLater();
+ }
+ }
+
bool doLoad(DApplet *applet);
void doCreateRootObject(DApplet *applet);
bool doInit(DApplet *applet);
@@ -75,7 +85,11 @@ class DAppletLoaderPrivate : public DObjectPrivate
void createChildren(DApplet *applet);
+ void loadTranslation(const DPluginMetaData &pluginData);
+ void removeTranslation(const QString &pluginId);
+
QPointer m_applet = nullptr;
+ QMap m_pluginTranslators;
D_DECLARE_PUBLIC(DAppletLoader);
};
@@ -96,6 +110,7 @@ DAppletLoader::~DAppletLoader()
void DAppletLoader::exec()
{
D_D(DAppletLoader);
+ d->loadTranslation(d->m_applet->pluginMetaData());
if (!d->load(d->m_applet))
return;
@@ -125,7 +140,7 @@ void DAppletLoaderPrivate::doCreateRootObject(DApplet *applet)
if (!rootObject) {
D_Q(DAppletLoader);
qCWarning(dsLoaderLog) << "Create root failed:" << applet->pluginId();
- Q_EMIT q->failed();
+ Q_EMIT q->failed(applet->pluginId());
}
});
@@ -155,7 +170,7 @@ bool DAppletLoaderPrivate::doLoad(DApplet *applet)
if (auto containment = qobject_cast(applet->parentApplet())) {
containment->removeApplet(applet);
}
- Q_EMIT q->failed();
+ Q_EMIT q->failed(applet->pluginId());
return false;
}
return true;
@@ -171,7 +186,7 @@ bool DAppletLoaderPrivate::doInit(DApplet *applet)
if (auto containment = qobject_cast(applet->parentApplet())) {
containment->removeApplet(applet);
}
- Q_EMIT q->failed();
+ Q_EMIT q->failed(applet->pluginId());
return false;
}
return true;
@@ -236,4 +251,36 @@ bool DAppletLoaderPrivate::init(DApplet *applet)
return true;
}
+void DAppletLoaderPrivate::loadTranslation(const DPluginMetaData &pluginData)
+{
+ const QString baseDir = pluginData.pluginDir();
+ const QString pluginId = pluginData.pluginId();
+
+ QString pluginTransFilePath = QString(baseDir + "/translations/" + pluginId + "_%1.qm").arg(QLocale::system().name());
+ if (QFile::exists(pluginTransFilePath)) {
+ auto translator = new QTranslator(qApp);
+ if (translator->load(pluginTransFilePath)) {
+ m_pluginTranslators[pluginId] = translator;
+ qApp->installTranslator(translator);
+ } else {
+ qCWarning(dsLoaderLog) << "Failed to load translation:" << pluginTransFilePath;
+ translator->deleteLater();
+ }
+ }
+
+ const auto children = DPluginLoader::instance()->childrenPlugin(pluginId);
+ for (const auto &childPluginData : children) {
+ loadTranslation(childPluginData);
+ }
+}
+
+void DAppletLoaderPrivate::removeTranslation(const QString &pluginId)
+{
+ if (m_pluginTranslators.contains(pluginId)) {
+ qApp->removeTranslator(m_pluginTranslators.value(pluginId));
+ m_pluginTranslators.value(pluginId)->deleteLater();
+ m_pluginTranslators.remove(pluginId);
+ }
+}
+
DS_END_NAMESPACE
diff --git a/shell/appletloader.h b/shell/appletloader.h
index 7ebef3f15..5f088ded4 100644
--- a/shell/appletloader.h
+++ b/shell/appletloader.h
@@ -25,7 +25,7 @@ class DAppletLoader : public QObject, public DTK_CORE_NAMESPACE::DObject
DApplet *applet() const;
Q_SIGNALS:
- void failed();
+ void failed(const QString &pluginId);
};
DS_END_NAMESPACE
diff --git a/shell/main.cpp b/shell/main.cpp
index 6f5055d71..4f07d0e6b 100644
--- a/shell/main.cpp
+++ b/shell/main.cpp
@@ -57,9 +57,11 @@ class AppletManager
auto loader = new DAppletLoader(applet);
m_loaders << loader;
- QObject::connect(loader, &DAppletLoader::failed, qApp, [this, loader]() {
- m_loaders.removeOne(loader);
- loader->deleteLater();
+ QObject::connect(loader, &DAppletLoader::failed, qApp, [this, loader, pluginIds](const QString &pluginId) {
+ if (pluginIds.contains(pluginId)) {
+ m_loaders.removeOne(loader);
+ loader->deleteLater();
+ }
});
}
}