From: Moritz Bunkus Date: Tue, 5 Oct 2010 13:44:53 +0000 (+0200) Subject: findsub: Bindestriche in Übersetzung in Unterstriche umwandeln X-Git-Tag: release-2.6.2beta1~11 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/7d897015cbaeabd8866f4ba0e358be399a92321d?ds=sidebyside;hp=--cc findsub: Bindestriche in Übersetzung in Unterstriche umwandeln Ansonsten wird bei Original 'PDF preview' und Übersetzung "PDF-Vorschau" die Rückübersetzung nicht gefunden. --- 7d897015cbaeabd8866f4ba0e358be399a92321d 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;