Bug 12301: Remove warnings on translate scripts
[koha.git] / misc / translator / TmplTokenizer.pm
index 6129f8d..02767bd 100644 (file)
@@ -471,7 +471,7 @@ sub trim ($) {
 sub quote_po ($) {
     my($s) = @_;
     # Locale::PO->quote is buggy, it doesn't quote newlines :-/
-    $s =~ s/([\\"])/\\\1/gs;
+    $s =~ s/([\\"])/\\$1/gs;
     $s =~ s/\n/\\n/g;
     #$s =~ s/[\177-\377]/ sprintf("\\%03o", ord($&)) /egs;
     return "\"$s\"";