From b02c573742908ea6a2d17e3d301b7e9988c61bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 31 May 2024 22:21:46 +0200 Subject: [PATCH] Update the extraction of translations for renamed tqxml in TQt3. This relates to TDE/tqt3#155. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeL10n.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeL10n.txt b/CMakeL10n.txt index d4599c271..1c9376c62 100644 --- a/CMakeL10n.txt +++ b/CMakeL10n.txt @@ -33,13 +33,13 @@ if( NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src ) endif( ) -##### prepare tqt3/src/xml/qxml.cpp ############# +##### prepare tqt3/src/xml/tqxml.cpp ############# -if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/qxml.cpp ) +if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/tqxml.cpp ) # hide "#define" to allow strings to be extracted using xgettext - file( READ ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/qxml.cpp _tqt_qxml ) - string( REGEX REPLACE "\n(#define[^\n]*)(TQT_TRANSLATE_NOOP)" "\n/*\\1*/\\2" _tqt_qxml ${_tqt_qxml} ) - file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/qxml.cpp.tde_l10n "${_tqt_qxml}" ) + file( READ ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/tqxml.cpp _tqt_tqxml ) + string( REGEX REPLACE "\n(#define[^\n]*)(TQT_TRANSLATE_NOOP)" "\n/*\\1*/\\2" _tqt_tqxml ${_tqt_tqxml} ) + file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/../../dependencies/tqt3/src/xml/tqxml.cpp.tde_l10n "${_tqt_tqxml}" ) endif( ) @@ -108,7 +108,7 @@ tde_l10n_create_template( "tdeabc/scripts/entrylist.tde_l10n" "tdecore/tde-config.cpp.cmake" "../../dependencies/tqt3/src" - "../../dependencies/tqt3/src/xml/qxml.cpp.tde_l10n" + "../../dependencies/tqt3/src/xml/tqxml.cpp.tde_l10n" EXCLUDES "/test/" "/tests/" "^arts/kde/mcop-dcop/" @@ -127,7 +127,7 @@ tde_l10n_create_template( "^tdeprint/" "^tdeui/colors/" "^tdestyles/.*/config/" - "/dependencies/tqt3/src/xml/qxml.cpp$" + "/dependencies/tqt3/src/xml/tqxml.cpp$" KEYWORDS tr tr:1,2 translate translate:1,2