Добавил локализацию пока EN

This commit is contained in:
n0m 2024-08-13 00:37:57 +02:00
parent 344d54c2be
commit 379ecc3902
6 changed files with 62 additions and 29 deletions

View File

@ -22,6 +22,7 @@ end
pkarcs = {}
local S = minetest.get_translator("pkarcs")
-- convert integer coordinates to nodebox coordinates
function nb(n)
@ -39,7 +40,7 @@ function pkarcs.register_all(nodename, desc, tile, sound, group, craftmaterial)
end
minetest.register_node(":pkarcs:"..nodename.."_arc", {
description = desc.." Arc",
description = desc.. " "..S("Arc"),
paramtype = "light",
paramtype2 = "facedir",
tiles = tile_collection,
@ -114,7 +115,7 @@ function pkarcs.register_all(nodename, desc, tile, sound, group, craftmaterial)
})
minetest.register_node(":pkarcs:"..nodename.."_outer_arc", {
description = desc.." Outer Arc",
description = desc.. " "..S("Outer Arc"),
paramtype = "light",
paramtype2 = "facedir",
tiles = tile_collection,
@ -190,7 +191,7 @@ function pkarcs.register_all(nodename, desc, tile, sound, group, craftmaterial)
})
minetest.register_node(":pkarcs:"..nodename.."_inner_arc", {
description = desc.." Inner Arc",
description = desc.. " "..S("Inner Arc"),
paramtype = "light",
paramtype2 = "facedir",
tiles = tile_collection,

View File

@ -0,0 +1,3 @@
Arc = Arc
Outer Arc = Outer Arc
Inner Arc = Inner Arc

View File

@ -1,12 +1,13 @@
screwdriver = screwdriver or {}
pkarcs_doors = {}
local S = minetest.get_translator("pkarcs_doors")
-- Register Door Nodes
pkarcs_doors.door = {
{
"acacia_wood",
"Acacia Wood",
S("Acacia Wood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -16,7 +17,7 @@ pkarcs_doors.door = {
{
"aspen_wood",
"Aspen Wood",
S("Aspen Wood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -26,7 +27,7 @@ pkarcs_doors.door = {
{
"junglewood",
"Junglewood",
S("Junglewood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -36,7 +37,7 @@ pkarcs_doors.door = {
{
"pine_wood",
"Pine Wood",
S("Pine Wood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -46,7 +47,7 @@ pkarcs_doors.door = {
{
"wood",
"Wood",
S("Wood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -56,7 +57,7 @@ pkarcs_doors.door = {
{
"bronze",
"Bronze",
S("Bronze"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -66,7 +67,7 @@ pkarcs_doors.door = {
{
"copper",
"Copper",
S("Copper"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -76,7 +77,7 @@ pkarcs_doors.door = {
{
"iron",
"Iron",
S("Iron"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -86,7 +87,7 @@ pkarcs_doors.door = {
{
"steel",
"Steel",
S("Steel"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -96,7 +97,7 @@ pkarcs_doors.door = {
{
"tin",
"Tin",
S("Tin"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -106,7 +107,7 @@ pkarcs_doors.door = {
{
"bar",
"Bar",
S("Bar"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -145,7 +146,7 @@ for _, row in ipairs(pkarcs_doors.door) do
local craft_material = row[7]
local Ldoor_def = {
description = desc.. " Arch Door (left)",
description = desc.. " "..S("Arch Door (left)"),
inventory_image = "pkarcs_doors_" ..name.. "_item.png",
wield_image = "pkarcs_doors_" ..name.. "_item.png",
drawtype = "mesh",
@ -236,7 +237,7 @@ for _, row in ipairs(pkarcs_doors.door) do
local Rdoor_def = {
description = desc.. " Arch Door (right)",
description = desc.. " "..S("Arch Door (right)"),
inventory_image = "pkarcs_doors_" ..name.. "_item.png^[transformFXX",
wield_image = "pkarcs_doors_" ..name.. "_item.png^[transformFXX",
drawtype = "mesh",

View File

@ -0,0 +1,14 @@
Arch Door (left) = Arch Door (left)
Arch Door (right) = Arch Door (right)
Acacia Wood =Acacia Wood
Aspen Wood =Aspen Wood
Junglewood=Junglewood
Pine Wood=Pine Wood
Wood=Wood
Bronze=Bronze
Copper=Copper
Iron=Iron
Steel=Steel
Tin=Tin
Bar=Bar

View File

@ -1,12 +1,13 @@
screwdriver = screwdriver or {}
pkarcs_doors3 = {}
local S = minetest.get_translator("pkarcs_doors3")
-- Register Door Nodes
pkarcs_doors3.door = {
{
"acacia_wood",
"Acacia Wood",
S("Acacia Wood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -16,7 +17,7 @@ pkarcs_doors3.door = {
{
"aspen_wood",
"Aspen Wood",
S("Aspen Wood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -26,7 +27,7 @@ pkarcs_doors3.door = {
{
"junglewood",
"Junglewood",
S("Junglewood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -36,7 +37,7 @@ pkarcs_doors3.door = {
{
"pine_wood",
"Pine Wood",
S("Pine Wood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -46,7 +47,7 @@ pkarcs_doors3.door = {
{
"wood",
"Wood",
S("Wood"),
{choppy = 2, door = 1},
default.node_sound_wood_defaults(),
"doors_door",
@ -56,7 +57,7 @@ pkarcs_doors3.door = {
{
"bronze",
"Bronze",
S("Bronze"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -66,7 +67,7 @@ pkarcs_doors3.door = {
{
"copper",
"Copper",
S("Copper"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -76,7 +77,7 @@ pkarcs_doors3.door = {
{
"iron",
"Iron",
S("Iron"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -86,7 +87,7 @@ pkarcs_doors3.door = {
{
"steel",
"Steel",
S("Steel"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -96,7 +97,7 @@ pkarcs_doors3.door = {
{
"tin",
"Tin",
S("Tin"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -106,7 +107,7 @@ pkarcs_doors3.door = {
{
"bar",
"Bar",
S("Bar"),
{cracky = 1, level = 2, door = 1},
default.node_sound_metal_defaults(),
"doors_steel_door",
@ -146,7 +147,7 @@ for _, row in ipairs(pkarcs_doors3.door) do
local Ldoor_def = {
description = desc.. " Arch Door3 (left)",
description = desc.. " "..S("Arch Door3 (left)"),
inventory_image = "pkarcs_doors3_" ..name.. "_item.png",
wield_image = "pkarcs_doors3_" ..name.. "_item.png",
drawtype = "mesh",
@ -235,7 +236,7 @@ for _, row in ipairs(pkarcs_doors3.door) do
minetest.register_node(":pkarcs_doors3:" ..name.. "_Ldoor_open", Ldoor_open_def)
local Rdoor_def = {
description = desc.. " Arch Door3 (right)",
description = desc.. " "..S("Arch Door3 (right)"),
inventory_image = "pkarcs_doors3_" ..name.. "_item.png^[transformFXX",
wield_image = "pkarcs_doors3_" ..name.. "_item.png^[transformFXX",
drawtype = "mesh",

View File

@ -0,0 +1,13 @@
Arch Door3 (left) = Arch Door3 (left)
Arch Door3 (right) = Arch Door3 (right)
Acacia Wood =Acacia Wood
Aspen Wood =Aspen Wood
Junglewood=Junglewood
Pine Wood=Pine Wood
Wood=Wood
Bronze=Bronze
Copper=Copper
Iron=Iron
Steel=Steel
Tin=Tin
Bar=Bar