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,5 @@
local S = minetest.get_translator("mesecons_pistons")
local specs = {
normal = {
offname = "mesecons_pistons:piston_normal_off",
@ -274,7 +276,7 @@ local piston_on_box = {
-- Normal (non-sticky) Pistons:
-- offstate
minetest.register_node("mesecons_pistons:piston_normal_off", {
description = "Piston",
description = S("Piston"),
tiles = {
"mesecons_piston_top.png",
"mesecons_piston_bottom.png",
@ -299,7 +301,7 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
-- onstate
minetest.register_node("mesecons_pistons:piston_normal_on", {
description = "Activated Piston Base",
description = S("Activated Piston Base"),
drawtype = "nodebox",
tiles = {
"mesecons_piston_top.png",
@ -328,7 +330,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
-- pusher
minetest.register_node("mesecons_pistons:piston_pusher_normal", {
description = "Piston Pusher",
description = S("Piston Pusher"),
drawtype = "nodebox",
tiles = {
"mesecons_piston_pusher_top.png",
@ -353,7 +355,7 @@ minetest.register_node("mesecons_pistons:piston_pusher_normal", {
-- Sticky ones
-- offstate
minetest.register_node("mesecons_pistons:piston_sticky_off", {
description = "Sticky Piston",
description = S("Sticky Piston"),
tiles = {
"mesecons_piston_top.png",
"mesecons_piston_bottom.png",
@ -378,7 +380,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
-- onstate
minetest.register_node("mesecons_pistons:piston_sticky_on", {
description = "Activated Sticky Piston Base",
description = S("Activated Sticky Piston Base"),
drawtype = "nodebox",
tiles = {
"mesecons_piston_top.png",
@ -407,7 +409,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
-- pusher
minetest.register_node("mesecons_pistons:piston_pusher_sticky", {
description = "Sticky Piston Pusher",
description = S("Sticky Piston Pusher"),
drawtype = "nodebox",
tiles = {
"mesecons_piston_pusher_top.png",