Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 15816 → Rev 15817

/trunk/Scribus/resources/translations/po/CMakeLists.txt
9,7 → 9,7
#Bit of a hack, preprocess all the filenames to generate our language string, needed for -DWANT_GUI_LANG=en_GB,de_DE , etc
FOREACH(TS_FILEPATH ${SCRIBUS_TS_FILES})
GET_FILENAME_COMPONENT(TS_FILENAME ${TS_FILEPATH} NAME)
STRING(REGEX MATCH "\\.([a-zA-Z_]*)\\." LANGSTR ${TS_FILENAME})
STRING(REGEX MATCH "\\.([0-9a-zA-Z_]*)\\." LANGSTR ${TS_FILENAME})
STRING(REPLACE "." "" LANGSTR ${LANGSTR})
SET(QM_LANGS ${QM_LANGS} ${LANGSTR})
ENDFOREACH(TS_FILEPATH)
20,7 → 20,7
IF(WANT_GUI_LANG)
FOREACH(TS_FILEPATH ${SCRIBUS_TS_FILES})
GET_FILENAME_COMPONENT(TS_FILENAME ${TS_FILEPATH} NAME)
STRING(REGEX MATCH "\\.([a-zA-Z_]*)\\." LANGSTR ${TS_FILENAME})
STRING(REGEX MATCH "\\.([0-9a-zA-Z_]*)\\." LANGSTR ${TS_FILENAME})
STRING(REPLACE "." "" LANGSTR ${LANGSTR})
FOREACH(WANTED_LANG ${WANT_GUI_LANG})
IF(LANGSTR STREQUAL WANTED_LANG)
38,7 → 38,7
#Just install all of them
FOREACH(TS_FILEPATH ${SCRIBUS_TS_FILES})
GET_FILENAME_COMPONENT(TS_FILENAME ${TS_FILEPATH} NAME)
STRING(REGEX MATCH "\\.([a-zA-Z_]*)\\." LANGSTR ${TS_FILENAME})
STRING(REGEX MATCH "\\.([0-9a-zA-Z_]*)\\." LANGSTR ${TS_FILENAME})
STRING(REPLACE "." "" LANGSTR ${LANGSTR})
SET(QM_FILENAME "scribus.${LANGSTR}.qm")
ADD_CUSTOM_TARGET("release_ts_${LANGSTR}" ALL