hedgewars/uScript.pas
changeset 13679 3f6fae745f84
parent 13668 91d48cbae927
child 13726 61095cb5f58a
--- a/hedgewars/uScript.pas	Tue Aug 21 02:14:15 2018 +0200
+++ b/hedgewars/uScript.pas	Tue Aug 21 15:46:34 2018 +0200
@@ -86,6 +86,7 @@
     uVisualGearsList,
     uGearsHandlersMess,
     uPhysFSLayer,
+    uLocale,
     SDLh
 {$IFNDEF PAS2C}
     , typinfo
@@ -1628,7 +1629,7 @@
                vgear^.Text:= lua_tostring(L, 2);
                if Gear^.Kind = gtHedgehog then
                    begin
-                   AddChatString(#9+'[' + gear^.Hedgehog^.Name + '] '+vgear^.text);
+                   AddChatString(#9+FormatA(trmsg[sidChatHog], [gear^.Hedgehog^.Name, vgear^.text]));
                    vgear^.Hedgehog:= gear^.Hedgehog
                    end
                else vgear^.Frame:= gear^.uid;