aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtranslate_menu.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate_menu.pl b/translate_menu.pl
index b2cf6ae..c634e14 100755
--- a/translate_menu.pl
+++ b/translate_menu.pl
@@ -52,7 +52,7 @@ foreach my $file (@ARGV) {
open ($FILE, ">$file");
for my $l (@lines) {
chomp($l);
- if (( $l =~ /(.*section=")([^"]+)("\s+.*)/ ) or ( $l =~ /(.*section=)([^"].+?)((\s|\\)+.*)/ )) {
+ if (( $l =~ /(.*section=)"([^"]+)"(\s+.*)/ ) or ( $l =~ /(.*section=)([^"].+?)((\s|\\)+.*)/ )) {
my ($beg, $section, $end) = ($1, $2, $3);
$section = translate($section);
$l = "$beg\"$section\"$end";