From 7d897015cbaeabd8866f4ba0e358be399a92321d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 5 Oct 2010 15:44:53 +0200 Subject: [PATCH] =?utf8?q?findsub:=20Bindestriche=20in=20=C3=9Cbersetzung?= =?utf8?q?=20in=20Unterstriche=20umwandeln?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Ansonsten wird bei Original 'PDF preview' und Übersetzung "PDF-Vorschau" die Rückübersetzung nicht gefunden. --- SL/Locale.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Locale.pm b/SL/Locale.pm index 1f0c9f33d..e2d374437 100644 --- a/SL/Locale.pm +++ b/SL/Locale.pm @@ -241,7 +241,7 @@ sub findsub { $original =~ s/_+/_/g; $translation = lc $translation; - $translation =~ s/\s+/_/g; + $translation =~ s/[\s\-]+/_/g; $self->{texts_reverse}->{$translation} ||= [ ]; push @{ $self->{texts_reverse}->{$translation} }, $original; -- 2.20.1