* Some fixes
This commit is contained in:
Applevangelist 2023-11-02 19:25:28 +01:00
parent bcbe872c7d
commit 7393cb2cbe

View File

@ -722,8 +722,8 @@ ATIS.Messages = {
TEMPERATURE = "Temperature", TEMPERATURE = "Temperature",
DEWPOINT = "Dew point", DEWPOINT = "Dew point",
ALTIMETER = "Altimeter", ALTIMETER = "Altimeter",
ACTIVERUN = "Active runway take off", ACTIVERUN = "Active runway departure",
ACTIVELANDING = "Active runway landing", ACTIVELANDING = "Active runway arrival",
LEFT = "Left", LEFT = "Left",
RIGHT = "Right", RIGHT = "Right",
RWYLENGTH = "Runway length", RWYLENGTH = "Runway length",
@ -2516,11 +2516,11 @@ function ATIS:onafterBroadcast( From, Event, To )
if runwayLanding then if runwayLanding then
local actrun = self.gettext:GetEntry("ACTIVELANDING",self.locale) local actrun = self.gettext:GetEntry("ACTIVELANDING",self.locale)
--subtitle=string.format("Active runway landing %s", runwayLanding) --subtitle=string.format("Active runway landing %s", runwayLanding)
subtitle=string.format("%s %s", actrun, runwayTakeoff) subtitle=string.format("%s %s", actrun, runwayLanding)
if rwyTakeoffLeft==true then if rwyLandingLeft==true then
--subtitle=subtitle.." Left" --subtitle=subtitle.." Left"
subtitle=subtitle.." "..self.gettext:GetEntry("LEFT",self.locale) subtitle=subtitle.." "..self.gettext:GetEntry("LEFT",self.locale)
elseif rwyTakeoffLeft==false then elseif rwyLandingLeft==false then
--subtitle=subtitle.." Right" --subtitle=subtitle.." Right"
subtitle=subtitle.." "..self.gettext:GetEntry("RIGHT",self.locale) subtitle=subtitle.." "..self.gettext:GetEntry("RIGHT",self.locale)
end end
@ -2529,11 +2529,11 @@ function ATIS:onafterBroadcast( From, Event, To )
if runwayTakeoff then if runwayTakeoff then
local actrun = self.gettext:GetEntry("ACTIVERUN",self.locale) local actrun = self.gettext:GetEntry("ACTIVERUN",self.locale)
--subtitle=string.format("Active runway %s", runwayLanding) --subtitle=string.format("Active runway %s", runwayLanding)
subtitle=string.format("%s %s", actrun, runwayLanding) subtitle=string.format("%s %s", actrun, runwayTakeoff)
if rwyLandingLeft==true then if rwyTakeoffLeft==true then
--subtitle=subtitle.." Left" --subtitle=subtitle.." Left"
subtitle=subtitle.." "..self.gettext:GetEntry("LEFT",self.locale) subtitle=subtitle.." "..self.gettext:GetEntry("LEFT",self.locale)
elseif rwyLandingLeft==false then elseif rwyTakeoffLeft==false then
--subtitle=subtitle.." Right" --subtitle=subtitle.." Right"
subtitle=subtitle.." "..self.gettext:GetEntry("RIGHT",self.locale) subtitle=subtitle.." "..self.gettext:GetEntry("RIGHT",self.locale)
end end