Add MT 5.0 translation support

This commit is contained in:
Wuzzy
2020-02-23 19:59:17 +01:00
parent 68c1729990
commit 1cd496292d
34 changed files with 231 additions and 163 deletions

View File

@ -1,3 +1,4 @@
local S = minetest.get_translator("mesecons_extrawires")
local screwdriver_exists = minetest.global_exists("screwdriver")
local corner_nodebox = {
@ -56,7 +57,7 @@ minetest.register_node("mesecons_extrawires:corner_on", {
minetest.register_node("mesecons_extrawires:corner_off", {
drawtype = "nodebox",
description = "Insulated Mesecon Corner",
description = S("Insulated Mesecon Corner"),
tiles = {
"jeija_insulated_wire_curved_tb_off.png",
"jeija_insulated_wire_curved_tb_off.png^[transformR270",

View File

@ -1,3 +1,5 @@
local S = minetest.get_translator("mesecons_extrawires")
local function crossover_get_rules(node)
return {
{--first wire
@ -19,7 +21,7 @@ local crossover_states = {
}
minetest.register_node("mesecons_extrawires:crossover_off", {
description = "Insulated Mesecon Crossover",
description = S("Insulated Mesecon Crossover"),
drawtype = "mesh",
mesh = "mesecons_extrawires_crossover.b3d",
tiles = {
@ -45,7 +47,6 @@ minetest.register_node("mesecons_extrawires:crossover_off", {
})
minetest.register_node("mesecons_extrawires:crossover_01", {
description = "You hacker you!",
drop = "mesecons_extrawires:crossover_off",
drawtype = "mesh",
mesh = "mesecons_extrawires_crossover.b3d",
@ -72,7 +73,6 @@ minetest.register_node("mesecons_extrawires:crossover_01", {
})
minetest.register_node("mesecons_extrawires:crossover_10", {
description = "You hacker you!",
drop = "mesecons_extrawires:crossover_off",
drawtype = "mesh",
mesh = "mesecons_extrawires_crossover.b3d",
@ -99,7 +99,6 @@ minetest.register_node("mesecons_extrawires:crossover_10", {
})
minetest.register_node("mesecons_extrawires:crossover_on", {
description = "You hacker you!",
drop = "mesecons_extrawires:crossover_off",
drawtype = "mesh",
mesh = "mesecons_extrawires_crossover.b3d",

View File

@ -1,3 +1,5 @@
local S = minetest.get_translator("mesecons_extrawires")
local screwdriver_exists = minetest.global_exists("screwdriver")
local tjunction_nodebox = {
@ -57,7 +59,7 @@ minetest.register_node("mesecons_extrawires:tjunction_on", {
minetest.register_node("mesecons_extrawires:tjunction_off", {
drawtype = "nodebox",
description = "Insulated Mesecon T-junction",
description = S("Insulated Mesecon T-junction"),
tiles = {
"jeija_insulated_wire_tjunction_tb_off.png",
"jeija_insulated_wire_tjunction_tb_off.png^[transformR180",

View File

@ -1,3 +1,5 @@
local S = minetest.get_translator("mesecons_extrawires")
local vertical_box = {
type = "fixed",
fixed = {-1/16, -8/16, -1/16, 1/16, 8/16, 1/16}
@ -77,7 +79,7 @@ end
-- Vertical wire
mesecon.register_node("mesecons_extrawires:vertical", {
description = "Vertical Mesecon",
description = S("Vertical Mesecon"),
drawtype = "nodebox",
walkable = false,
paramtype = "light",
@ -110,7 +112,7 @@ mesecon.register_node("mesecons_extrawires:vertical", {
-- Vertical wire top
mesecon.register_node("mesecons_extrawires:vertical_top", {
description = "Vertical mesecon",
description = S("Vertical Mesecon"),
drawtype = "nodebox",
walkable = false,
paramtype = "light",
@ -142,7 +144,7 @@ mesecon.register_node("mesecons_extrawires:vertical_top", {
-- Vertical wire bottom
mesecon.register_node("mesecons_extrawires:vertical_bottom", {
description = "Vertical mesecon",
description = S("Vertical Mesecon"),
drawtype = "nodebox",
walkable = false,
paramtype = "light",