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)
if GENERATE_TRANSLATABLE_STRING_LIST then
print(("S(%q)"):format(desc_slab))
print(("NS(%q)"):format(desc_slab))
end
end
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)
if GENERATE_TRANSLATABLE_STRING_LIST then
print(("S(%q)"):format(desc_stair))
print(("NS(%q)"):format(desc_stair))
end
end
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)
if GENERATE_TRANSLATABLE_STRING_LIST then
print(("S(%q)"):format("Inner "..desc_stair))
print(("NS(%q)"):format("Inner "..desc_stair))
end
end
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)
if GENERATE_TRANSLATABLE_STRING_LIST then
print(("S(%q)"):format("Outer "..desc_stair))
print(("NS(%q)"):format("Outer "..desc_stair))
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.
-- To update this list, do this:
-- 1. Set GENERATE_TRANSLATABLE_STRING_LIST in register.lua to true
-- 2. Start game
-- 3. Paste the relevant part of the console output into this file
--[[
S("Wooden Stair")
S("Inner Wooden Stair")
S("Outer Wooden Stair")
S("Wooden Slab")
S("Mossy Wooden Stair")
S("Inner Mossy Wooden Stair")
S("Outer Mossy Wooden Stair")
S("Mossy Wooden Slab")
S("Palm Wood Stair")
S("Inner Palm Wood Stair")
S("Outer Palm Wood Stair")
S("Palm Wood Slab")
S("Coconut Wood Stair")
S("Inner Coconut Wood Stair")
S("Outer Coconut Wood Stair")
S("Coconut Wood Slab")
S("Stone Block Slab")
S("Stone Block Stair")
S("Inner Stone Block Stair")
S("Outer Stone Block Stair")
S("Mossy Stone Block Slab")
S("Mossy Stone Block Stair")
S("Inner Mossy Stone Block Stair")
S("Outer Mossy Stone Block Stair")
S("Stone Stair")
S("Inner Stone Stair")
S("Outer Stone Stair")
S("Stone Slab")
S("Cave Stone Stair")
S("Inner Cave Stone Stair")
S("Outer Cave Stone Stair")
S("Cave Stone Slab")
S("Island Stone Stair")
S("Inner Island Stone Stair")
S("Outer Island Stone Stair")
S("Island Stone Slab")
S("Ocean Stone Stair")
S("Inner Ocean Stone Stair")
S("Outer Ocean Stone Stair")
S("Ocean Stone Slab")
S("Ocean Cobblestone Stair")
S("Inner Ocean Cobblestone Stair")
S("Outer Ocean Cobblestone Stair")
S("Ocean Cobblestone Slab")
S("Thatch Stair")
S("Inner Thatch Stair")
S("Outer Thatch Stair")
S("Thatch Slab")
S("Wet Thatch Stair")
S("Inner Wet Thatch Stair")
S("Outer Wet Thatch Stair")
S("Wet Thatch Slab")
S("Dirt Stair")
S("Inner Dirt Stair")
S("Outer Dirt Stair")
S("Dirt Slab")
S("Seabed Stair")
S("Inner Seabed Stair")
S("Outer Seabed Stair")
S("Seabed Slab")
S("Sand Stair")
S("Inner Sand Stair")
S("Outer Sand Stair")
S("Sand Slab")
S("Sandstone Stair")
S("Inner Sandstone Stair")
S("Outer Sandstone Stair")
S("Sandstone Slab")
S("Dirt Slab with Grass")
S("Dirt Stair with Grass")
S("Inner Dirt Stair with Grass")
S("Outer Dirt Stair with Grass")
S("Dirt Slab with Jungle Litter")
S("Dirt Stair with Jungle Litter")
S("Inner Dirt Stair with Jungle Litter")
S("Outer Dirt Stair with Jungle Litter")
]]
local NS = function(s) return end
NS("Wooden Stair")
NS("Inner Wooden Stair")
NS("Outer Wooden Stair")
NS("Wooden Slab")
NS("Mossy Wooden Stair")
NS("Inner Mossy Wooden Stair")
NS("Outer Mossy Wooden Stair")
NS("Mossy Wooden Slab")
NS("Palm Wood Stair")
NS("Inner Palm Wood Stair")
NS("Outer Palm Wood Stair")
NS("Palm Wood Slab")
NS("Coconut Wood Stair")
NS("Inner Coconut Wood Stair")
NS("Outer Coconut Wood Stair")
NS("Coconut Wood Slab")
NS("Stone Block Slab")
NS("Stone Block Stair")
NS("Inner Stone Block Stair")
NS("Outer Stone Block Stair")
NS("Mossy Stone Block Slab")
NS("Mossy Stone Block Stair")
NS("Inner Mossy Stone Block Stair")
NS("Outer Mossy Stone Block Stair")
NS("Stone Stair")
NS("Inner Stone Stair")
NS("Outer Stone Stair")
NS("Stone Slab")
NS("Cave Stone Stair")
NS("Inner Cave Stone Stair")
NS("Outer Cave Stone Stair")
NS("Cave Stone Slab")
NS("Island Stone Stair")
NS("Inner Island Stone Stair")
NS("Outer Island Stone Stair")
NS("Island Stone Slab")
NS("Ocean Stone Stair")
NS("Inner Ocean Stone Stair")
NS("Outer Ocean Stone Stair")
NS("Ocean Stone Slab")
NS("Ocean Cobblestone Stair")
NS("Inner Ocean Cobblestone Stair")
NS("Outer Ocean Cobblestone Stair")
NS("Ocean Cobblestone Slab")
NS("Thatch Stair")
NS("Inner Thatch Stair")
NS("Outer Thatch Stair")
NS("Thatch Slab")
NS("Wet Thatch Stair")
NS("Inner Wet Thatch Stair")
NS("Outer Wet Thatch Stair")
NS("Wet Thatch Slab")
NS("Dirt Stair")
NS("Inner Dirt Stair")
NS("Outer Dirt Stair")
NS("Dirt Slab")
NS("Seabed Stair")
NS("Inner Seabed Stair")
NS("Outer Seabed Stair")
NS("Seabed Slab")
NS("Sand Stair")
NS("Inner Sand Stair")
NS("Outer Sand Stair")
NS("Sand Slab")
NS("Sandstone Stair")
NS("Inner Sandstone Stair")
NS("Outer Sandstone Stair")
NS("Sandstone Slab")
NS("Dirt Slab with Grass")
NS("Dirt Stair with Grass")
NS("Inner Dirt Stair with Grass")
NS("Outer Dirt Stair with Grass")
NS("Dirt Slab with Jungle Litter")
NS("Dirt Stair with Jungle Litter")
NS("Inner Dirt Stair with Jungle Litter")
NS("Outer Dirt Stair with Jungle Litter")