Add test locale

This commit is contained in:
Van
2026-01-02 23:03:54 +03:00
parent 2032082ba8
commit cf4ca6f8dc
3 changed files with 6 additions and 3 deletions

View File

@@ -52,10 +52,10 @@ local function itemDefToLuantiDef(itemDef, addModName)
end end
if description == nil or description == '' then if description == nil or description == '' then
description = string.match(s.name, '%S:(%S+)')..'-description' description = string.match(s.name, '%S:(%S+)')..'-desc'
end end
local description = S(title)..'\n'..S(description) local description = S(title)..'\n'..core.colorize('#C0C0C0', S(description))
s.title, s.description = nil, description s.title, s.description = nil, description

View File

@@ -9,7 +9,6 @@ local Plant = modInfo.require('Plant')
Plant:new({ Plant:new({
settings = { settings = {
name = 'plants', name = 'plants',
description = 'Plant',
tiles = { "test_plant.png" }, tiles = { "test_plant.png" },
place_param2 = 3, place_param2 = 3,
}, },

View File

@@ -0,0 +1,4 @@
# textdomain: soils
turf_swamp-title=Болотистая Почва
turf_swamp-desc=Высокоплодородистая почва с высоким содержанием удобрений.