update localization

This commit is contained in:
FaceDeer 2017-09-19 23:44:59 -06:00
parent 04228904f5
commit 860890b100
4 changed files with 379 additions and 394 deletions

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-10 19:05-0600\n"
"POT-Creation-Date: 2017-09-19 23:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -890,380 +890,30 @@ msgid ""
"pass through the structure as it's being built."
msgstr ""
#: node_axle.lua:6
msgid "Digtron Rotation Axle"
msgstr ""
#: node_axle.lua:57
#: util_execute_cycle.lua:172
#: util_execute_cycle.lua:367
#: util_execute_cycle.lua:456
msgid "Digtron is obstructed."
msgstr ""
#: node_builders.lua:13
msgid "Block to build"
msgstr ""
#: node_builders.lua:14
msgid "Extrusion"
msgstr ""
#: node_builders.lua:15
msgid ""
"Builder will extrude this many blocks in the direction it is facing.\n"
"Can be set from 1 to @1.\n"
"Note that Digtron won't build into unloaded map regions."
msgstr ""
#: node_builders.lua:16
#: node_diggers.lua:32
msgid "Periodicity"
msgstr ""
#: node_builders.lua:17
msgid ""
"Builder will build once every n steps.\n"
"These steps are globally aligned, so all builders with the\n"
"same period and offset will build on the same location."
msgstr ""
#: node_builders.lua:18
#: node_controllers.lua:91
#: node_diggers.lua:34
msgid "Offset"
msgstr ""
#: node_builders.lua:19
msgid ""
"Offsets the start of periodicity counting by this amount.\n"
"For example, a builder with period 2 and offset 0 builds\n"
"every even-numbered block and one with period 2 and\n"
"offset 1 builds every odd-numbered block."
msgstr ""
#: node_builders.lua:20
msgid ""
"Save &\n"
"Show"
msgstr ""
#: node_builders.lua:21
#: node_diggers.lua:37
msgid "Saves settings"
msgstr ""
#: node_builders.lua:22
msgid "Facing"
msgstr ""
#: node_builders.lua:23
msgid ""
"Value from 0-23. Not all block types make use of this.\n"
"Use the 'Read & Save' button to copy the facing of the block\n"
"currently in the builder output location."
msgstr ""
#: node_builders.lua:24
msgid ""
"Read &\n"
"Save"
msgstr ""
#: node_builders.lua:25
msgid ""
"Reads the facing of the block currently in the build location,\n"
"then saves all settings."
msgstr ""
#: node_builders.lua:34
#: node_controllers.lua:106
#: node_crate.lua:62
#: node_diggers.lua:43
msgid "Help"
msgstr ""
#: node_builders.lua:35
#: node_controllers.lua:107
#: node_crate.lua:63
#: node_diggers.lua:44
msgid "Show documentation about this block"
msgstr ""
#: node_builders.lua:40
msgid "Digtron Builder Module"
msgstr ""
#: node_builders.lua:279
#: node_builders.lua:294
#, lua-format
msgid "%s uses Digtron to build %s at (%d, %d, %d), displacing %s"
msgstr ""
#: node_controllers.lua:20
msgid "Digtron Control Module"
msgstr ""
#: node_controllers.lua:48
#: node_controllers.lua:200
#: util_execute_cycle.lua:110
#: util_execute_cycle.lua:317
#: util_execute_cycle.lua:394
#: util_execute_cycle.lua:505
#, lua-format
msgid "Heat remaining in controller furnace: %d"
msgstr ""
#: node_controllers.lua:83
msgid "Cycles"
msgstr ""
#: node_controllers.lua:84
msgid ""
"When triggered, this controller will try to run for the given number of "
"cycles.\n"
"The cycle count will decrement as it runs, so if it gets halted by a "
"problem\n"
"you can fix the problem and restart."
msgstr ""
#: node_controllers.lua:85
msgid "Set"
msgstr ""
#: node_controllers.lua:86
msgid "Saves the cycle setting without starting the controller running"
msgstr ""
#: node_controllers.lua:87
msgid ""
"Set &\n"
"Execute"
msgstr ""
#: node_controllers.lua:88
msgid "Begins executing the given number of cycles"
msgstr ""
#: node_controllers.lua:89
msgid "Slope"
msgstr ""
#: node_controllers.lua:90
msgid ""
"For diagonal digging. After moving forward this number of nodes the auto "
"controller\n"
"will add an additional cycle moving the digtron laterally in the\n"
"direction of the arrows on the side of this controller.\n"
"Set to 0 for no lateral digging."
msgstr ""
#: node_controllers.lua:92
msgid ""
"Sets the offset of the lateral motion defined in the Slope field.\n"
"Note: this offset is relative to the controller's location.\n"
"The controller will move laterally when it reaches the indicated point."
msgstr ""
#: node_controllers.lua:93
msgid "Delay"
msgstr ""
#: node_controllers.lua:94
msgid "Number of seconds to wait between each cycle"
msgstr ""
#: node_controllers.lua:96
msgid "Stop block"
msgstr ""
#: node_controllers.lua:128
#: node_controllers.lua:147
#: node_controllers.lua:160
#, lua-format
msgid "Cycles remaining: %d"
msgstr ""
#: node_controllers.lua:128
#: node_controllers.lua:147
msgid "Halted!"
msgstr ""
#: node_controllers.lua:172
msgid "Digtron Automatic Control Module"
msgstr ""
#: node_controllers.lua:284
msgid "Interrupted!"
msgstr ""
#: node_controllers.lua:300
msgid "Digtron Pusher Module"
msgstr ""
#: node_crate.lua:6
msgid "Digtron Crate (Empty)"
msgstr ""
#: node_crate.lua:22
msgid "Digtron can't be packaged, it contains protected blocks"
msgstr ""
#: node_crate.lua:42
#: node_crate.lua:43
msgid "Crated Digtron"
msgstr ""
#: node_crate.lua:55
#: node_crate.lua:70
msgid "Digtron Name"
msgstr ""
#: node_crate.lua:56
#: node_crate.lua:71
msgid ""
"Save\n"
"Title"
msgstr ""
#: node_crate.lua:57
#: node_crate.lua:72
msgid "Saves the title of this Digtron"
msgstr ""
#: node_crate.lua:58
#: node_crate.lua:73
msgid ""
"Show\n"
"Blocks"
msgstr ""
#: node_crate.lua:59
#: node_crate.lua:74
msgid "Shows which blocks the packed Digtron will occupy if unpacked"
msgstr ""
#: node_crate.lua:60
#: node_crate.lua:75
msgid "Unpack"
msgstr ""
#: node_crate.lua:61
#: node_crate.lua:76
msgid "Attempts to unpack the Digtron on this location"
msgstr ""
#: node_crate.lua:80
msgid "Digtron Crate (Loaded)"
msgstr ""
#: node_crate.lua:114
msgid ""
"Unable to read layout from crate metadata, regrettably this Digtron may be "
"corrupted or lost."
msgstr ""
#: node_crate.lua:145
msgid "Unable to deploy Digtron due to protected blocks in target area"
msgstr ""
#: node_crate.lua:151
msgid "Unable to deploy Digtron due to obstruction in target area"
msgstr ""
#: node_diggers.lua:33
msgid ""
"Digger will dig once every n steps.\n"
"These steps are globally aligned, all diggers with\n"
"the same period and offset will dig on the same location."
msgstr ""
#: node_diggers.lua:35
msgid ""
"Offsets the start of periodicity counting by this amount.\n"
"For example, a digger with period 2 and offset 0 digs\n"
"every even-numbered block and one with period 2 and\n"
"offset 1 digs every odd-numbered block."
msgstr ""
#: node_diggers.lua:36
msgid "Save"
msgstr ""
#: node_diggers.lua:72
msgid "Digtron Digger Head"
msgstr ""
#: node_diggers.lua:125
msgid "Digtron Intermittent Digger Head"
msgstr ""
#: node_diggers.lua:195
msgid "Digtron Soft Material Digger Head"
msgstr ""
#: node_diggers.lua:250
msgid "Digtron Intermittent Soft Material Digger Head"
msgstr ""
#: node_diggers.lua:323
msgid "Digtron Dual Digger Head"
msgstr ""
#: node_diggers.lua:400
msgid "Digtron Dual Soft Material Digger Head"
msgstr ""
#: node_misc.lua:7
msgid "Digtron Structure"
msgstr ""
#: node_misc.lua:40
msgid "Digtron Light"
msgstr ""
#: node_misc.lua:62
msgid "Digtron Panel"
msgstr ""
#: node_misc.lua:85
msgid "Digtron Edge Panel"
msgstr ""
#: node_misc.lua:114
msgid "Digtron Corner Panel"
msgstr ""
#: node_storage.lua:8
msgid "Digtron Inventory Storage"
msgstr ""
#: node_storage.lua:34
#: node_storage.lua:187
msgid "Inventory items"
msgstr ""
#: node_storage.lua:77
msgid "Digtron Fuel Storage"
msgstr ""
#: node_storage.lua:103
#: node_storage.lua:189
msgid "Fuel items"
msgstr ""
#: node_storage.lua:163
msgid "Digtron Combined Storage"
msgstr ""
#: recipes.lua:6
msgid "Digtron Core"
msgstr ""
#: util_execute_cycle.lua:51
msgid "Digtron is adjacent to unloaded nodes."
msgstr ""
#: util_execute_cycle.lua:65
msgid "Digtron has @1 blocks but only enough traction to move @2 blocks.\n"
msgstr ""
#: util_execute_cycle.lua:110
#: util_execute_cycle.lua:316
#: util_execute_cycle.lua:393
#: util_execute_cycle.lua:504
#: nodes\node_controllers.lua:48
#: nodes\node_controllers.lua:201
msgid "Heat remaining in controller furnace: @1"
msgstr ""
#: util_execute_cycle.lua:172
#: util_execute_cycle.lua:366
#: util_execute_cycle.lua:455
#: nodes\node_axle.lua:57
msgid "Digtron is obstructed."
msgstr ""
#: util_execute_cycle.lua:220
msgid "Digtron needs more fuel."
msgstr ""
@ -1274,18 +924,354 @@ msgid ""
msgstr ""
#: util_execute_cycle.lua:234
#, lua-format
msgid "Digtron has insufficient building materials. Needed: %s"
msgid "Digtron has insufficient building materials. Needed: @1"
msgstr ""
#: util_execute_cycle.lua:304
#: util_execute_cycle.lua:303
msgid ""
"Digtron unexpectedly failed to execute one or more build operations, likely "
"due to an inventory error."
msgstr ""
#: util_execute_cycle.lua:329
#: util_execute_cycle.lua:517
#, lua-format
msgid "%s uses Digtron to dig %s at (%d, %d, %d)"
#: nodes\node_axle.lua:6
msgid "Digtron Rotation Axle"
msgstr ""
#: nodes\node_builders.lua:18
msgid "Block to build"
msgstr ""
#: nodes\node_builders.lua:19
msgid "Extrusion"
msgstr ""
#: nodes\node_builders.lua:20
msgid ""
"Builder will extrude this many blocks in the direction it is facing.\n"
"Can be set from 1 to @1.\n"
"Note that Digtron won't build into unloaded map regions."
msgstr ""
#: nodes\node_builders.lua:21
#: nodes\node_diggers.lua:32
msgid "Periodicity"
msgstr ""
#: nodes\node_builders.lua:22
msgid ""
"Builder will build once every n steps.\n"
"These steps are globally aligned, so all builders with the\n"
"same period and offset will build on the same location."
msgstr ""
#: nodes\node_builders.lua:23
#: nodes\node_controllers.lua:91
#: nodes\node_diggers.lua:34
msgid "Offset"
msgstr ""
#: nodes\node_builders.lua:24
msgid ""
"Offsets the start of periodicity counting by this amount.\n"
"For example, a builder with period 2 and offset 0 builds\n"
"every even-numbered block and one with period 2 and\n"
"offset 1 builds every odd-numbered block."
msgstr ""
#: nodes\node_builders.lua:25
#: nodes\node_diggers.lua:36
msgid ""
"Save &\n"
"Show"
msgstr ""
#: nodes\node_builders.lua:26
#: nodes\node_diggers.lua:37
msgid "Saves settings"
msgstr ""
#: nodes\node_builders.lua:27
msgid "Facing"
msgstr ""
#: nodes\node_builders.lua:28
msgid ""
"Value from 0-23. Not all block types make use of this.\n"
"Use the 'Read & Save' button to copy the facing of the block\n"
"currently in the builder output location."
msgstr ""
#: nodes\node_builders.lua:29
msgid ""
"Read &\n"
"Save"
msgstr ""
#: nodes\node_builders.lua:30
msgid ""
"Reads the facing of the block currently in the build location,\n"
"then saves all settings."
msgstr ""
#: nodes\node_builders.lua:39
#: nodes\node_controllers.lua:106
#: nodes\node_crate.lua:62
#: nodes\node_diggers.lua:41
msgid "Help"
msgstr ""
#: nodes\node_builders.lua:40
#: nodes\node_controllers.lua:107
#: nodes\node_crate.lua:63
#: nodes\node_diggers.lua:42
msgid "Show documentation about this block"
msgstr ""
#: nodes\node_builders.lua:45
msgid "Digtron Builder Module"
msgstr ""
#: nodes\node_controllers.lua:20
msgid "Digtron Control Module"
msgstr ""
#: nodes\node_controllers.lua:83
msgid "Cycles"
msgstr ""
#: nodes\node_controllers.lua:84
msgid ""
"When triggered, this controller will try to run for the given number of "
"cycles.\n"
"The cycle count will decrement as it runs, so if it gets halted by a "
"problem\n"
"you can fix the problem and restart."
msgstr ""
#: nodes\node_controllers.lua:85
msgid "Set"
msgstr ""
#: nodes\node_controllers.lua:86
msgid "Saves the cycle setting without starting the controller running"
msgstr ""
#: nodes\node_controllers.lua:87
msgid ""
"Set &\n"
"Execute"
msgstr ""
#: nodes\node_controllers.lua:88
msgid "Begins executing the given number of cycles"
msgstr ""
#: nodes\node_controllers.lua:89
msgid "Slope"
msgstr ""
#: nodes\node_controllers.lua:90
msgid ""
"For diagonal digging. After moving forward this number of nodes the auto "
"controller\n"
"will add an additional cycle moving the digtron laterally in the\n"
"direction of the arrows on the side of this controller.\n"
"Set to 0 for no lateral digging."
msgstr ""
#: nodes\node_controllers.lua:92
msgid ""
"Sets the offset of the lateral motion defined in the Slope field.\n"
"Note: this offset is relative to the controller's location.\n"
"The controller will move laterally when it reaches the indicated point."
msgstr ""
#: nodes\node_controllers.lua:93
msgid "Delay"
msgstr ""
#: nodes\node_controllers.lua:94
msgid "Number of seconds to wait between each cycle"
msgstr ""
#: nodes\node_controllers.lua:96
msgid "Stop block"
msgstr ""
#: nodes\node_controllers.lua:128
#: nodes\node_controllers.lua:147
#: nodes\node_controllers.lua:160
msgid "Cycles remaining: @1"
msgstr ""
#: nodes\node_controllers.lua:128
#: nodes\node_controllers.lua:147
msgid "Halted!"
msgstr ""
#: nodes\node_controllers.lua:172
msgid "Digtron Automatic Control Module"
msgstr ""
#: nodes\node_controllers.lua:285
msgid "Interrupted!"
msgstr ""
#: nodes\node_controllers.lua:300
msgid "Digtron Pusher Module"
msgstr ""
#: nodes\node_crate.lua:6
msgid "Digtron Crate (Empty)"
msgstr ""
#: nodes\node_crate.lua:22
msgid "Digtron can't be packaged, it contains protected blocks"
msgstr ""
#: nodes\node_crate.lua:42
#: nodes\node_crate.lua:43
msgid "Crated Digtron"
msgstr ""
#: nodes\node_crate.lua:55
#: nodes\node_crate.lua:70
msgid "Digtron Name"
msgstr ""
#: nodes\node_crate.lua:56
#: nodes\node_crate.lua:71
msgid ""
"Save\n"
"Title"
msgstr ""
#: nodes\node_crate.lua:57
#: nodes\node_crate.lua:72
msgid "Saves the title of this Digtron"
msgstr ""
#: nodes\node_crate.lua:58
#: nodes\node_crate.lua:73
msgid ""
"Show\n"
"Blocks"
msgstr ""
#: nodes\node_crate.lua:59
#: nodes\node_crate.lua:74
msgid "Shows which blocks the packed Digtron will occupy if unpacked"
msgstr ""
#: nodes\node_crate.lua:60
#: nodes\node_crate.lua:75
msgid "Unpack"
msgstr ""
#: nodes\node_crate.lua:61
#: nodes\node_crate.lua:76
msgid "Attempts to unpack the Digtron on this location"
msgstr ""
#: nodes\node_crate.lua:80
msgid "Digtron Crate (Loaded)"
msgstr ""
#: nodes\node_crate.lua:115
msgid ""
"Unable to read layout from crate metadata, regrettably this Digtron may be "
"corrupted or lost."
msgstr ""
#: nodes\node_crate.lua:146
msgid "Unable to deploy Digtron due to protected blocks in target area"
msgstr ""
#: nodes\node_crate.lua:152
msgid "Unable to deploy Digtron due to obstruction in target area"
msgstr ""
#: nodes\node_diggers.lua:33
msgid ""
"Digger will dig once every n steps.\n"
"These steps are globally aligned, all diggers with\n"
"the same period and offset will dig on the same location."
msgstr ""
#: nodes\node_diggers.lua:35
msgid ""
"Offsets the start of periodicity counting by this amount.\n"
"For example, a digger with period 2 and offset 0 digs\n"
"every even-numbered block and one with period 2 and\n"
"offset 1 digs every odd-numbered block."
msgstr ""
#: nodes\node_diggers.lua:75
msgid "Digtron Digger Head"
msgstr ""
#: nodes\node_diggers.lua:129
msgid "Digtron Intermittent Digger Head"
msgstr ""
#: nodes\node_diggers.lua:200
msgid "Digtron Soft Material Digger Head"
msgstr ""
#: nodes\node_diggers.lua:255
msgid "Digtron Intermittent Soft Material Digger Head"
msgstr ""
#: nodes\node_diggers.lua:329
msgid "Digtron Dual Digger Head"
msgstr ""
#: nodes\node_diggers.lua:406
msgid "Digtron Dual Soft Material Digger Head"
msgstr ""
#: nodes\node_misc.lua:7
msgid "Digtron Structure"
msgstr ""
#: nodes\node_misc.lua:40
msgid "Digtron Light"
msgstr ""
#: nodes\node_misc.lua:62
msgid "Digtron Panel"
msgstr ""
#: nodes\node_misc.lua:85
msgid "Digtron Edge Panel"
msgstr ""
#: nodes\node_misc.lua:114
msgid "Digtron Corner Panel"
msgstr ""
#: nodes\node_storage.lua:11
#: nodes\node_storage.lua:171
msgid "Inventory items"
msgstr ""
#: nodes\node_storage.lua:22
msgid "Digtron Inventory Storage"
msgstr ""
#: nodes\node_storage.lua:82
#: nodes\node_storage.lua:173
msgid "Fuel items"
msgstr ""
#: nodes\node_storage.lua:93
msgid "Digtron Fuel Storage"
msgstr ""
#: nodes\node_storage.lua:184
msgid "Digtron Combined Storage"
msgstr ""
#: nodes\recipes.lua:6
msgid "Digtron Core"
msgstr ""

@ -262,7 +262,7 @@ minetest.register_node("digtron:builder", {
if not digtron.config.uses_resources then
local returned_stack, success = digtron.item_place_node(item_stack, player, buildpos, build_facing)
if success == true then
minetest.log("action", string.format(S("%s uses Digtron to build %s at (%d, %d, %d), displacing %s"), player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name))
minetest.log("action", string.format("%s uses Digtron to build %s at (%d, %d, %d), displacing %s", player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name))
nodes_dug:set(buildpos.x, buildpos.y, buildpos.z, false)
built_count = built_count + 1
else
@ -277,7 +277,7 @@ minetest.register_node("digtron:builder", {
end
local returned_stack, success = digtron.item_place_node(item_stack, player, buildpos, build_facing)
if success == true then
minetest.log("action", string.format(S("%s uses Digtron to build %s at (%d, %d, %d), displacing %s"), player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name))
minetest.log("action", string.format("%s uses Digtron to build %s at (%d, %d, %d), displacing %s", player:get_player_name(), item_stack:get_name(), buildpos.x, buildpos.y, buildpos.z, oldnode.name))
--flag this node as *not* to be dug.
nodes_dug:set(buildpos.x, buildpos.y, buildpos.z, false)
digtron.award_item_built(item_stack:get_name(), player:get_player_name())

@ -45,7 +45,7 @@ minetest.register_node("digtron:controller", {
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_float("fuel_burning", 0.0)
meta:set_string("infotext", string.format(S("Heat remaining in controller furnace: %d"), 0))
meta:set_string("infotext", S("Heat remaining in controller furnace: @1", 0))
end,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
@ -125,7 +125,7 @@ digtron.auto_cycle = function(pos)
local newpos, status, return_code = digtron.execute_downward_dig_cycle(pos, player)
if vector.equals(pos, newpos) then
status = status .. string.format("\n" .. S("Cycles remaining: %d") .. "\n" .. S("Halted!"), cycle)
status = status .. "\n" .. S("Cycles remaining: @1", cycle) .. "\n" .. S("Halted!")
meta:set_string("infotext", status)
if return_code == 1 then --return code 1 happens when there's unloaded nodes adjacent, just keep trying.
minetest.after(meta:get_int("period"), digtron.auto_cycle, newpos)
@ -144,7 +144,7 @@ digtron.auto_cycle = function(pos)
local newpos, status, return_code = digtron.execute_dig_cycle(pos, player)
if vector.equals(pos, newpos) then
status = status .. string.format("\n" .. S("Cycles remaining: %d") .. "\n" .. S("Halted!"), cycle)
status = status .. "\n" .. S("Cycles remaining: @1", cycle) .. "\n" .. S("Halted!")
meta:set_string("infotext", status)
if return_code == 1 then --return code 1 happens when there's unloaded nodes adjacent, just keep trying.
minetest.after(meta:get_int("period"), digtron.auto_cycle, newpos)
@ -157,7 +157,7 @@ digtron.auto_cycle = function(pos)
meta = minetest.get_meta(newpos)
cycle = meta:get_int("cycles") - 1
meta:set_int("cycles", cycle)
status = status .. string.format("\n" .. S("Cycles remaining: %d"), cycle)
status = status .. "\n" .. S("Cycles remaining: @1", cycle)
meta:set_string("infotext", status)
meta:set_string("lateral_done", nil)
@ -198,7 +198,7 @@ minetest.register_node("digtron:auto_controller", {
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_float("fuel_burning", 0.0)
meta:set_string("infotext", string.format(S("Heat remaining in controller furnace: %d"), 0))
meta:set_string("infotext", S("Heat remaining in controller furnace: @1", 0))
meta:set_string("formspec", auto_formspec)
-- Reusing offset and period to keep the digtron node-moving code simple, and the names still fit well
meta:set_int("period", digtron.config.cycle_time)

@ -62,7 +62,7 @@ local function neighbour_test(layout, status_text, dir)
if dir and dir.y ~= -1 and layout.traction * digtron.config.traction_factor < table.getn(layout.all) then
-- digtrons can't fly, though they can fall
minetest.sound_play("squeal", {gain=1.0, pos=layout.controller})
return string.format("Digtron has %d blocks but only enough traction to move %d blocks.\n", table.getn(layout.all), layout.traction * digtron.config.traction_factor)
return S("Digtron has @1 blocks but only enough traction to move @2 blocks.\n", table.getn(layout.all), layout.traction * digtron.config.traction_factor)
.. status_text, 2
end
@ -107,7 +107,7 @@ digtron.execute_dig_cycle = function(pos, clicker)
local facing = minetest.get_node(pos).param2
local dir = minetest.facedir_to_dir(facing)
local fuel_burning = meta:get_float("fuel_burning") -- get amount of burned fuel left over from last cycle
local status_text = string.format(S("Heat remaining in controller furnace: %d"), math.max(0, fuel_burning))
local status_text = S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning))
local layout = DigtronLayout.create(pos, clicker)
@ -231,8 +231,7 @@ digtron.execute_dig_cycle = function(pos, clicker)
return_code = 6
elseif test_build_return_code == 2 then
minetest.sound_play("dingding", {gain=1.0, pos=pos}) -- Insufficient inventory
return_string = string.format(S("Digtron has insufficient building materials. Needed: %s") .. "\n",
failed_to_find:get_name())
return_string = S("Digtron has insufficient building materials. Needed: @1", failed_to_find:get_name()) .. "\n"
return_code = 7
end
return pos, return_string .. status_text, return_code --Abort, don't dig and don't build.
@ -314,7 +313,7 @@ digtron.execute_dig_cycle = function(pos, clicker)
fuel_burning = fuel_burning + digtron.burn(layout.fuelstores, -fuel_burning, false)
end
meta:set_float("fuel_burning", fuel_burning)
status_text = status_text .. string.format(S("Heat remaining in controller furnace: %d"), math.max(0, fuel_burning))
status_text = status_text .. S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning))
-- Eyecandy
for _, particles in pairs(particle_systems) do
@ -326,7 +325,7 @@ digtron.execute_dig_cycle = function(pos, clicker)
local node_to_dig, whether_to_dig = layout.nodes_dug:pop()
while node_to_dig ~= nil do
if whether_to_dig == true then
minetest.log("action", string.format(S("%s uses Digtron to dig %s at (%d, %d, %d)"), clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z))
minetest.log("action", string.format("%s uses Digtron to dig %s at (%d, %d, %d)", clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z))
minetest.remove_node(node_to_dig)
end
-- all of the digtron's nodes wind up in nodes_dug, so this is an ideal place to stick
@ -391,7 +390,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker)
local facing = minetest.get_node(pos).param2
local dir = digtron.facedir_to_down_dir(facing)
local fuel_burning = meta:get_float("fuel_burning") -- get amount of burned fuel left over from last cycle
local status_text = string.format(S("Heat remaining in controller furnace: %d"), math.max(0, fuel_burning))
local status_text = S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning))
local layout = DigtronLayout.create(pos, clicker)
@ -502,7 +501,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker)
fuel_burning = fuel_burning + digtron.burn(layout.fuelstores, -fuel_burning, false)
end
meta:set_float("fuel_burning", fuel_burning)
status_text = status_text .. string.format(S("Heat remaining in controller furnace: %d"), math.max(0, fuel_burning))
status_text = status_text .. S("Heat remaining in controller furnace: @1", math.max(0, fuel_burning))
-- Eyecandy
for _, particles in pairs(particle_systems) do
@ -514,7 +513,7 @@ digtron.execute_downward_dig_cycle = function(pos, clicker)
local node_to_dig, whether_to_dig = layout.nodes_dug:pop()
while node_to_dig ~= nil do
if whether_to_dig == true then
minetest.log("action", string.format(S("%s uses Digtron to dig %s at (%d, %d, %d)"), clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z))
minetest.log("action", string.format("%s uses Digtron to dig %s at (%d, %d, %d)", clicker:get_player_name(), minetest.get_node(node_to_dig).name, node_to_dig.x, node_to_dig.y, node_to_dig.z))
minetest.remove_node(node_to_dig)
end
-- all of the digtron's nodes wind up in nodes_dug, so this is an ideal place to stick