Add Auto Camera messages to localisation
authornemo
Thu, 30 Oct 2014 15:09:49 -0400
changeset 10455 e167cfdf6e80
parent 10453 7e90d5856d56
child 10457 482c744b272c
Add Auto Camera messages to localisation
hedgewars/uCommandHandlers.pas
hedgewars/uTypes.pas
share/hedgewars/Data/Locale/en.txt
--- a/hedgewars/uCommandHandlers.pas	Tue Oct 28 10:27:35 2014 -0400
+++ b/hedgewars/uCommandHandlers.pas	Thu Oct 30 15:09:49 2014 -0400
@@ -580,12 +580,12 @@
 if autoCameraOn then
     begin
     FollowGear:= nil;
-    AddCaption(ansistring('Auto Camera Off'), $CCCCCC, capgrpVolume);
+    AddCaption(trmsg[sidAutoCameraOff], $CCCCCC, capgrpVolume);
     autoCameraOn:= false
     end
 else
     begin
-    AddCaption(ansistring('Auto Camera On'), $CCCCCC, capgrpVolume);
+    AddCaption(trmsg[sidAutoCameraOn], $CCCCCC, capgrpVolume);
     bShowFinger:= true;
     if not CurrentHedgehog^.Unplaced then
         FollowGear:= CurrentHedgehog^.Gear;
--- a/hedgewars/uTypes.pas	Tue Oct 28 10:27:35 2014 -0400
+++ b/hedgewars/uTypes.pas	Thu Oct 30 15:09:49 2014 -0400
@@ -449,7 +449,7 @@
             sidConfirm, sidSuddenDeath, sidRemaining, sidFuel, sidSync,
             sidNoEndTurn, sidNotYetAvailable, sidRoundSD, sidRoundsSD, sidReady,
             sidBounce1, sidBounce2, sidBounce3, sidBounce4, sidBounce5, sidBounce,
-            sidMute, sidAFK);
+            sidMute, sidAFK, sidAutoCameraOn, sidAutoCameraOff);
 
     // Events that are important for the course of the game or at least interesting for other reasons
     TEventId = (eidDied, eidDrowned, eidRoundStart, eidRoundWin, eidRoundDraw,
--- a/share/hedgewars/Data/Locale/en.txt	Tue Oct 28 10:27:35 2014 -0400
+++ b/share/hedgewars/Data/Locale/en.txt	Thu Oct 30 15:09:49 2014 -0400
@@ -83,6 +83,8 @@
 01:20=%1 Bounce
 01:21=Audio Muted
 01:22=AFK mode
+01:23=Auto Camera Off
+01:24=Auto Camera On
 
 ; Event messages
 ; Hog (%1) died