X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Flocales.pl;h=9e6a4ae58ecfd6ec4fe91654a9853c2a1f6f79f4;hb=cb3431bcc4eae2bc5a2851cae10f9dfd8f517c4a;hp=c4adf1cf18bc179142c8fd4bdc7ef5f11dae0be3;hpb=24bff6e45ea380c65791b68745f615763d9472ab;p=kivitendo-erp.git diff --git a/scripts/locales.pl b/scripts/locales.pl index c4adf1cf1..9e6a4ae58 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -444,8 +444,11 @@ sub scanfile { } } - my ($found) = / (?: locale->text | \b t8 ) \b .*? \(/x; - $postmatch = "$'"; + my $found; + if (/ (?: locale->text | \b t8 ) \b .*? \(/x) { + $found = 1; + $postmatch = "$'"; + } if ($found) { my $string;