From 0fc7bbe9922889b6e74ec9afee148aa527f7cf27 Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Mon, 15 Jun 2015 20:36:26 -0700 Subject: [PATCH] add po file compilation --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b107388..81a1529 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)