[rkward-cvs] SF.net SVN: rkward-code:[4952] trunk/rkward/po
tfry at users.sf.net
tfry at users.sf.net
Sat Oct 25 06:23:22 UTC 2014
Revision: 4952
http://sourceforge.net/p/rkward/code/4952
Author: tfry
Date: 2014-10-25 06:23:20 +0000 (Sat, 25 Oct 2014)
Log Message:
-----------
For testing purposes, relax the "80% translated"-requirement for plugin catalogs
Modified Paths:
--------------
trunk/rkward/po/CMakeLists.txt
trunk/rkward/po/compile_po.cmake
Modified: trunk/rkward/po/CMakeLists.txt
===================================================================
--- trunk/rkward/po/CMakeLists.txt 2014-10-24 21:01:45 UTC (rev 4951)
+++ trunk/rkward/po/CMakeLists.txt 2014-10-25 06:23:20 UTC (rev 4952)
@@ -6,6 +6,7 @@
IF(_namePartsCount GREATER 2)
LIST(GET _nameParts 0 _poid)
LIST(REMOVE_AT _nameParts 0)
+ SET(ACCEPT_INCOMPLETE_PO "-DACCEPT_INCOMPLETE_PO=1")
ELSE(_namePartsCount GREATER 2)
SET(_poid "rkward")
ENDIF(_namePartsCount GREATER 2)
@@ -17,7 +18,7 @@
# (since the gmo file is only built for translations which are complete enough)
SET(_stampFile ${CMAKE_CURRENT_BINARY_DIR}/${_poid}.${_lang}.stamp)
ADD_CUSTOM_COMMAND(OUTPUT ${_stampFile}
- COMMAND ${CMAKE_COMMAND} "-D_poFile=${_poFile}" "-D_gmoFile=${_gmoFile}" "-DGETTEXT_MSGFMT_EXECUTABLE=${GETTEXT_MSGFMT_EXECUTABLE}" -P ${CMAKE_CURRENT_SOURCE_DIR}/compile_po.cmake
+ COMMAND ${CMAKE_COMMAND} "-D_poFile=${_poFile}" "-D_gmoFile=${_gmoFile}" "-DGETTEXT_MSGFMT_EXECUTABLE=${GETTEXT_MSGFMT_EXECUTABLE}" ${ACCEPT_INCOMPLETE_PO} -P ${CMAKE_CURRENT_SOURCE_DIR}/compile_po.cmake
COMMAND ${CMAKE_COMMAND} -E touch ${_stampFile}
COMMENT "Generating translation for language '${_lang}', catalog '${_poid}'"
DEPENDS ${_poFile})
Modified: trunk/rkward/po/compile_po.cmake
===================================================================
--- trunk/rkward/po/compile_po.cmake 2014-10-24 21:01:45 UTC (rev 4951)
+++ trunk/rkward/po/compile_po.cmake 2014-10-25 06:23:20 UTC (rev 4952)
@@ -22,8 +22,12 @@
# Purge hopelessly incomplete translations
IF(TRANSLATION_RATIO LESS 80)
- MESSAGE (STATUS "${_poFile} is only ${TRANSLATION_RATIO}% translated. Will not be installed.")
- FILE(REMOVE ${_gmoFile})
+ IF(${ACCEPT_INCOMPLETE_PO})
+ MESSAGE (STATUS "${_poFile} is only ${TRANSLATION_RATIO}% translated. Accepting anyway as a temporary exception")
+ ELSE(${ACCEPT_INCOMPLETE_PO})
+ MESSAGE (STATUS "${_poFile} is only ${TRANSLATION_RATIO}% translated. Will not be installed.")
+ FILE(REMOVE ${_gmoFile})
+ ENDIF(${ACCEPT_INCOMPLETE_PO})
ELSE(TRANSLATION_RATIO LESS 80)
MESSAGE (STATUS "${_poFile} is ${TRANSLATION_RATIO}% translated.")
ENDIF(TRANSLATION_RATIO LESS 80)
More information about the rkward-tracker
mailing list