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:
6
init.lua
6
init.lua
@ -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,
|
||||
|
Reference in New Issue
Block a user