mirror of
https://github.com/pyrollo/display_modpack.git
synced 2025-07-05 09:30:41 +02:00
replace intllib
This commit is contained in:
@ -22,10 +22,8 @@ boards = {}
|
||||
boards.name = minetest.get_current_modname()
|
||||
boards.path = minetest.get_modpath(boards.name)
|
||||
|
||||
-- Load support for intllib.
|
||||
local S, NS = dofile(boards.path.."/intllib.lua")
|
||||
boards.intllib = S
|
||||
local F = function(...) return minetest.formspec_escape(S(...)) end
|
||||
-- Translation support
|
||||
local S = minetest.get_translator(boards.name)
|
||||
|
||||
-- Load font
|
||||
dofile(boards.path.."/font_tinycurs.lua")
|
||||
@ -34,9 +32,9 @@ local function set_formspec(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"size[6,4]"..default.gui_bg..default.gui_bg_img..default.gui_slots..
|
||||
"textarea[0.5,0.7;5.5,3;display_text;"..F("Text")..";${display_text}]"..
|
||||
"button_exit[3,3.5;2,1;ok;"..F("Write").."]"..
|
||||
"button_exit[1,3.5;2,1;wipe;"..F("Wipe").."]")
|
||||
"textarea[0.5,0.7;5.5,3;display_text;"..S("Text")..";${display_text}]"..
|
||||
"button_exit[3,3.5;2,1;ok;"..S("Write").."]"..
|
||||
"button_exit[1,3.5;2,1;wipe;"..S("Wipe").."]")
|
||||
end
|
||||
|
||||
-- On boards, everyone is allowed to write and wipe
|
||||
|
Reference in New Issue
Block a user