diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-01-23 21:29:59 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-01-23 21:29:59 +0100 |
commit | fac8b518c940176f4d644638b1c801c2c113f872 (patch) | |
tree | 6eca418e83f45e9650086a3ec88d7b957e676f07 /advtrains/advtrains_train_subway/init.lua | |
parent | 795065979874a976f27f4711968ea17c79a97f2b (diff) | |
download | advtrains-fac8b518c940176f4d644638b1c801c2c113f872.tar.gz advtrains-fac8b518c940176f4d644638b1c801c2c113f872.tar.bz2 advtrains-fac8b518c940176f4d644638b1c801c2c113f872.zip |
Add intllib support and German translation
Diffstat (limited to 'advtrains/advtrains_train_subway/init.lua')
-rw-r--r-- | advtrains/advtrains_train_subway/init.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/advtrains/advtrains_train_subway/init.lua b/advtrains/advtrains_train_subway/init.lua index 85bd28f..53e0a70 100644 --- a/advtrains/advtrains_train_subway/init.lua +++ b/advtrains/advtrains_train_subway/init.lua @@ -1,3 +1,9 @@ +local S +if minetest.get_modpath("intllib") then + S = intllib.Getter() +else + S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end +end advtrains.register_wagon("subway_wagon", { mesh="advtrains_subway_wagon.b3d", @@ -31,7 +37,7 @@ advtrains.register_wagon("subway_wagon", { -- atprint("subway custom_on_activate") -- self.object:set_animation({x=1,y=80}, 15, 0, true) --end, -}, "Subway Passenger Wagon", "advtrains_subway_wagon_inv.png") +}, S("Subway Passenger Wagon"), "advtrains_subway_wagon_inv.png") --wagons minetest.register_craft({ |