[rkward/releases/0.7.0] i18n: Revert "Avoid creating empty directories for purged translations."

Thomas Friedrichsmeier null at kde.org
Mon Apr 16 19:52:45 UTC 2018


Git commit 2364009a4986d354541d7f083d043d5417a87a8e by Thomas Friedrichsmeier.
Committed on 16/04/2018 at 19:52.
Pushed by tfry into branch 'releases/0.7.0'.

Revert "Avoid creating empty directories for purged translations."

This reverts commit 161f8230c5fd5d947981013ef7393827441dcd25.

CCBUG: 393195

M  +5    -7    i18n/CMakeLists.txt

https://commits.kde.org/rkward/2364009a4986d354541d7f083d043d5417a87a8e

diff --git a/i18n/CMakeLists.txt b/i18n/CMakeLists.txt
index 5caec306..ff259f09 100644
--- a/i18n/CMakeLists.txt
+++ b/i18n/CMakeLists.txt
@@ -21,13 +21,11 @@ MACRO(RKHandlePO _PO_FILES)
 			DEPENDS ${_poFile})
 		LIST(APPEND active_translations ${_stampFile})
 
-		IF(EXISTS ${_gmoFile})
-			IF(${_poid} STREQUAL "rkward")
-				INSTALL(FILES ${_gmoFile} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME rkward.mo OPTIONAL)
-			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(EXISTS ${_gmoFile})
+		IF(${_poid} STREQUAL "rkward")
+			INSTALL(FILES ${_gmoFile} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME rkward.mo OPTIONAL)
+		ELSE(${_poid} STREQUAL "rkward")
+			INSTALL(FILES ${_gmoFile} DESTINATION ${DATA_INSTALL_DIR}/rkward/po/${_lang}/LC_MESSAGES/ RENAME ${_poid}.mo OPTIONAL)
+		ENDIF(${_poid} STREQUAL "rkward")
 	ENDFOREACH(_poFile ${_PO_FILES})
 ENDMACRO(RKHandlePO)
 



More information about the rkward-tracker mailing list