add alert box message for translations

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2023-12-14 15:51:11 +00:00
parent 947d84316b
commit 4cad780613
2 changed files with 3 additions and 2 deletions

View File

@ -1469,7 +1469,7 @@ function handleServerCommand(data) {
case 'alertbox': { case 'alertbox': {
// Display an old style alert box // Display an old style alert box
if (data.title && data.msg) { if (data.title && data.msg) {
MeshServerLogEx(18, [data.title, data.msg], "Displaying alert box, title=" + data.title + ", message=" + data.msg, data); MeshServerLogEx(158, [data.title, data.msg], "Displaying alert box, title=" + data.title + ", message=" + data.msg, data);
try { require('message-box').create(data.title, data.msg, 9999, 1).then(function () { }).catch(function () { }); } catch (ex) { } try { require('message-box').create(data.title, data.msg, 9999, 1).then(function () { }).catch(function () { }); } catch (ex) { }
} }
break; break;

View File

@ -14697,7 +14697,8 @@
154: "Account changed to sync with LDAP data.", 154: "Account changed to sync with LDAP data.",
155: "Denied user login from {0}, {1}, {2}", 155: "Denied user login from {0}, {1}, {2}",
156: "Verified messaging account of user {0}", 156: "Verified messaging account of user {0}",
157: "Removed messaging account of user {0}" 157: "Removed messaging account of user {0}",
158: "Displaying alert box, title=\"{0}\", message=\"{1}\""
}; };
var eventsShortMessageId = { var eventsShortMessageId = {