mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19: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
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue