1
0
mirror of https://github.com/SmallJoker/exchange_shop.git synced 2025-07-05 01:30:29 +02:00

Add i18n whith get_translator

This commit is contained in:
Peppy
2020-04-21 20:00:41 +02:00
committed by SmallJoker
parent 3b79c1c7b6
commit 951981c79a
3 changed files with 42 additions and 35 deletions

View File

@ -6,6 +6,12 @@ local modpath = minetest.get_modpath("exchange_shop")
local has_currency = minetest.get_modpath("currency")
local has_bitchange = minetest.get_modpath("bitchange")
-- Internationalisaton
exchange_shop.S = minetest.get_translator("exchange_shop")
exchange_shop.FS = function(...)
return minetest.formspec_escape(exchange_shop.S(...))
end
-- Currency migrate options
exchange_shop.migrate = {
use_lbm = false,