[evolution-data-server] Correct install of the translation files
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Correct install of the translation files
- Date: Fri, 7 Jan 2022 12:47:17 +0000 (UTC)
commit 102303e7c1ccc58b2a971d04eadc9b3ede9ee151
Author: Corentin Noël <corentin noel collabora com>
Date: Fri Jan 7 12:58:03 2022 +0100
Correct install of the translation files
Do not use GETTEXT_PROCESS_PO_FILES but GETTEXT_PROCESS_POT_FILE to install
the translations using the .pot name.
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/-/merge_requests/78
po/CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index bf7423eac..2174db60f 100644
--- a/po/CMakeLists.txt
+++ b/po/CMakeLists.txt
@@ -62,7 +62,7 @@ set(LINGUAS)
foreach(file IN LISTS po_files)
get_filename_component(lang ${file} NAME_WE)
list(APPEND LINGUAS ${lang})
- gettext_process_po_files(${lang} ALL INSTALL_DESTINATION "${LOCALE_INSTALL_DIR}" PO_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}.po")
+ configure_file("${lang}.po" "${lang}.po" COPYONLY)
endforeach(file)
string (REPLACE ";" "\n" LINGUAS_CONTENT "${LINGUAS}")
@@ -84,3 +84,5 @@ foreach(LANG ${LINGUAS})
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${POT_FILE}
)
endforeach(LANG)
+
+gettext_process_pot_file(${CMAKE_CURRENT_BINARY_DIR}/${POT_FILE} ALL INSTALL_DESTINATION
"${LOCALE_INSTALL_DIR}" LANGUAGES ${LINGUAS})
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]