L./P.select_tag: 'default' auf Liste von Rose::DB::Object-Instanzen setzen können
[kivitendo-erp.git] / scripts / locales.pl
index c4adf1c..9e6a4ae 100755 (executable)
@@ -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;