diff options
Diffstat (limited to 'node_storage.lua')
-rw-r--r-- | node_storage.lua | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/node_storage.lua b/node_storage.lua index 51575ad..a85d35f 100644 --- a/node_storage.lua +++ b/node_storage.lua @@ -1,7 +1,11 @@ +-- internationalization boilerplate +local MP = minetest.get_modpath(minetest.get_current_modname()) +local S, NS = dofile(MP.."/intllib.lua") + -- Storage buffer. Builder nodes draw from this inventory and digger nodes deposit into it. -- Note that inventories are digtron group 2. minetest.register_node("digtron:inventory", { - description = "Digtron Inventory Storage", + description = S("Digtron Inventory Storage"), _doc_items_longdesc = digtron.doc.inventory_longdesc, _doc_items_usagehelp = digtron.doc.inventory_usagehelp, groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 2, tubedevice = 1, tubedevice_receiver = 1}, @@ -27,7 +31,7 @@ minetest.register_node("digtron:inventory", { default.gui_bg .. default.gui_bg_img .. default.gui_slots .. - "label[0,0;Inventory items]" .. + "label[0,0;" .. S("Inventory items") .. "]" .. "list[current_name;main;0,0.6;8,4;]" .. "list[current_player;main;0,5.15;8,1;]" .. "list[current_player;main;0,6.38;8,3;8]" .. @@ -70,7 +74,7 @@ minetest.register_node("digtron:inventory", { -- Fuel storage. Controller node draws fuel from here. -- Note that fuel stores are digtron group 5. minetest.register_node("digtron:fuelstore", { - description = "Digtron Fuel Storage", + description = S("Digtron Fuel Storage"), _doc_items_longdesc = digtron.doc.fuelstore_longdesc, _doc_items_usagehelp = digtron.doc.fuelstore_usagehelp, groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 5, tubedevice = 1, tubedevice_receiver = 1}, @@ -96,7 +100,7 @@ minetest.register_node("digtron:fuelstore", { default.gui_bg .. default.gui_bg_img .. default.gui_slots .. - "label[0,0;Fuel items]" .. + "label[0,0;" .. S("Fuel items") .. "]" .. "list[current_name;fuel;0,0.6;8,4;]" .. "list[current_player;main;0,5.15;8,1;]" .. "list[current_player;main;0,6.38;8,3;8]" .. @@ -159,7 +163,7 @@ minetest.register_node("digtron:fuelstore", { -- Combined storage. Group 6 has both an inventory and a fuel store minetest.register_node("digtron:combined_storage", { - description = "Digtron Combined Storage", + description = S("Digtron Combined Storage"), _doc_items_longdesc = digtron.doc.combined_storage_longdesc, _doc_items_usagehelp = digtron.doc.combined_storage_usagehelp, groups = {cracky = 3, oddly_breakable_by_hand=3, digtron = 6, tubedevice = 1, tubedevice_receiver = 1}, @@ -183,9 +187,9 @@ minetest.register_node("digtron:combined_storage", { default.gui_bg .. default.gui_bg_img .. default.gui_slots .. - "label[0,0;Inventory items]" .. + "label[0,0;" .. S("Inventory items") .. "]" .. "list[current_name;main;0,0.6;8,3;]" .. - "label[0,3.5;Fuel items]" .. + "label[0,3.5;" .. S("Fuel items") .. "]" .. "list[current_name;fuel;0,4.1;8,1;]" .. "list[current_player;main;0,5.75;8,1;]" .. "list[current_player;main;0,6.98;8,3;8]" .. |