1
0
Fork 0

Make sign formspec translatable

objects
Wuzzy 2019-03-21 11:35:53 +01:00
parent 579e526615
commit 78fc9565c0
3 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -2,3 +2,7 @@
Sign=Schild
Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.=Schilder können beschrieben werden und kommen in zwei Varianten: Wandschild und stehendes Schild. Sie können auf und an den Seiten von anderen Blöclen platziert werden, aber nicht unter ihnen.
After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again.=Nachdem das Schild platziert wurde, kann man etwas darauf schreiben. 4 Zeilen mit je 15 Zeichen pro Zeile sind verfügbar, alles darüber geht verloren. Es werden nicht alle Zeichen unterstützt. Der Text kann nicht geändert werden, sobald er geschrieben wurde; man muss das Schild erneut platzieren.
Edit sign text:=Schildtext bearbeiten:
Maximum line length: 15=Maximale Zeilenlänge: 15
Maximum lines: 4=Maximale Zeilen: 4
Done=Fertig

View File

@ -2,3 +2,7 @@
Sign=
Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.=
After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again.=
Edit sign text:=
Maximum line length: 15=
Maximum lines: 4=
Done=