r15818 by craig - Allow ts/qm files with numbers in filenames
scribus-commit
scribus-commit at lists.scribus.net
Mon Nov 8 22:13:19 CET 2010
Author: craig
Date: Mon Nov 8 21:13:19 2010
New Revision: 15818
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15818
Log:
Allow ts/qm files with numbers in filenames
Modified:
branches/Version135/Scribus/resources/translations/po/CMakeLists.txt
Modified: branches/Version135/Scribus/resources/translations/po/CMakeLists.txt
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15818&path=/branches/Version135/Scribus/resources/translations/po/CMakeLists.txt
==============================================================================
--- branches/Version135/Scribus/resources/translations/po/CMakeLists.txt (original)
+++ branches/Version135/Scribus/resources/translations/po/CMakeLists.txt Mon Nov 8 21:13:19 2010
@@ -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
More information about the scribus-commit
mailing list