aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_gpg_info
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-06-28 16:03:51 +0200
committersaturneric <[email protected]>2026-06-28 16:03:51 +0200
commit047c6049a798fa9f3fd8747b9997b886f6ea8481 (patch)
treec26fae8576da727214bb4c62d3c2fb6c72154fb1 /src/m_gpg_info
parentdocs(i18n): update translations for email, GnuPG, key-server and version modules (diff)
downloadmodules-047c6049a798fa9f3fd8747b9997b886f6ea8481.tar.gz
modules-047c6049a798fa9f3fd8747b9997b886f6ea8481.zip
refactor(i18n): use `gpgfrontend_collect_ts_files` for i18n
* Replace repetitive explicit TS file lists with the `gpgfrontend_collect_ts_files` helper across several modules. * Reduce duplication and centralize locale collection so adding/removing translations is easier and less error-prone. * No functional changes; only simplifies CMake translation setup and maintenance.
Diffstat (limited to 'src/m_gpg_info')
-rw-r--r--src/m_gpg_info/CMakeLists.txt7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/m_gpg_info/CMakeLists.txt b/src/m_gpg_info/CMakeLists.txt
index bb5f148..9e0201c 100644
--- a/src/m_gpg_info/CMakeLists.txt
+++ b/src/m_gpg_info/CMakeLists.txt
@@ -36,12 +36,7 @@ target_link_libraries(${MODULE_TARGET} PRIVATE Qt::Core Qt::Widgets Qt::Concurre
# i18n
set(LOCALE_TS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ts)
-set(TS_FILES "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.en_US.ts"
- "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.de_DE.ts"
- "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.fr_FR.ts"
- "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.it_iT.ts"
- "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.zh_CN.ts"
- "${LOCALE_TS_PATH}/ModuleGnuPGInfoGathering.zh_TW.ts")
+gpgfrontend_collect_ts_files(TS_FILES "ModuleGnuPGInfoGathering" "${LOCALE_TS_PATH}")
module_add_translations(${MODULE_TARGET}
TS_FILES ${TS_FILES}