Make sign formspec translatable
This commit is contained in:
parent
579e526615
commit
78fc9565c0
3 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
local S = minetest.get_translator("mcl_signs")
|
||||
local F = minetest.formspec_escape
|
||||
|
||||
-- Font: 04.jp.org
|
||||
|
||||
|
@ -236,7 +237,7 @@ local show_formspec = function(player, pos)
|
|||
minetest.show_formspec(
|
||||
player:get_player_name(),
|
||||
"mcl_signs:set_text_"..pos.x.."_"..pos.y.."_"..pos.z,
|
||||
"size[6,3]textarea[0.25,0.25;6,1.5;text;Edit sign text:;]label[0,1.5;Maximum line length: 15\nMaximum lines: 4]button_exit[0,2.5;6,1;submit;Done]"
|
||||
"size[6,3]textarea[0.25,0.25;6,1.5;text;"..F(S("Edit sign text:"))..";]label[0,1.5;"..F(S("Maximum line length: 15")).."\n"..F(S("Maximum lines: 4")).."]button_exit[0,2.5;6,1;submit;"..F(S("Done")).."]"
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue