Mark strings of castle, cottages, creative, darkage and supplemental for translation
parent
88038ceb2b
commit
733ac1531a
|
@ -1,5 +1,14 @@
|
|||
-- intllib support
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
minetest.register_node("castle:shield_2",{
|
||||
description = "Mounted Shield",
|
||||
description = S("mounted shield"),
|
||||
tiles = {"castle_shield_side_2.png", "castle_shield_side_2.png", "castle_shield_side_2.png", "castle_shield_side_2.png", "castle_shield_back.png", "castle_shield_front_2.png"},
|
||||
drawtype="nodebox",
|
||||
paramtype2 = "facedir",
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
-- intllib support
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
minetest.register_node("castle:light",{
|
||||
drawtype = "glasslike",
|
||||
description = "Light Block",
|
||||
description = S("light block"),
|
||||
sunlight_propagates = true,
|
||||
light_source = 14,
|
||||
tiles = {"castle_street_light.png"},
|
||||
|
|
|
@ -12,10 +12,19 @@
|
|||
-- * washing place - put it over a water source and you can 'wash' yourshelf
|
||||
---------------------------------------------------------------------------------------
|
||||
|
||||
-- intllib support
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
-- the basic version of a bed - a sleeping mat
|
||||
-- to facilitate upgrade path straw mat -> sleeping mat -> bed, this uses a nodebox
|
||||
minetest.register_node("cottages:sleeping_mat", {
|
||||
description = "sleeping matg",
|
||||
description = S("sleeping mat"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = { 'cottages_sleepingmat.png' }, -- done by VanessaE
|
||||
wield_image = 'cottages_sleepingmat.png',
|
||||
|
@ -49,7 +58,7 @@ minetest.register_node("cottages:sleeping_mat", {
|
|||
-- furniture; possible replacement: 3dforniture:chair
|
||||
minetest.register_node("cottages:bench", {
|
||||
drawtype = "nodebox",
|
||||
description = "simple wooden bench",
|
||||
description = S("simple wooden bench"),
|
||||
tiles = {"cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
@ -77,7 +86,7 @@ minetest.register_node("cottages:bench", {
|
|||
|
||||
-- a simple table; possible replacement: 3dforniture:table
|
||||
minetest.register_node("cottages:table", {
|
||||
description = "table",
|
||||
description = S("table"),
|
||||
drawtype = "nodebox",
|
||||
-- top, bottom, side1, side2, inner, outer
|
||||
tiles = {"cottages_minimal_wood.png"},
|
||||
|
|
|
@ -1,16 +1,22 @@
|
|||
|
||||
|
||||
---------------------------------------------------------------------------------------
|
||||
-- roof parts
|
||||
---------------------------------------------------------------------------------------
|
||||
-- a better roof than the normal stairs; can be replaced by stairs:stair_wood
|
||||
|
||||
-- intllib support
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
-- create the three basic roof parts plus receipes for them;
|
||||
cottages.register_roof = function( name, tiles, basic_material, homedecor_alternative )
|
||||
cottages.register_roof = function( name, tiles, basic_material, homedecor_alternative, desc1, desc2, desc3 )
|
||||
|
||||
minetest.register_node("cottages:roof_"..name, {
|
||||
description = "Roof "..name,
|
||||
description = desc1,
|
||||
drawtype = "nodebox",
|
||||
--tiles = {"default_tree.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_tree.png"},
|
||||
tiles = tiles,
|
||||
|
@ -37,7 +43,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
|
|||
|
||||
-- a better roof than the normal stairs; this one is for usage directly on top of walls (it has the form of a stair)
|
||||
minetest.register_node("cottages:roof_connector_"..name, {
|
||||
description = "Roof connector "..name,
|
||||
description = desc2,
|
||||
drawtype = "nodebox",
|
||||
-- top, bottom, side1, side2, inner, outer
|
||||
--tiles = {"default_tree.png","default_wood.png","default_tree.png","default_tree.png","default_wood.png","default_tree.png"},
|
||||
|
@ -66,7 +72,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern
|
|||
|
||||
-- this one is the slab version of the above roof
|
||||
minetest.register_node("cottages:roof_flat_"..name, {
|
||||
description = "Roof (flat) "..name,
|
||||
description = desc3,
|
||||
drawtype = "nodebox",
|
||||
-- top, bottom, side1, side2, inner, outer
|
||||
--tiles = {"default_tree.png","default_wood.png","default_tree.png","default_tree.png","default_wood.png","default_tree.png"},
|
||||
|
@ -102,7 +108,7 @@ end -- of cottages.register_roof( name, tiles, basic_material )
|
|||
---------------------------------------------------------------------------------------
|
||||
cottages.register_roof( 'black',
|
||||
{"cottages_homedecor_shingles_asphalt.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","cottages_homedecor_shingles_asphalt.png"},
|
||||
'homedecor:shingles_asphalt', 'default:coal_lump');
|
||||
'homedecor:shingles_asphalt', 'default:coal_lump', S("black roof"), S("black roof connector"), S("black flat roof"));
|
||||
cottages.register_roof( 'red',
|
||||
{"cottages_homedecor_shingles_terracotta.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","cottages_homedecor_shingles_terracotta.png"},
|
||||
'homedecor:shingles_terracotta', 'default:clay_brick');
|
||||
'homedecor:shingles_terracotta', 'default:clay_brick', S("red roof"), S("red roof connector"), S("red flat roof"));
|
||||
|
|
|
@ -4,11 +4,19 @@
|
|||
-- * straw mat - for animals and very poor NPC; also basis for other straw things
|
||||
-- * straw bale - well, just a good source for building and decoration
|
||||
|
||||
-- intllib support
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
-- an even simpler from of bed - usually for animals
|
||||
-- it is a nodebox and not wallmounted because that makes it easier to replace beds with straw mats
|
||||
minetest.register_node("cottages:straw_mat", {
|
||||
description = "layer of straw",
|
||||
description = S("straw layer"),
|
||||
drawtype = 'nodebox',
|
||||
tiles = { 'cottages_darkage_straw.png' }, -- done by VanessaE
|
||||
wield_image = 'cottages_darkage_straw.png',
|
||||
|
|
|
@ -1,5 +1,18 @@
|
|||
-- minetest/creative/init.lua
|
||||
|
||||
-- intllib support
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
F = function( s )
|
||||
return minetest.formspec_escape(S(s))
|
||||
end
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
F = function ( s ) return minetest.formspec_escape(s) end
|
||||
end
|
||||
|
||||
creative_inventory = {}
|
||||
creative_inventory.creative_inventory_size = 0
|
||||
|
||||
|
@ -86,7 +99,7 @@ creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
|
|||
"label[2.0,6.55;"..tostring(pagenum).."/"..tostring(pagemax).."]"..
|
||||
"button[0.3,6.5;1.6,1;creative_prev;<<]"..
|
||||
"button[2.7,6.5;1.6,1;creative_next;>>]"..
|
||||
"label[5,1.5;Trash:]"..
|
||||
"label[5,1.5;"..F("Trash:").."]"..
|
||||
"list[detached:creative_trash;main;5,2;1,1;]"..
|
||||
default.get_hotbar_bg(5,3.5)
|
||||
)
|
||||
|
|
|
@ -1,19 +1,28 @@
|
|||
-- intllib support
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
minetest.register_node("darkage:basalt_cobble", {
|
||||
description = "Basalt Cobble",
|
||||
description = S("basalt cobble"),
|
||||
tiles = {"darkage_basalt_cobble.png"},
|
||||
groups = {immortal=1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("darkage:basalt_brick", {
|
||||
description = "Basalt Brick",
|
||||
description = S("basalt brick"),
|
||||
tiles = {"darkage_basalt_brick.png"},
|
||||
groups = {immortal=1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
minetest.register_node("darkage:stone_brick", {
|
||||
description = "Stone Brick",
|
||||
description = S("stone brick"),
|
||||
tiles = {"darkage_stone_brick.png"},
|
||||
groups = {immortal=1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
|
@ -21,14 +30,14 @@ minetest.register_node("darkage:stone_brick", {
|
|||
|
||||
-- Other Blocks
|
||||
minetest.register_node("darkage:straw", {
|
||||
description = "Straw",
|
||||
description = S("straw"),
|
||||
tiles = {"darkage_straw.png"},
|
||||
groups = {immortal=1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("darkage:lamp", {
|
||||
description = "Lamp",
|
||||
description = S("lamp"),
|
||||
tiles = {"darkage_lamp.png"},
|
||||
paramtype = "light",
|
||||
light_source = 18,
|
||||
|
@ -37,7 +46,7 @@ minetest.register_node("darkage:lamp", {
|
|||
})
|
||||
|
||||
minetest.register_node("darkage:marble_tile", {
|
||||
description = "Marble Tile",
|
||||
description = S("marble tile"),
|
||||
tiles = {"darkage_marble_tile.png"},
|
||||
groups = {immortal=1},
|
||||
sounds = default.node_sound_stone_defaults()
|
||||
|
@ -45,7 +54,7 @@ minetest.register_node("darkage:marble_tile", {
|
|||
|
||||
-- Glass / Glow Glass
|
||||
minetest.register_node("darkage:glass", {
|
||||
description = "Medieval Glass",
|
||||
description = S("medieval glass"),
|
||||
drawtype = "glasslike",
|
||||
tiles = {"darkage_glass.png"},
|
||||
paramtype = "light",
|
||||
|
@ -56,7 +65,7 @@ minetest.register_node("darkage:glass", {
|
|||
|
||||
-- Wood based deco items
|
||||
minetest.register_node("darkage:wood_bars", {
|
||||
description = "Wooden Bars",
|
||||
description = S("wooden bars"),
|
||||
drawtype = "glasslike",
|
||||
tiles = {"darkage_wood_bars.png"},
|
||||
inventory_image = "darkage_wood_bars.png",
|
||||
|
@ -68,7 +77,7 @@ minetest.register_node("darkage:wood_bars", {
|
|||
})
|
||||
|
||||
minetest.register_node("darkage:wood_grille", {
|
||||
description = "Wooden Grille",
|
||||
description = S("wooden grille"),
|
||||
drawtype = "glasslike",
|
||||
tiles = {"darkage_wood_grille.png"},
|
||||
inventory_image = "darkage_wood_grille.png",
|
||||
|
@ -80,7 +89,7 @@ minetest.register_node("darkage:wood_grille", {
|
|||
})
|
||||
|
||||
minetest.register_node("darkage:wood_frame", {
|
||||
description = "Wooden Frame",
|
||||
description = S("wooden frame"),
|
||||
drawtype = "glasslike",
|
||||
tiles = {"darkage_wood_frame.png"},
|
||||
inventory_image = "darkage_wood_frame.png",
|
||||
|
@ -92,7 +101,7 @@ minetest.register_node("darkage:wood_frame", {
|
|||
})
|
||||
|
||||
minetest.register_node("darkage:iron_bars", {
|
||||
description = "Iron Bars",
|
||||
description = S("iron bars"),
|
||||
drawtype = "glasslike",
|
||||
tiles = {"darkage_iron_bars.png"},
|
||||
inventory_image = "darkage_iron_bars.png",
|
||||
|
@ -104,7 +113,7 @@ minetest.register_node("darkage:iron_bars", {
|
|||
})
|
||||
|
||||
minetest.register_node("darkage:iron_grille", {
|
||||
description = "Iron Grille",
|
||||
description = S("iron grille"),
|
||||
drawtype = "glasslike",
|
||||
tiles = {"darkage_iron_grille.png"},
|
||||
inventory_image = "darkage_iron_grille.png",
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
-- intllib support
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
||||
minetest.register_node("supplemental:sticky", {
|
||||
description = "Sticky Stone Brick",
|
||||
description = S("sticky stone brick"),
|
||||
tiles = {"default_stone_brick.png^supplemental_splat.png",
|
||||
"default_stone_brick.png", "default_stone_brick.png", "default_stone_brick.png",
|
||||
"default_stone_brick.png", "default_stone_brick.png"},
|
||||
|
@ -8,7 +17,7 @@ minetest.register_node("supplemental:sticky", {
|
|||
})
|
||||
|
||||
minetest.register_node("supplemental:conglomerate", {
|
||||
description = "Conglomerate",
|
||||
description = S("conglomerate"),
|
||||
tiles = {"supplemental_conglomerate.png" },
|
||||
groups = {cracky=3},
|
||||
drop = { items = {
|
||||
|
@ -23,7 +32,7 @@ minetest.register_node("supplemental:conglomerate", {
|
|||
})
|
||||
|
||||
minetest.register_node("supplemental:frame",{
|
||||
description = "Picture Frame",
|
||||
description = S("picture frame"),
|
||||
drawtype = "signlike",
|
||||
selection_box = { type = "wallmounted" },
|
||||
walkable = false,
|
||||
|
@ -39,7 +48,7 @@ minetest.register_node("supplemental:frame",{
|
|||
})
|
||||
|
||||
minetest.register_node("supplemental:spikes", {
|
||||
description = "Small Spikes",
|
||||
description = S("short spikes"),
|
||||
tiles = {"supplemental_spikes_small.png"},
|
||||
inventory_image = "supplemental_spikes_small.png",
|
||||
wield_image = "supplemental_spikes_small.png",
|
||||
|
@ -60,7 +69,7 @@ minetest.register_node("supplemental:spikes", {
|
|||
})
|
||||
|
||||
minetest.register_node("supplemental:spikes_large", {
|
||||
description = "Large Spikes",
|
||||
description = S("long spikes"),
|
||||
tiles = {"supplemental_spikes_large.png"},
|
||||
inventory_image = "supplemental_spikes_large.png",
|
||||
wield_image = "supplemental_spikes_large.png",
|
||||
|
@ -73,17 +82,17 @@ minetest.register_node("supplemental:spikes_large", {
|
|||
})
|
||||
|
||||
minetest.register_craftitem("supplemental:rock", {
|
||||
description = "Rock",
|
||||
description = S("piece of rock"),
|
||||
inventory_image = "supplemental_rock.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("supplemental:wheat", {
|
||||
description = "Wheat",
|
||||
description = S("wheat"),
|
||||
inventory_image = "supplemental_wheat.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("supplemental:flour", {
|
||||
description = "Flour",
|
||||
description = S("flour"),
|
||||
inventory_image = "supplemental_flour.png",
|
||||
})
|
||||
-- Crafting example #2
|
||||
|
@ -95,22 +104,22 @@ minetest.register_craft({
|
|||
|
||||
-- Items for crafting examples #1, #4 and #5
|
||||
minetest.register_craftitem("supplemental:paper_white", {
|
||||
description = "White Paper",
|
||||
description = S("white sheet of paper"),
|
||||
inventory_image = "default_paper.png",
|
||||
groups = { paper = 1 },
|
||||
})
|
||||
minetest.register_craftitem("supplemental:paper_orange", {
|
||||
description = "Orange Paper",
|
||||
description = S("orange sheet of paper"),
|
||||
inventory_image = "supplemental_paper_orange.png",
|
||||
groups = { paper = 1 },
|
||||
})
|
||||
minetest.register_craftitem("supplemental:paper_purple", {
|
||||
description = "Purple Paper",
|
||||
description = S("purple sheet of paper"),
|
||||
inventory_image = "supplemental_paper_purple.png",
|
||||
groups = { paper = 1 },
|
||||
})
|
||||
minetest.register_craftitem("supplemental:paper_green", {
|
||||
description = "Green Paper",
|
||||
description = S("green sheet of paper"),
|
||||
inventory_image = "supplemental_paper_green.png",
|
||||
groups = { paper = 1 },
|
||||
})
|
||||
|
@ -130,7 +139,7 @@ for v=0,7 do
|
|||
local alpha = 120 + v*15
|
||||
|
||||
minetest.register_node("supplemental:liquid"..v, {
|
||||
description = "Flowing Test Liquid "..v,
|
||||
description = string.format(S("flowing test liquid %i"), v),
|
||||
inventory_image = minetest.inventorycube("supplemental_testliquid"..v..".png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"supplemental_testliquid"..v..".png"},
|
||||
|
@ -161,7 +170,7 @@ for v=0,7 do
|
|||
})
|
||||
|
||||
minetest.register_node("supplemental:liquidsource"..v, {
|
||||
description = "Test Liquid Source "..v,
|
||||
description = string.format(S("Test Liquid Source %i"), v),
|
||||
inventory_image = minetest.inventorycube("supplemental_testliquid"..v..".png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {"supplemental_testliquid"..v..".png"},
|
||||
|
|
Loading…
Reference in New Issue