summaryrefslogtreecommitdiffstats
path: root/l10n/l10n.pl
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2014-06-03 08:13:50 +0200
committerMorris Jobke <morris.jobke@gmail.com>2014-06-03 08:13:57 +0200
commit9107cd2bded1126376203108eae2fcd788b4c4e2 (patch)
treeb108f90ffc337426d50ee495c6d91ef70567b92e /l10n/l10n.pl
parent5add56b6ca7a9ad5c89af0d18af42dcff7f46f45 (diff)
downloadnextcloud-server-9107cd2bded1126376203108eae2fcd788b4c4e2.tar.gz
nextcloud-server-9107cd2bded1126376203108eae2fcd788b4c4e2.zip
replace $ by \$
Diffstat (limited to 'l10n/l10n.pl')
-rw-r--r--l10n/l10n.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/l10n/l10n.pl b/l10n/l10n.pl
index 1b25722aa4e..10df5f8f803 100644
--- a/l10n/l10n.pl
+++ b/l10n/l10n.pl
@@ -169,6 +169,10 @@ elsif( $task eq 'write' ){
}
next if $#strings == -1; # Skip empty files
+ for (@strings) {
+ s/\$/\\\$/g;
+ }
+
# Write PHP file
open( OUT, ">$language.php" );
print OUT "<?php\n\$TRANSLATIONS = array(\n";