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

@ -1293,6 +1293,12 @@ end
-- #################################
function getCategoryLabel(cat_name)
local v = i18n("ndpi_categories." .. cat_name)
if v then
-- Localized string found
return(v)
end
cat_name = cat_name:gsub("^%l", string.upper)
return(cat_name)
end