From 1c19bb0532483da1ff7e0af3a98965550e744f68 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Katrin Fischer Signed-off-by: Tomás Cohen Arazi Signed-off-by: Tomas Cohen Arazi (cherry picked from commit aa3444505f2b47a73f4b281a622b6c1073bb5c8d) Signed-off-by: Jacob O'Mara (cherry picked from commit 27d128c3ab24096fccb1fa96a05ad7173c9bbc9d) Signed-off-by: Lucas Gass --- misc/translator/LangInstaller.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm index 7ba313ecaa..8a990e334f 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.39.5