Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobs bee migrate to get_mod_translator(). Related to #328 #1922

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mods/_various/mobs/bee.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local SL = lord.require_intllib()
local S = minetest.get_mod_translator()

-- Bee by KrupnoPavel

Expand Down Expand Up @@ -46,18 +46,18 @@ mobs:register_mob("mobs:bee", {
--mobs:spawn_specific(name, nodes, {"air"}, min_light, max_light, 30, chance, active_object_count, -31000, max_height)
mobs:spawn_specific("mobs:bee", {"group:flower"}, {"air"}, 10, 20, 30, 5000, 1, 0, 1000)

mobs:register_egg("mobs:bee", SL("Bee"), "mobs_bee_inv.png", 0)
mobs:register_egg("mobs:bee", S("Bee"), "mobs_bee_inv.png", 0)

-- honey
minetest.register_craftitem("mobs:honey", {
description = SL("Honey"),
description = S("Honey"),
inventory_image = "mobs_honey_inv.png",
on_use = minetest.item_eat(6),
})

-- beehive (when placed spawns bee)
minetest.register_node("mobs:beehive", {
description = SL("Beehive"),
description = S("Beehive"),
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"mobs_beehive.png"},
Expand Down Expand Up @@ -88,7 +88,7 @@ minetest.register_node("mobs:beehive", {

-- honey block
minetest.register_node("mobs:honey_block", {
description = SL("Honey Block"),
description = S("Honey Block"),
tiles = {"mobs_honey_block.png"},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_dirt_defaults(),
Expand Down
5 changes: 0 additions & 5 deletions mods/_various/mobs/locale/en.txt

This file was deleted.

13 changes: 13 additions & 0 deletions mods/_various/mobs/locale/mobs.ru.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# textdomain: mobs
Honey=Мёд
Beehive=Улей
Honey Block=Блок мёда
Bee=Пчела
[MOBS] mod profiling enabled, damage not enabled=[MOBS] профилирование мода включено, урон не включен
lifetimer expired, removed @1=таймер жизни истёк, удален @1
[Mobs Redo] @1 has spawning disabled=[Mobs Redo] спавн @1 выключен
[Mobs Redo] Chance setting for @1 is now @2=[Mobs Redo] Значение вероятности для @1 теперь равно @2
[mobs] @1 failed to spawn at @2=@1 не удалось появиться на @2
Missed!=Не поймал!
Enter name:=Введите имя:
Rename=Переименовать
15 changes: 0 additions & 15 deletions mods/_various/mobs/locale/ru.txt

This file was deleted.

Loading