Update translation generating code from -DLINGUAS="something" to use env variable.
EXAMPLE:
export LINGUAS="cs de fr"
cmake ..
This will build only czech german and frech translations.
16 files changed:
option(EMBED_DATA "Embed all data files in the binary (rather than installing them separately)" ${EMBED_DEFAULT})
set(QT "" CACHE STRING "Path to a Qt installation to use instead of the system Qt (e.g. for static builds)")
-set(LINGUAS "" CACHE STRING "Comma-separated list of locales specifying languages that should be compiled")
# Some settings imply others
if(STATIC)
add_subdirectory(data)
add_subdirectory(icons)
add_subdirectory(pics)
-add_subdirectory(i18n)
+add_subdirectory(po)
add_subdirectory(src)
generate_qm(QM quassel)
set(qm_files ${QM})
+ # get environment variable for translations
+ set(LINGUAS "$ENV{LINGUAS}")
+ string(REGEX REPLACE "[ \t]+" \; output "${LINGUAS}")
# Find more languages
file(GLOB avail_pofiles quassel_*.po qt_*.po)
foreach(PO_FILE ${avail_pofiles})