replace $ by \$

This commit is contained in:
Morris Jobke 2014-06-03 08:13:50 +02:00
parent 5add56b6ca
commit 9107cd2bde
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,10 @@ elsif( $task eq 'write' ){
} }
next if $#strings == -1; # Skip empty files next if $#strings == -1; # Skip empty files
for (@strings) {
s/\$/\\\$/g;
}
# Write PHP file # Write PHP file
open( OUT, ">$language.php" ); open( OUT, ">$language.php" );
print OUT "<?php\n\$TRANSLATIONS = array(\n"; print OUT "<?php\n\$TRANSLATIONS = array(\n";