]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Fehler in Funktionsnamensauflösung bei Übersetzungen mit Leerzeichen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 2 Feb 2010 15:25:36 +0000 (16:25 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 20 Jul 2010 11:27:42 +0000 (13:27 +0200)
SL/Locale.pm

index 5c800837ec81a4a184c6efeb2911e00a0b3c91c1..754d69cf21a738519491f3ac23c95707818c9bcf 100644 (file)
@@ -240,6 +240,7 @@ sub findsub {
       $original    =~ s/_+/_/g;
 
       $translation =  lc $translation;
       $original    =~ s/_+/_/g;
 
       $translation =  lc $translation;
+      $translation =~ s/\s+/_/g;
 
       $self->{texts_reverse}->{$translation} ||= [ ];
       push @{ $self->{texts_reverse}->{$translation} }, $original;
 
       $self->{texts_reverse}->{$translation} ||= [ ];
       push @{ $self->{texts_reverse}->{$translation} }, $original;