Fix product name in localized message

Fixes #3587
This commit is contained in:
emanuele-f 2020-03-20 17:28:57 +01:00
parent ffea9b2165
commit a620c4a75c
4 changed files with 7 additions and 7 deletions

View file

@ -972,7 +972,7 @@ if(is_admin and ntop.isPackage() and not ntop.isWindows()) then
<script type="text/javascript">
let restart_csrf = ']] print(ntop.getRandomCSRFValue()) print[[';
let restartService = function() {
if (confirm(']] print(i18n("restart.confirm")) print[[')) {
if (confirm(']] print(i18n("restart.confirm", {product=info.product})) print[[')) {
$.ajax({
type: 'POST',
url: ']] print (ntop.getHttpPrefix()) print [[/lua/admin/service_restart.lua',
@ -981,7 +981,7 @@ if(is_admin and ntop.isPackage() and not ntop.isWindows()) then
},
success: function(rsp) {
restart_csrf = rsp.csrf;
alert("]] print(i18n("restart.restarting")) print[[");
alert("]] print(i18n("restart.restarting", {product=info.product})) print[[");
}
});
}