From 934dcc3f21a6053d3f6fff08a02ede6f75385173 Mon Sep 17 00:00:00 2001 From: orwell Date: Tue, 10 Jun 2025 21:39:50 +0200 Subject: Remove attrans, unify translation strings with S --- advtrains/trainhud.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'advtrains/trainhud.lua') diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua index 9d9d475..eeebff0 100644 --- a/advtrains/trainhud.lua +++ b/advtrains/trainhud.lua @@ -1,5 +1,8 @@ --trainhud.lua: holds all the code for train controlling +-- Get current translator +local S = advtrains.translate + local T = advtrains.texture advtrains.hud = {} @@ -274,7 +277,7 @@ function advtrains.hud_train_format(train, flip) hud:add_n7seg(131, 18, 28, 14, lzbdisp.d, 3, lzbdisp.c) if res and res == 0 then - table.insert(st, attrans("OVERRUN RED SIGNAL! Examine situation and reverse train to move again.")) + table.insert(st, S("OVERRUN RED SIGNAL! Examine situation and reverse train to move again.")) end if train.atc_command then -- cgit v1.2.3