Fixes locales_utils.lua:10: module 'i18n' not found error

This commit is contained in:
Simone Mainardi 2021-10-11 15:03:21 +02:00
parent 3c9a9437a0
commit e734f3ee98

View file

@ -2,13 +2,10 @@
-- (C) 2014-21 - ntop.org
--
if(i18n ~= nil) then
-- avoid multiple inclusions
return
end
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/i18n/?.lua;" .. package.path
i18n = require "i18n"
local dirs = ntop.getDirs()
local locales = {}