Skip to content

Commit

Permalink
Fix cmake po detection bug
Browse files Browse the repository at this point in the history
Previously, cmake po detection would treat the "timestamp" file created by building for android as own language directory.
  • Loading branch information
est31 authored and Zeno- committed Mar 23, 2015
1 parent 5b5c498 commit c31c87a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/Modules/FindGettextLib.cmake
Expand Up @@ -74,6 +74,7 @@ IF(GETTEXT_FOUND)
SET(GETTEXT_MO_DEST_PATH ${LOCALEDIR}/<locale>/LC_MESSAGES)
FILE(GLOB GETTEXT_AVAILABLE_LOCALES RELATIVE ${GETTEXT_PO_PATH} "${GETTEXT_PO_PATH}/*")
LIST(REMOVE_ITEM GETTEXT_AVAILABLE_LOCALES minetest.pot)
LIST(REMOVE_ITEM GETTEXT_AVAILABLE_LOCALES timestamp)
MACRO(SET_MO_PATHS _buildvar _destvar _locale)
STRING(REPLACE "<locale>" ${_locale} ${_buildvar} ${GETTEXT_MO_BUILD_PATH})
STRING(REPLACE "<locale>" ${_locale} ${_destvar} ${GETTEXT_MO_DEST_PATH})
Expand Down

0 comments on commit c31c87a

Please sign in to comment.