Commit f581ce73 authored by Xavier Perseguers's avatar Xavier Perseguers
Browse files

[BUGFIX] @ sign in labels is not handled properly

Change-Id: If30d942306667750cc25ae220096fbc255ba28d9
Resolves: #68588
Reviewed-on: http://review.typo3.org/42074

Reviewed-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
parent 5ba47a74
......@@ -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' | 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' | 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