Bug 18901: [QA Follow-up] Do not translate zzpref either
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 12 Jul 2017 11:33:51 +0000 (13:33 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 14 Jul 2017 15:30:00 +0000 (12:30 -0300)
Adding one backslash makes a difference :)
We need to escape the dot in the regex to exclude a file like zzpref
from translation too. Perfect_regexes++

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
misc/translator/LangInstaller.pm

index feaeb7a..cd947fc 100644 (file)
@@ -82,7 +82,7 @@ sub new {
 
     # Get all .pref file names
     opendir my $fh, $self->{path_pref_en};
-    my @pref_files = grep { /.pref$/ } readdir($fh);
+    my @pref_files = grep { /\.pref$/ } readdir($fh);
     close $fh;
     $self->{pref_files} = \@pref_files;