[rkward/releases/0.6.3] i18n: Fix installation of translations

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Feb 20 13:47:23 UTC 2015


Git commit 88ed83513a1d3a3c782cae664e5b15629d86cb51 by Thomas Friedrichsmeier.
Committed on 20/02/2015 at 13:46.
Pushed by tfry into branch 'releases/0.6.3'.

Fix installation of translations

M  +7    -5    i18n/CMakeLists.txt

http://commits.kde.org/rkward/88ed83513a1d3a3c782cae664e5b15629d86cb51

diff --git a/i18n/CMakeLists.txt b/i18n/CMakeLists.txt
index 6ba8112..c9f5db9 100644
--- a/i18n/CMakeLists.txt
+++ b/i18n/CMakeLists.txt
@@ -5,9 +5,11 @@ MACRO(RKHandlePO _PO_FILES)
 		LIST(LENGTH _nameParts _namePartsCount)
 		LIST(GET _nameParts 0 _poid)
 		LIST(GET _nameParts 1 _lang) # Remainder of _nameParts should be "po"
-		IF(NOT _poid STREQUAL "rkward")
+		IF(NOT ${_poid} STREQUAL "rkward")
 			SET(ACCEPT_INCOMPLETE_PO "-DACCEPT_INCOMPLETE_PO=1")
-		ENDIF(NOT _poid STREQUAL "rkward")
+		ELSE(NOT ${_poid} STREQUAL "rkward")
+			SET(ACCEPT_INCOMPLETE_PO "")
+		ENDIF(NOT ${_poid} STREQUAL "rkward")
 
 		SET(_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_poid}.${_lang}.gmo)
 
@@ -21,11 +23,11 @@ MACRO(RKHandlePO _PO_FILES)
 			DEPENDS ${_poFile})
 		LIST(APPEND active_translations ${_stampFile})
 
-		IF(_poid STREQUAL "rkward")
+		IF(${_poid} STREQUAL "rkward")
 			INSTALL(FILES ${_gmoFile} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME rkward.mo OPTIONAL)
-		ELSE(_poid STREQUAL "rkward")
+		ELSE(${_poid} STREQUAL "rkward")
 			INSTALL(FILES ${_gmoFile} DESTINATION ${DATA_INSTALL_DIR}/rkward/po/${_lang}/LC_MESSAGES/ RENAME ${_poid}.mo OPTIONAL)
-		ENDIF(_poid STREQUAL "rkward")
+		ENDIF(${_poid} STREQUAL "rkward")
 	ENDFOREACH(_poFile ${_PO_FILES})
 ENDMACRO(RKHandlePO)
 



More information about the rkward-tracker mailing list