Commit 1af6c4dd authored by Xavier Perseguers's avatar Xavier Perseguers
Browse files

[BUGFIX] $ sign in labels is not handled properly

Change-Id: Ia8b40075bf3adcdccf3d8431e980ceae0416c423
Resolves: #68557
Reviewed-on: http://review.typo3.org/41985

Reviewed-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
parent f28fa82c
......@@ -160,7 +160,7 @@ for VERSION in ${VERSIONS}; do
# New lines should be escaped in replacement string
# Beware of special characters changing string to UPPER CASE and breaking the generated XLIFF:
# see: http://perldoc.perl.org/perlre.html#Escape-sequences
REPLACEMENT=$(echo -n "${NEW_VALUE}" | sed 's/\\/\\\\/g' | sed 's/|/\\|/g' | perl -pe 'BEGIN{undef $/;} s|\n|\\n|smg')
REPLACEMENT=$(echo -n "${NEW_VALUE}" | sed 's/\\/\\\\/g' | sed 's/|/\\|/g' | sed 's/\$/\\$/g' | perl -pe 'BEGIN{undef $/;} s|\n|\\n|smg')
perl -pe "BEGIN{undef $/;} s|${ELEMENT}.*?</trans-unit>|${REPLACEMENT}|smg" ${TARGET_NAME} > ${TARGET_NAME}.tmp
if [ $? -ne 0 ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment