Minor fixes

This commit is contained in:
Wuzzy 2014-10-02 00:53:17 +02:00
parent 6b41d3b20c
commit 5b0c117df4

View File

@ -1,12 +1,13 @@
tutorial = {} tutorial = {}
-- intllib support -- intllib support
local S
if (minetest.get_modpath("intllib")) then if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua") dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname()) S = intllib.Getter(minetest.get_current_modname())
F = minetest.formspec_escape(S(s))
else else
S = function ( s ) return s end S = function ( s ) return s end
F = function ( s ) return minetest.formspec_escape(s) end
end end
-- Saves tutorial state into file -- Saves tutorial state into file
@ -316,12 +317,12 @@ time to restore the bubbles.
Movement in a liquid is slightly different than on solid ground: Movement in a liquid is slightly different than on solid ground:
Swim forwards: [W],".. Swim forwards: [W]
Swim backwards: [S],".. Swim backwards: [S]
Swim leftwards: [A],".. Swim leftwards: [A]
Swim rightwards: [D],".. Swim rightwards: [D]
Swim upwards: [Space],".. Swim upwards: [Space]
Swim downwards: [Shift],".. Swim downwards: [Shift]
At the bottom of the pool lies a gold ingot. Try to get it!]] At the bottom of the pool lies a gold ingot. Try to get it!]]
@ -999,13 +1000,13 @@ minetest.register_on_joinplayer(function(player)
"tablecolumns[text]".. "tablecolumns[text]"..
"tableoptions[background=#000000;highlight=#000000;border=false]".. "tableoptions[background=#000000;highlight=#000000;border=false]"..
"table[0,0.25;12,5.2;creative_text;".. "table[0,0.25;12,5.2;creative_text;"..
tutorial.texts.notsingleplayer.. tutorial.convert_newlines(F(tutorial.texts.notsingleplayer))..
"]".. "]"..
"button_exit[2.5,5.5;3,1;close;"..F("Continue anyways").."]".. "button_exit[2.5,5.5;3,1;close;"..F("Continue anyways").."]"..
"button_exit[6.5,5.5;3,1;leave;"..F("Leave tutorial").."]" "button_exit[6.5,5.5;3,1;leave;"..F("Leave tutorial").."]"
elseif(minetest.setting_getbool("creative_mode")) then elseif(minetest.setting_getbool("creative_mode")) then
formspec = "size[12,6]".. formspec = "size[12,6]"..
"label[-0.15,-0.4;"..F("Warning: Creative mode is active").."]".. "label[-0.15,-0.4;"..(F("Warning: Creative mode is active")).."]"..
"tablecolumns[text]".. "tablecolumns[text]"..
"tableoptions[background=#000000;highlight=#000000;border=false]".. "tableoptions[background=#000000;highlight=#000000;border=false]"..
"table[0,0.25;12,5.2;creative_text;".. "table[0,0.25;12,5.2;creative_text;"..