Fix string escape (#3468)

This commit is contained in:
jekkos
2023-11-11 00:50:58 +01:00
committed by jekkos
parent 086a90b04d
commit 05372b96cc
2 changed files with 2 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ include($argv[1]);
echo "<?php\n";
echo "return [\n";
foreach ($lang as $key=>$value) {
echo "\t\"$key\" => \"$value\",\n";
echo "\t\"$key\" => \"".addcslashes($value, '"')."\",\n";
}
echo "];";
?>

View File

@@ -15,3 +15,4 @@ for file in $projectdir/application/language/**/*.php; do
sed -i "s/\(\s*\)\"${prefix}_/\1\"/g" $output
done
rm -rf "$projectdir/application"
git add $projectdir/application/language