Commit 56fc553b authored by Emmanuel Christophe's avatar Emmanuel Christophe

ENH: introduction of internationalization in OTB

parent 20db2187
......@@ -551,6 +551,17 @@ IF(OTB_USE_EXTERNAL_GDAL)
ELSE(OTB_USE_EXTERNAL_GDAL)
ENDIF(OTB_USE_EXTERNAL_GDAL)
#Experimental
FIND_PACKAGE(Gettext)
IF(GETTEXT_FOUND)
SET(OTB_I18N 1)
SET(OTB_LANG "en" CACHE STRING "OTB internationalization (Experimental)")#might want to get the Locale from the system here
#TODO compile the po into mo
ELSE(GETTEXT_FOUND)
SET(OTB_I18N 0)
MESSAGE(STATUS
"Gettext not found, internationalization will not be available")
ENDIF(GETTEXT_FOUND)
#-------------------------------
# End connections whith external libraries
......
......@@ -132,3 +132,6 @@ SET(OTB_IO_UTILITIES_DEPENDENT_LIBRARIES "@OTB_IO_UTILITIES_DEPENDENT_LIBRARIES@
# Option use external BOOST.
SET(OTB_USE_EXTERNAL_BOOST "@OTB_USE_EXTERNAL_BOOST@")
# Internationalization
SET(OTB_I18N "@OTB_I18N@")
......@@ -66,3 +66,4 @@
/* Use Visu/Gui configurations */
#cmakedefine OTB_USE_VISU_GUI
#cmakedefine OTB_I18N
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment