diff options
Diffstat (limited to 'src/libs/3rdparty/syntax-highlighting/src/Messages.sh')
-rw-r--r-- | src/libs/3rdparty/syntax-highlighting/src/Messages.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/3rdparty/syntax-highlighting/src/Messages.sh b/src/libs/3rdparty/syntax-highlighting/src/Messages.sh new file mode 100644 index 0000000000..6fb605ddf0 --- /dev/null +++ b/src/libs/3rdparty/syntax-highlighting/src/Messages.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# extract language and section names from XML syntax definition files +# and adapt for lupdate-based extraction to match the rest of the code +$EXTRACTATTR --attr=language,name,Language --attr="language,section,Language Section" ../data/syntax/*.xml >> rc.cpp || exit 12 +sed -i -e 's/^i18nc/QT_TRANSLATE_NOOP/' rc.cpp + +grep --no-filename '"name"' ../data/themes/*.theme | \ + sed -r -e 's/"name"/QT_TRANSLATE_NOOP("Theme", /; s/://; s/,?$/);/' >> rc.cpp + +$EXTRACT_TR_STRINGS `find . -name \*.cpp -o -name \*.h -o -name \*.ui -o -name \*.qml` -o $podir/syntaxhighlighting5_qt.pot |