From e7e21243dbc4789fddab0dd732410bedf495f121 Mon Sep 17 00:00:00 2001 From: Daniel Rodriguez Date: Sat, 21 Jan 2017 18:48:09 +0100 Subject: [PATCH] Automatically remove conflicting quotes on pot generation --- extras/translations/generate_translatable_strings.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extras/translations/generate_translatable_strings.pl b/extras/translations/generate_translatable_strings.pl index ecccfee..c006d5f 100644 --- a/extras/translations/generate_translatable_strings.pl +++ b/extras/translations/generate_translatable_strings.pl @@ -72,6 +72,9 @@ foreach (@lines) { $str = $2; } + # Remove conflicting quotes (\) + $str =~ s/\\\$/\$/g; + # Next if it was seen before $seen{$str}++; next if $seen{$str} > 1;