Skip to content

Commit

Permalink
Translations: torches: move to native. Fix luminance in tooltips. C…
Browse files Browse the repository at this point in the history
…loses #1528. Fixes #1616
  • Loading branch information
alek13 committed Aug 25, 2024
1 parent d80e860 commit abd6e35
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
3 changes: 0 additions & 3 deletions mods/lord/Blocks/torches/locale/en.txt

This file was deleted.

3 changes: 0 additions & 3 deletions mods/lord/Blocks/torches/locale/ru.txt

This file was deleted.

5 changes: 5 additions & 0 deletions mods/lord/Blocks/torches/locale/torches.en.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# textdomain: torches

Torch=Torch
Elven Torch=Elven Torch
Orcish Torch=Orcish Torch
5 changes: 5 additions & 0 deletions mods/lord/Blocks/torches/locale/torches.ru.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# textdomain: torches

Torch=Человеческий факел
Elven Torch=Эльфийский факел
Orcish Torch=Орочий факел
13 changes: 6 additions & 7 deletions mods/lord/Blocks/torches/mt_style.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
local SL = lord.require_intllib()
local S = lord.require_intllib()



if minetest.get_modpath("lottother") then
--elf
minetest.register_craftitem(":lottother:blue_torch", {
description = SL("Blue Torch"),
description = S("Elven Torch"),
inventory_image = "lottother_blue_torch_floor.png",
groups = {wooden = 1},
wield_image = "lottother_blue_torch_floor.png",
wield_scale = {x = 1, y = 1, z = 1 + 1/16},
liquids_pointable = false,
light_source = 14,
on_place = function(itemstack, placer, pointed_thing)
local above = pointed_thing.above
local under = pointed_thing.under
Expand Down Expand Up @@ -146,13 +145,13 @@ minetest.register_abm({

--orc
minetest.register_craftitem(":lottother:orc_torch", {
description = SL("Orc Torch"),
description = S("Orcish Torch"),
inventory_image = "lottother_orc_torch_floor.png",
wield_image = "lottother_orc_torch_floor.png",
wield_scale = { x = 1, y = 1, z = 1 + 1 / 16 },
groups = { wooden = 1 },
liquids_pointable = false,
light_source = default.LIGHT_MAX - 3,
light_source = 8,
on_place = function(itemstack, placer, pointed_thing)
local above = pointed_thing.above
local under = pointed_thing.under
Expand Down Expand Up @@ -283,4 +282,4 @@ minetest.register_abm({
end
end
})
end

0 comments on commit abd6e35

Please sign in to comment.