findsub: Bindestriche in Übersetzung in Unterstriche umwandeln
[kivitendo-erp.git] / SL / Locale.pm
index 1f0c9f3..e2d3744 100644 (file)
@@ -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;