--- a/hedgewars/uChat.pas Tue Aug 21 02:14:15 2018 +0200
+++ b/hedgewars/uChat.pas Tue Aug 21 15:46:34 2018 +0200
@@ -35,7 +35,7 @@
procedure TextInput(var event: TSDL_TextInputEvent);
implementation
-uses uInputHandler, uTypes, uVariables, uCommands, uUtils, uTextures, uRender, uIO, uScript, uRenderUtils;
+uses uInputHandler, uTypes, uVariables, uCommands, uUtils, uTextures, uRender, uIO, uScript, uRenderUtils, uLocale;
const MaxStrIndex = 27;
MaxInputStrLen = 200;
@@ -1113,7 +1113,7 @@
if copy(s, 1, 4) = '/me ' then
s:= #2 + '* ' + UserNick + ' ' + copy(s, 5, Length(s) - 4)
else
- s:= #1 + UserNick + ': ' + s;
+ s:= #1 + Format(trmsg[sidChat], [UserNick, s]);
AddChatString(s)
end;
@@ -1122,7 +1122,7 @@
begin
SendIPC('b' + s);
- s:= #4 + '[Team] ' + UserNick + ': ' + s;
+ s:= #4 + Format(trmsg[sidChatTeam], [UserNick, s]);
AddChatString(s)
end;