Improve localization support

- nDPI categories are now localized (see getCategoryLabel)
- Add some missing localization in plugins/user scripts pages
This commit is contained in:
emanuele-f 2020-03-03 18:24:24 +01:00
parent dcad4a80ff
commit b0520ee189
26 changed files with 153 additions and 43 deletions

View file

@ -56,8 +56,12 @@ function format_utils.secondsToTime(seconds)
if(days > 0) then
if(string.len(msg) > 0) then msg = msg .. ", " end
msg = msg .. days .. " day"
if(days > 1) then msg = msg .. "s" end
if(days > 1) then
msg = msg .. days .. " " .. i18n("metrics.days")
else
msg = msg .. days .. " " .. i18n("day")
end
end
end