Compare commits

...

3 Commits

Author SHA1 Message Date
mckaygerhard 5c9553e5ac add spanish translation 2023-06-11 14:47:22 -04:00
mckaygerhard 0097f270aa fix namespace name reference 2023-06-11 14:43:49 -04:00
mckaygerhard 1abc4906a9 Show the new tool level in the level-up chat message and from
* backported 9e02edb5e2
* upload screenshot
2023-06-11 14:40:21 -04:00
4 changed files with 15 additions and 2 deletions

View File

@ -14,6 +14,8 @@ and also provides improved xperience over the tool as much you use it..
# Technical information
---------------------
This mod is named `toolranks`
This ranktool is the tenplus1's version, featured custom values throught
configuration interface for dig speed, mutiplier and durability.

View File

@ -1,7 +1,7 @@
local S
if minetest.get_translator ~= nil then
S = minetest.get_translator("toolrank") -- 5.x translation function
S = minetest.get_translator("toolranks") -- 5.x translation function
else
if minetest.get_modpath("intllib") then
dofile(minetest.get_modpath("intllib") .. "/init.lua")
@ -108,7 +108,7 @@ function toolranks.new_afteruse(itemstack, user, node, digparams)
toolranks.colors.white
)
minetest.chat_send_player(pname, levelup_text)
minetest.chat_send_player(pname, levelup_text .. " "..lastlevel.." -> "..level)
minetest.sound_play("toolranks_levelup", {
to_player = pname,

11
locale/toolranks.es.tr Normal file
View File

@ -0,0 +1,11 @@
# textdomain: toolranks
@1@2@n@3Level @4 @5@n@6Node dug: @7=@1@2@n@3Nivel @4 @5@n@6Nodos picado: @7
pickaxe=pickaxe
axe=axe
shovel=shovel
hoe=hoe
sword=sword
tool=tool
Most used tool is now a @1@2@3 owned by @4 with @5 uses.=La herramienta mas usada es @1@2@3 pertenece a @4 con @5 veces.
Your tool is about to break!=Tu herramienta esta a punto de romperse!
Your @1@2@3 just leveled up!=Tu @1@2@3 acaba de subir nivel!

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB