mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Improve localization support
- nDPI categories are now localized (see getCategoryLabel) - Add some missing localization in plugins/user scripts pages
This commit is contained in:
parent
dcad4a80ff
commit
b0520ee189
26 changed files with 153 additions and 43 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue