X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FUpgrade.pm;h=377a0b17f7314516525e3af3a1457418161ac496;hp=b0a2713e3198524b9eee274a5cdb5e8805463b3f;hb=5e76080d6ca453fa4471d21e10da023f8bb03184;hpb=6a38d3f3aa3e7953d3da2c6a48466bf600366732 diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index b0a2713e3..377a0b17f 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -161,6 +161,14 @@ If you need to continue using the old Form 477 report, turn on the $conf->delete('unsuspendauto'); } + # if translate-auto-insert is enabled for a locale, ensure that invoice + # terms are in the msgcat (is there a better place for this?) + if (my $auto_locale = $conf->config('translate-auto-insert')) { + my $lh = FS::L10N->get_handle($auto_locale); + foreach (@FS::Conf::invoice_terms) { + $lh->maketext($_) if length($_); + } + } } sub upgrade_overlimit_groups {