aboutsummaryrefslogtreecommitdiff
path: root/advtrains/init.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-07-19 23:04:13 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-07-19 23:04:13 +0200
commit9d52770f211f6290fc172e82bad00daed0853848 (patch)
treeaebaacaa33f48eef2a01c396ad042cab05badb56 /advtrains/init.lua
parent8c66f1caf495442e1435bf3a49176932eee986b3 (diff)
parentcc78b63e342c131e2a08b3697681d9d5fbf86d4f (diff)
downloadadvtrains-9d52770f211f6290fc172e82bad00daed0853848.tar.gz
advtrains-9d52770f211f6290fc172e82bad00daed0853848.tar.bz2
advtrains-9d52770f211f6290fc172e82bad00daed0853848.zip
Add client side translations by ywang
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r--advtrains/init.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index 84cfa38..d6c3c92 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -22,12 +22,8 @@ Copyright (C) 2016-2020 Moritz Blei (orwell96) and contributors
local lot = os.clock()
minetest.log("action", "[advtrains] Loading...")
--- Boilerplate to support localized strings if intllib mod is installed.
-if minetest.get_modpath("intllib") then
- attrans = intllib.Getter()
-else
- attrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end
-end
+-- There is no need to support 0.4.x anymore given that the compatitability with it is already broken by 1bb1d825f46af3562554c12fba35a31b9f7973ff
+attrans = minetest.get_translator ("advtrains")
--advtrains