[BUGFIX] $ sign in labels is not handled properly 85/41985/2
authorXavier Perseguers <xavier@typo3.org>
Mon, 27 Jul 2015 16:35:09 +0000 (18:35 +0200)
committerXavier Perseguers <xavier@typo3.org>
Mon, 27 Jul 2015 17:14:30 +0000 (19:14 +0200)
Change-Id: Ia8b40075bf3adcdccf3d8431e980ceae0416c423
Resolves: #68557
Reviewed-on: http://review.typo3.org/41985
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/files/scripts/bin/update-typo3-core-template

index d8f2d1e..5345985 100755 (executable)
@@ -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