X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Flocales.pl;h=8faea2148592301b4c35ed7630455d0750d9723a;hb=a258467b6ffbaa2bc7be78e5c564ed07c9aa5341;hp=29319632fb39b6863507876917f17444787bfc85;hpb=cff913a1c984f82558a7d59dec0b8b1a06c5530d;p=kivitendo-erp.git diff --git a/scripts/locales.pl b/scripts/locales.pl index 29319632f..8faea2148 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -14,7 +14,6 @@ BEGIN { unshift(@INC, $FindBin::Bin . '/../modules/override'); # Use our own versions of various modules (e.g. YAML). push (@INC, $FindBin::Bin . '/..'); - push (@INC, $FindBin::Bin . '/../modules/fallback'); # Only use our own versions of modules if there's no system version. } use Carp; @@ -28,10 +27,9 @@ use IO::Dir; use List::MoreUtils qw(apply); use List::Util qw(first); use Pod::Usage; -use YAML (); -use YAML::Loader (); # YAML tries to load Y:L at runtime, but can't find it after we chdir'ed use SL::DBUpgrade2; use SL::System::Process; +use SL::YAML; $OUTPUT_AUTOFLUSH = 1; @@ -57,7 +55,7 @@ our $missing = {}; our @lost = (); my %ignore_unused_templates = ( - map { $_ => 1 } qw(ct/testpage.html generic/autocomplete.html oe/periodic_invoices_email.txt part/testpage.html t/render.html t/render.js task_server/failure_notification_email.txt + map { $_ => 1 } qw(ct/testpage.html oe/periodic_invoices_email.txt part/testpage.html t/render.html t/render.js task_server/failure_notification_email.txt failed_background_jobs_report/email.txt) ); @@ -534,7 +532,7 @@ sub scanfile { sub scanmenu { my $file = shift; - my $menu = YAML::LoadFile($file); + my $menu = SL::YAML::LoadFile($file); for my $node (@$menu) { # possible for override files