From 7e4d6e730d263afee6502e20444668053ddcb418 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 29 Nov 2022 10:22:10 +0100 Subject: [PATCH] Bug 32356: Install installer translated files on update If the installer files exist for a given language, the translate script won't update it. We should get a confirmation from Bernardo (author of bug 24262), but I don't understand why it could be needed (side-effects?) Test plan: Installer several times the same language, drop the DB and run the installer+onboarding process. Check files installed by the installer (yaml for notice templates, biblio frameworks) have inserted the data properly in DB. --- misc/translator/LangInstaller.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index 7ba313ecaa6..8a990e334f3 100644 --- a/misc/translator/LangInstaller.pm +++ b/misc/translator/LangInstaller.pm @@ -376,10 +376,6 @@ sub install_installer { my $intradir = C4::Context->config('intranetdir'); my $db_scheme = C4::Context->config('db_scheme'); my $langdir = "$intradir/installer/data/$db_scheme/$self->{lang}"; - if ( -d $langdir ) { - say "$self->{lang} installer dir $langdir already exists.\nDelete it if you want to recreate it." if $self->{verbose}; - return; - } say "Install installer files\n" if $self->{verbose}; -- 2.25.1