From 73992f139276b75aeddf78f476644a2d82f9e802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Sun, 4 May 2014 20:43:42 +0100 Subject: Add ECMPoQmTools module ecm_create_qm_from_po_files() was actually not very useful in practice. So that is deprecated, to be removed before ECM 1.0. Instead, the ECMPoQmTools provides several useful functions: ecm_create_qm_loader() (which already existed in ECMCreateQmFromPoFiles), ecm_process_po_files_as_qm() (which has the same signature as gettext_process_po_files() from the FindGettext module) and ecm_install_po_files_as_qm(), which is a convenience function mostly for the benefit of KDE Frameworks (although potentially useful for whatever other projects have the unusual requirement of a Gettext translation workflow but no Gettext usage in the code). NB: some clean-up to the documentation was done by Alex Merry as part of this commit. REVIEW: 117823 --- modules/ECMCreateQmFromPoFiles.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/ECMCreateQmFromPoFiles.cmake') diff --git a/modules/ECMCreateQmFromPoFiles.cmake b/modules/ECMCreateQmFromPoFiles.cmake index 7457fc51..4a31a93e 100644 --- a/modules/ECMCreateQmFromPoFiles.cmake +++ b/modules/ECMCreateQmFromPoFiles.cmake @@ -2,6 +2,9 @@ # ECMCreateQmFromPoFiles # ---------------------- # +# .. warning:: This module is deprecated and will be removed by ECM 1.0. Use +# ECMPoQmTools instead. +# # Generate QTranslator (.qm) catalogs from Gettext (.po) catalogs. # # :: @@ -79,6 +82,8 @@ # (To distribute this file outside of extra-cmake-modules, substitute the full # License text for the above reference.) +message(AUTHOR_WARNING "ECMCreateQmFromPoFiles is deprecated and will be removed before the release of Extra CMake Modules 1.0. Use ECMPoQmTools instead.") + # Stolen from FindGettext.cmake function(_ECM_QM_GET_UNIQUE_TARGET_NAME _name _unique_name) set(propertyName "_ECM_QM_UNIQUE_COUNTER_${_name}") -- cgit v1.2.1