add po file compilation

This commit is contained in:
Valient Gough 2015-06-15 20:36:26 -07:00
parent 2ec85a6638
commit 0fc7bbe992

View File

@ -145,3 +145,14 @@ endif (POD2MAN)
install (TARGETS encfs DESTINATION bin)
install (FILES ${CMAKE_SOURCE_DIR}/encfs/encssh DESTINATION bin)
# Translations
if (GETTEXT_FOUND)
file(GLOB po_files "po/*.po")
foreach(pofile ${po_files})
get_filename_component(lang ${pofile} NAME_WE)
#message("-- Found gettext PO file for ${lang}: ${pofile}")
gettext_process_po_files(${lang} ALL PO_FILES ${pofile})
endforeach()
endif (GETTEXT_FOUND)