mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-04-30 13:31:39 -04:00
Internationalize lasso
This commit is contained in:
parent
017fb33b35
commit
afab517916
2 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,9 @@ local abs = math.abs
|
||||||
local vec_add, vec_dir, vec_dist, vec_len = vector.add, vector.direction, vector.distance, vector.length
|
local vec_add, vec_dir, vec_dist, vec_len = vector.add, vector.direction, vector.distance, vector.length
|
||||||
local dir2rot = vector.dir_to_rotation
|
local dir2rot = vector.dir_to_rotation
|
||||||
|
|
||||||
|
-- Load support for MT game translation.
|
||||||
|
local S = minetest.get_translator("animalia")
|
||||||
|
|
||||||
-- Entities --
|
-- Entities --
|
||||||
|
|
||||||
local using_lasso = {}
|
local using_lasso = {}
|
||||||
|
@ -202,7 +205,7 @@ end
|
||||||
-- Item
|
-- Item
|
||||||
|
|
||||||
minetest.register_craftitem("animalia:lasso", {
|
minetest.register_craftitem("animalia:lasso", {
|
||||||
description = "Lasso",
|
description = S("Lasso"),
|
||||||
inventory_image = "animalia_lasso.png",
|
inventory_image = "animalia_lasso.png",
|
||||||
on_secondary_use = function(_, placer, pointed)
|
on_secondary_use = function(_, placer, pointed)
|
||||||
local ent = pointed.ref and pointed.ref:get_luaentity()
|
local ent = pointed.ref and pointed.ref:get_luaentity()
|
||||||
|
|
|
@ -16,6 +16,7 @@ Feather=
|
||||||
Female=
|
Female=
|
||||||
Fried @1=
|
Fried @1=
|
||||||
Guano=
|
Guano=
|
||||||
|
Lasso=
|
||||||
Leather=
|
Leather=
|
||||||
Male=
|
Male=
|
||||||
Nametag=
|
Nametag=
|
||||||
|
|
Loading…
Add table
Reference in a new issue