Tweak chat command replies for /lua command
authorWuzzy <Wuzzy2@mail.ru>
Tue, 10 Jul 2018 15:20:19 +0200
changeset 13463 32032120435c
parent 13462 b587cdb03bac
child 13464 08a3851aaf67
Tweak chat command replies for /lua command
hedgewars/uChat.pas
hedgewars/uTypes.pas
share/hedgewars/Data/Locale/de.txt
share/hedgewars/Data/Locale/en.txt
--- a/hedgewars/uChat.pas	Tue Jul 10 13:28:47 2018 +0200
+++ b/hedgewars/uChat.pas	Tue Jul 10 15:20:19 2018 +0200
@@ -528,15 +528,17 @@
             if liveLua then
                 begin
                 AddFileLog('[Lua] chat input string parsing enabled');
-                AddChatString(#3 + 'Lua parsing: ON');
+                AddChatString(#3 + trmsg[sidLuaParsingOn]);
                 end
             else
                 begin
                 AddFileLog('[Lua] chat input string parsing disabled');
-                AddChatString(#3 + 'Lua parsing: OFF');
+                AddChatString(#3 + trmsg[sidLuaParsingOff]);
                 end;
             UpdateInputLinePrefix();
-            end;
+            end
+        else
+            AddChatString(#5 + trmsg[sidLuaParsingDenied]);
         exit
         end;
 
--- a/hedgewars/uTypes.pas	Tue Jul 10 13:28:47 2018 +0200
+++ b/hedgewars/uTypes.pas	Tue Jul 10 15:20:19 2018 +0200
@@ -479,7 +479,7 @@
             sidNotAvailableInSD, sidHealthGain, sidEmptyCrate, sidUnknownKey,
             sidWinner2, sidWinner3, sidWinner4, sidWinner5, sidWinner6,
             sidWinner7, sidWinnerAll, sidTeamGone, sidTeamBack, sidAutoSkip,
-            sidFPS);
+            sidFPS, sidLuaParsingOff, sidLuaParsingOn, sidLuaParsingDenied);
 
     TCmdHelpStrId = (
             sidCmdHeaderBasic, sidCmdTogglechat, sidCmdTeam, sidCmdMe,
--- a/share/hedgewars/Data/Locale/de.txt	Tue Jul 10 13:28:47 2018 +0200
+++ b/share/hedgewars/Data/Locale/de.txt	Tue Jul 10 15:20:19 2018 +0200
@@ -106,6 +106,9 @@
 01:38=%1 ist zurück.
 01:39=%1 hat den Zug automatisch übersprungen.
 01:40=%1 fps
+01:41=Lua-Parsing: AUS
+01:42=Lua-Parsing: AN
+01:43=Lua-Parsing ist in Online-Spielen nicht erlaubt!
 
 ; Event messages
 ; Hog (%1) died
@@ -1407,7 +1410,7 @@
 06:08=/help: Grundlegende Client-Chatbefehle auflisten
 06:09=/help taunts: Spott-Chatbefehle auflisten
 06:10=/history: Langes Chatprotokoll umschalten
-06:11=/lua: Lua-Entwicklerkonsole umschalten
+06:11=/lua: Lua-Parsing umschalten (für Entwickler)
 06:12=Liste der Spott-Chatbefehle:
 06:13="Text": Text in Sprechblase anzeigen
 06:14='Text': Text in Denkblase anzeigen
--- a/share/hedgewars/Data/Locale/en.txt	Tue Jul 10 13:28:47 2018 +0200
+++ b/share/hedgewars/Data/Locale/en.txt	Tue Jul 10 15:20:19 2018 +0200
@@ -105,6 +105,9 @@
 01:38=%1 is back.
 01:39=%1 automatically skipped turn.
 01:40=%1 fps
+01:41=Lua parsing: OFF
+01:42=Lua parsing: ON
+01:43=Lua parsing is not allowed in online games!
 
 ; Event messages
 ; Normal hog (%1) died (0 health)
@@ -1308,7 +1311,7 @@
 06:08=/help: List basic client chat commands
 06:09=/help taunts: List taunt chat commands
 06:10=/history: Toggle long chat history display
-06:11=/lua: Toggle Lua developer console
+06:11=/lua: Toggle Lua parsing (for developers)
 06:12=List of taunt chat commands:
 06:13="text": Put text in speech bubble
 06:14='text': Put text in thinking bubble