mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 13:04:10 +00:00
Translate the developer-overlay notification at the receiving end, fixes #3304.
This was SVN commit r17789.
This commit is contained in:
@@ -713,12 +713,19 @@ function toggleDeveloperOverlay()
|
||||
return;
|
||||
|
||||
let devCommands = Engine.GetGUIObjectByName("devCommands");
|
||||
if (devCommands.hidden)
|
||||
submitChatDirectly(translate("The Developer Overlay was opened."));
|
||||
else
|
||||
submitChatDirectly(translate("The Developer Overlay was closed."));
|
||||
|
||||
devCommands.hidden = !devCommands.hidden;
|
||||
|
||||
let message = devCommands.hidden ?
|
||||
markForTranslation("The Developer Overlay was closed.") :
|
||||
markForTranslation("The Developer Overlay was opened.");
|
||||
|
||||
Engine.PostNetworkCommand({
|
||||
"type": "aichat",
|
||||
"message": message,
|
||||
"translateMessage": true,
|
||||
"translateParameters": [],
|
||||
"parameters": {}
|
||||
});
|
||||
}
|
||||
|
||||
function closeOpenDialogs()
|
||||
|
||||
Reference in New Issue
Block a user