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
|
|
@ -710,11 +710,11 @@ function printSeries(options, tags, start_time, end_time, base_url, params)
|
|||
local by_category = {}
|
||||
|
||||
for _, serie in pairs(series) do
|
||||
by_category[serie.category] = 1
|
||||
by_category[getCategoryLabel(serie.category)] = serie.category
|
||||
end
|
||||
|
||||
for category in pairsByKeys(by_category, asc) do
|
||||
populateGraphMenuEntry(category, base_url, table.merge(params, {ts_schema=schema, category=category}))
|
||||
for label, category in pairsByKeys(by_category, asc) do
|
||||
populateGraphMenuEntry(label, base_url, table.merge(params, {ts_schema=schema, category=category}))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue