summaryrefslogtreecommitdiffstats
path: root/modules/TDEMacros.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-15 15:32:17 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-17 18:26:40 +0200
commit74122e5d1f587daa65b600fd30408517d4641bf7 (patch)
tree1d7de144dbefbdfa9f58ff90300fc56af7a2e4c8 /modules/TDEMacros.cmake
parent635129843469b1539c9a07271217349d6516f835 (diff)
downloadtde-cmake-74122e5d1f587daa65b600fd30408517d4641bf7.tar.gz
tde-cmake-74122e5d1f587daa65b600fd30408517d4641bf7.zip
tde_create_translated_desktop: Force the use of intltool-merge.
Because some of our desktop files contain underscores in variable names (for example eventsrc), which is not an allowed character for names of entries in desktop style files, we can't use msgfmt, so we need intltool-merge. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 34e3154c44c59da784cfad7dcb63497b374cbd7d)
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r--modules/TDEMacros.cmake19
1 files changed, 14 insertions, 5 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 2770fa2..1fdda9c 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1782,18 +1782,27 @@ macro( tde_create_translated_desktop )
endforeach( )
# select a tool for merging desktop file translations
- if( NOT MSGFMT_EXECUTABLE OR NOT MSGFMT_VERSION )
- tde_setup_msgfmt( )
- endif( )
- if( "${MSGFMT_VERSION}" VERSION_LESS "0.19" )
+ #
+ # Because some of our desktop files contain underscores in variable
+ # names (for example eventsrc), which is not an allowed character
+ # for names of entries in desktop style files, we can't use msgfmt,
+ # so we need intltool-merge.
+ #
+ #if( NOT MSGFMT_EXECUTABLE OR NOT MSGFMT_VERSION )
+ # tde_setup_msgfmt( )
+ #endif( )
+ #if( "${MSGFMT_VERSION}" VERSION_LESS "0.19" )
+ if( TRUE )
if( NOT INTLTOOL_MERGE_EXECUTABLE )
find_program( INTLTOOL_MERGE_EXECUTABLE
NAMES intltool-merge
HINTS "${TDE_PREFIX}/bin"
)
if( "${INTLTOOL_MERGE_EXECUTABLE}" STREQUAL "INTLTOOL_MERGE_EXECUTABLE-NOTFOUND" )
- tde_message_fatal( "xgettext >= 0.19 or intltool-merge is required but not found" )
+ #tde_message_fatal( "xgettext >= 0.19 or intltool-merge is required but not found" )
+ tde_message_fatal( "intltool-merge is required but not found" )
endif( )
+ message( STATUS "Found intltool: ${INTLTOOL_MERGE_EXECUTABLE}" )
endif( )
set( DESKTOP_MERGE_INTLTOOL 1 )
else( )