r15817 by craig - Allow ts/qm files with numbers in filenames
scribus-commit
scribus-commit at lists.scribus.net
Mon Nov 8 22:12:17 CET 2010
Author: craig
Date: Mon Nov 8 21:12:17 2010
New Revision: 15817
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15817
Log:
Allow ts/qm files with numbers in filenames
Modified:
trunk/Scribus/resources/translations/po/CMakeLists.txt
Modified: trunk/Scribus/resources/translations/po/CMakeLists.txt
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15817&path=/trunk/Scribus/resources/translations/po/CMakeLists.txt
==============================================================================
--- trunk/Scribus/resources/translations/po/CMakeLists.txt (original)
+++ trunk/Scribus/resources/translations/po/CMakeLists.txt Mon Nov 8 21:12:17 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