Remove comment signs in lzr_stairs translate.lua

This commit is contained in:
Wuzzy 2024-12-16 04:50:47 +01:00
parent 13a83c4253
commit 0a79e410f6
2 changed files with 85 additions and 83 deletions

View File

@ -24,28 +24,28 @@ local function my_register_slab(subname, recipeitem, groups, images, desc_slab,
lzr_stairs.register_slab(subname, recipeitem, groups, images, S(desc_slab), sounds, worldaligntex, images_top_slab) lzr_stairs.register_slab(subname, recipeitem, groups, images, S(desc_slab), sounds, worldaligntex, images_top_slab)
if GENERATE_TRANSLATABLE_STRING_LIST then if GENERATE_TRANSLATABLE_STRING_LIST then
print(("S(%q)"):format(desc_slab)) print(("NS(%q)"):format(desc_slab))
end end
end end
local function my_register_stair(subname, recipeitem, groups, images, desc_stair, sounds, worldaligntex, vertical_rotation) local function my_register_stair(subname, recipeitem, groups, images, desc_stair, sounds, worldaligntex, vertical_rotation)
lzr_stairs.register_stair(subname, recipeitem, groups, images, S(desc_stair), sounds, worldaligntex, vertical_rotation) lzr_stairs.register_stair(subname, recipeitem, groups, images, S(desc_stair), sounds, worldaligntex, vertical_rotation)
if GENERATE_TRANSLATABLE_STRING_LIST then if GENERATE_TRANSLATABLE_STRING_LIST then
print(("S(%q)"):format(desc_stair)) print(("NS(%q)"):format(desc_stair))
end end
end end
local function my_register_stair_inner(subname, recipeitem, groups, images, desc_stair, sounds, worldaligntex, vertical_rotation) local function my_register_stair_inner(subname, recipeitem, groups, images, desc_stair, sounds, worldaligntex, vertical_rotation)
lzr_stairs.register_stair_inner(subname, recipeitem, groups, images, "", sounds, worldaligntex, T("Inner " .. desc_stair), vertical_rotation) lzr_stairs.register_stair_inner(subname, recipeitem, groups, images, "", sounds, worldaligntex, T("Inner " .. desc_stair), vertical_rotation)
if GENERATE_TRANSLATABLE_STRING_LIST then if GENERATE_TRANSLATABLE_STRING_LIST then
print(("S(%q)"):format("Inner "..desc_stair)) print(("NS(%q)"):format("Inner "..desc_stair))
end end
end end
local function my_register_stair_outer(subname, recipeitem, groups, images, desc_stair, sounds, worldaligntex, vertical_rotation) local function my_register_stair_outer(subname, recipeitem, groups, images, desc_stair, sounds, worldaligntex, vertical_rotation)
lzr_stairs.register_stair_outer(subname, recipeitem, groups, images, "", sounds, worldaligntex, T("Outer " .. desc_stair), vertical_rotation) lzr_stairs.register_stair_outer(subname, recipeitem, groups, images, "", sounds, worldaligntex, T("Outer " .. desc_stair), vertical_rotation)
if GENERATE_TRANSLATABLE_STRING_LIST then if GENERATE_TRANSLATABLE_STRING_LIST then
print(("S(%q)"):format("Outer "..desc_stair)) print(("NS(%q)"):format("Outer "..desc_stair))
end end
end end

View File

@ -1,85 +1,87 @@
-- Dummy calls to S() to allow translation scripts to detect the strings. -- This Lua file is not actually meant to be executed. Instead, it contains
-- dummy function calls to NS() to allow translation scripts to detect the strings.
-- MUST be updated before release when new nodes have arrived. -- MUST be updated before release when new nodes have arrived.
-- To update this list, do this: -- To update this list, do this:
-- 1. Set GENERATE_TRANSLATABLE_STRING_LIST in register.lua to true -- 1. Set GENERATE_TRANSLATABLE_STRING_LIST in register.lua to true
-- 2. Start game -- 2. Start game
-- 3. Paste the relevant part of the console output into this file -- 3. Paste the relevant part of the console output into this file
--[[ local NS = function(s) return end
S("Wooden Stair")
S("Inner Wooden Stair") NS("Wooden Stair")
S("Outer Wooden Stair") NS("Inner Wooden Stair")
S("Wooden Slab") NS("Outer Wooden Stair")
S("Mossy Wooden Stair") NS("Wooden Slab")
S("Inner Mossy Wooden Stair") NS("Mossy Wooden Stair")
S("Outer Mossy Wooden Stair") NS("Inner Mossy Wooden Stair")
S("Mossy Wooden Slab") NS("Outer Mossy Wooden Stair")
S("Palm Wood Stair") NS("Mossy Wooden Slab")
S("Inner Palm Wood Stair") NS("Palm Wood Stair")
S("Outer Palm Wood Stair") NS("Inner Palm Wood Stair")
S("Palm Wood Slab") NS("Outer Palm Wood Stair")
S("Coconut Wood Stair") NS("Palm Wood Slab")
S("Inner Coconut Wood Stair") NS("Coconut Wood Stair")
S("Outer Coconut Wood Stair") NS("Inner Coconut Wood Stair")
S("Coconut Wood Slab") NS("Outer Coconut Wood Stair")
S("Stone Block Slab") NS("Coconut Wood Slab")
S("Stone Block Stair") NS("Stone Block Slab")
S("Inner Stone Block Stair") NS("Stone Block Stair")
S("Outer Stone Block Stair") NS("Inner Stone Block Stair")
S("Mossy Stone Block Slab") NS("Outer Stone Block Stair")
S("Mossy Stone Block Stair") NS("Mossy Stone Block Slab")
S("Inner Mossy Stone Block Stair") NS("Mossy Stone Block Stair")
S("Outer Mossy Stone Block Stair") NS("Inner Mossy Stone Block Stair")
S("Stone Stair") NS("Outer Mossy Stone Block Stair")
S("Inner Stone Stair") NS("Stone Stair")
S("Outer Stone Stair") NS("Inner Stone Stair")
S("Stone Slab") NS("Outer Stone Stair")
S("Cave Stone Stair") NS("Stone Slab")
S("Inner Cave Stone Stair") NS("Cave Stone Stair")
S("Outer Cave Stone Stair") NS("Inner Cave Stone Stair")
S("Cave Stone Slab") NS("Outer Cave Stone Stair")
S("Island Stone Stair") NS("Cave Stone Slab")
S("Inner Island Stone Stair") NS("Island Stone Stair")
S("Outer Island Stone Stair") NS("Inner Island Stone Stair")
S("Island Stone Slab") NS("Outer Island Stone Stair")
S("Ocean Stone Stair") NS("Island Stone Slab")
S("Inner Ocean Stone Stair") NS("Ocean Stone Stair")
S("Outer Ocean Stone Stair") NS("Inner Ocean Stone Stair")
S("Ocean Stone Slab") NS("Outer Ocean Stone Stair")
S("Ocean Cobblestone Stair") NS("Ocean Stone Slab")
S("Inner Ocean Cobblestone Stair") NS("Ocean Cobblestone Stair")
S("Outer Ocean Cobblestone Stair") NS("Inner Ocean Cobblestone Stair")
S("Ocean Cobblestone Slab") NS("Outer Ocean Cobblestone Stair")
S("Thatch Stair") NS("Ocean Cobblestone Slab")
S("Inner Thatch Stair") NS("Thatch Stair")
S("Outer Thatch Stair") NS("Inner Thatch Stair")
S("Thatch Slab") NS("Outer Thatch Stair")
S("Wet Thatch Stair") NS("Thatch Slab")
S("Inner Wet Thatch Stair") NS("Wet Thatch Stair")
S("Outer Wet Thatch Stair") NS("Inner Wet Thatch Stair")
S("Wet Thatch Slab") NS("Outer Wet Thatch Stair")
S("Dirt Stair") NS("Wet Thatch Slab")
S("Inner Dirt Stair") NS("Dirt Stair")
S("Outer Dirt Stair") NS("Inner Dirt Stair")
S("Dirt Slab") NS("Outer Dirt Stair")
S("Seabed Stair") NS("Dirt Slab")
S("Inner Seabed Stair") NS("Seabed Stair")
S("Outer Seabed Stair") NS("Inner Seabed Stair")
S("Seabed Slab") NS("Outer Seabed Stair")
S("Sand Stair") NS("Seabed Slab")
S("Inner Sand Stair") NS("Sand Stair")
S("Outer Sand Stair") NS("Inner Sand Stair")
S("Sand Slab") NS("Outer Sand Stair")
S("Sandstone Stair") NS("Sand Slab")
S("Inner Sandstone Stair") NS("Sandstone Stair")
S("Outer Sandstone Stair") NS("Inner Sandstone Stair")
S("Sandstone Slab") NS("Outer Sandstone Stair")
S("Dirt Slab with Grass") NS("Sandstone Slab")
S("Dirt Stair with Grass") NS("Dirt Slab with Grass")
S("Inner Dirt Stair with Grass") NS("Dirt Stair with Grass")
S("Outer Dirt Stair with Grass") NS("Inner Dirt Stair with Grass")
S("Dirt Slab with Jungle Litter") NS("Outer Dirt Stair with Grass")
S("Dirt Stair with Jungle Litter") NS("Dirt Slab with Jungle Litter")
S("Inner Dirt Stair with Jungle Litter") NS("Dirt Stair with Jungle Litter")
S("Outer Dirt Stair with Jungle Litter") NS("Inner Dirt Stair with Jungle Litter")
]] NS("Outer Dirt Stair with Jungle Litter")