aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSingularis <singularis@volny.cz>2022-12-01 19:15:05 +0100
committerorwell <orwell@bleipb.de>2025-05-27 20:22:01 +0200
commit421447e9e6acbeaf2b53fecb1126f36b178e6151 (patch)
treebfd8f367720c680fa029b5d67473462d85f01681
parent378bb229d8a9698a2695514c8079b315c2a9d1ad (diff)
downloadadvtrains-421447e9e6acbeaf2b53fecb1126f36b178e6151.tar.gz
advtrains-421447e9e6acbeaf2b53fecb1126f36b178e6151.tar.bz2
advtrains-421447e9e6acbeaf2b53fecb1126f36b178e6151.zip
[advtrains] oprava pádu serveru při použití palubního počítače
- [advtrains] jméno vlastníka/ice vlaku se nově zobrazuje s diakritikou
-rw-r--r--advtrains/mod.conf2
-rw-r--r--advtrains/wagons.lua10
2 files changed, 6 insertions, 6 deletions
diff --git a/advtrains/mod.conf b/advtrains/mod.conf
index 20ac6c0..0c26ba8 100644
--- a/advtrains/mod.conf
+++ b/advtrains/mod.conf
@@ -3,5 +3,5 @@ title=Advanced Trains Core
description=Core system for realistic trains in Minetest
author=orwell96
-depends=serialize_lib
+depends=ch_core,serialize_lib
optional_depends=mesecons,mesecons_switch,digtron,moretrees,ebony,cherrytree,chestnuttree,plumtree,willow,darkage,basic_materials,building_blocks,technic_worldgen
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index 106bb2b..ab994d4 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -351,11 +351,11 @@ function wagon:on_step(dtime)
end
end
end
-
+
--check infotext
local outside=train.text_outside or ""
if setting_show_ids then
- outside = outside .. "\nvlak:" .. data.train_id .. " vagon:" .. self.id .. " vlastník/ice:" .. data.owner
+ outside = outside .. "\nvlak:" .. data.train_id .. " vagon:" .. self.id .. " vlastník/ice:" .. ch_core.prihlasovaci_na_zobrazovaci(data.owner)
end
--show off-track information in outside text instead of notifying the whole server about this
@@ -868,13 +868,13 @@ function wagon:show_wagon_properties(pname)
if data.fc then
if not data.fcind then data.fcind = 1 end
if data.fcind > 1 then
- form=form.."button[0.5,3.5;1,1;fcp;" .. S("prev FC") .."]"
+ form=form.."button[0.5,3.5;1,1;fcp;" .. attrans("prev FC") .."]"
end
- form=form.."label[1.5,3.5;" .. S("Current FC:").."]"
+ form=form.."label[1.5,3.5;" .. attrans("Current FC:").."]"
local cur = data.fc[data.fcind] or ""
form=form.."label[1.5,3.75;"..minetest.formspec_escape(cur).."]"
- form=form.."button[3.5,3.5;1,1;fcn;" .. S("next FC") .. "]"
+ form=form.."button[3.5,3.5;1,1;fcn;" .. attrans("next FC") .. "]"
end
form=form.."button_exit[0.5,4.5;4,1;save;"..attrans("Save wagon properties").."]"
minetest.show_formspec(pname, "advtrains_prop_"..self.id, form)