[rkward] i18n: Fix installation of translations
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Sat Feb 21 09:09:37 UTC 2015
Git commit d74a4b998a7fee6219534a9b2418d1474686bd75 by Thomas Friedrichsmeier.
Committed on 20/02/2015 at 13:46.
Pushed by tfry into branch 'master'.
Fix installation of translations
M +7 -5 i18n/CMakeLists.txt
http://commits.kde.org/rkward/d74a4b998a7fee6219534a9b2418d1474686bd75
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