mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-07 06:06:10 -04:00
Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
This commit is contained in:
parent
d99a176b69
commit
bb9279ccb8
43 changed files with 632 additions and 433 deletions
|
@ -1,5 +1,11 @@
|
|||
-- walls/init.lua
|
||||
|
||||
walls = {}
|
||||
|
||||
-- Load support for MT game translation.
|
||||
local S = minetest.get_translator("walls")
|
||||
|
||||
|
||||
walls.register = function(wall_name, wall_desc, wall_texture_table, wall_mat, wall_sounds)
|
||||
--make wall_texture_table paramenter backwards compatible for mods passing single texture
|
||||
if type(wall_texture_table) ~= "table" then
|
||||
|
@ -39,12 +45,12 @@ walls.register = function(wall_name, wall_desc, wall_texture_table, wall_mat, wa
|
|||
|
||||
end
|
||||
|
||||
walls.register("walls:cobble", "Cobblestone Wall", {"default_cobble.png"},
|
||||
walls.register("walls:cobble", S("Cobblestone Wall"), {"default_cobble.png"},
|
||||
"default:cobble", default.node_sound_stone_defaults())
|
||||
|
||||
walls.register("walls:mossycobble", "Mossy Cobblestone Wall", {"default_mossycobble.png"},
|
||||
walls.register("walls:mossycobble", S("Mossy Cobblestone Wall"), {"default_mossycobble.png"},
|
||||
"default:mossycobble", default.node_sound_stone_defaults())
|
||||
|
||||
walls.register("walls:desertcobble", "Desert Cobblestone Wall", {"default_desert_cobble.png"},
|
||||
walls.register("walls:desertcobble", S("Desert Cobblestone Wall"), {"default_desert_cobble.png"},
|
||||
"default:desert_cobble", default.node_sound_stone_defaults())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue