Internationalization

- Fixed the mechanism used to select translations (thanks to Fidel Mato).
This commit is contained in:
Paul Beckingham 2012-10-13 15:30:04 -04:00
parent 9fe9f96f8f
commit 879ecf9505
6 changed files with 40 additions and 24 deletions

View file

@ -100,6 +100,18 @@ else (HAVE_UUID AND HAVE_UUID_UNPARSE_LOWER)
message ("-- libuuid not found, using internal uuid")
endif (HAVE_UUID AND HAVE_UUID_UNPARSE_LOWER)
# Set the package language.
if (LANGUAGE)
set (PACKAGE_LANGUAGE ${LANGUAGE})
else (LANGUAGE)
set (PACKAGE_LANGUAGE 1)
endif (LANGUAGE)
set (LANGUAGE_EN_US 1)
set (LANGUAGE_ES_ES 2)
set (LANGUAGE_DE_DE 3)
set (LANGUAGE_FR_FR 4)
message ("-- Configuring cmake.h")
configure_file (
${CMAKE_SOURCE_DIR}/cmake.h.in