1
0
mirror of https://github.com/lisacvuk/minetest-toolranks.git synced 2025-01-10 07:50:17 +01:00

more info and languages

This commit adds
- Tells player to which level tool has leveled up
  instead of just teasing
- German translation
- French 'vous' to more informal 'tu'
This commit is contained in:
Luke aka SwissalpS 2022-01-21 03:48:29 +01:00
parent 568944bc87
commit 266f8ab06a
4 changed files with 22 additions and 4 deletions

View File

@ -102,9 +102,12 @@ function toolranks.new_afteruse(itemstack, user, node, digparams)
local level = toolranks.get_level(dugnodes)
if lastlevel < level then
local levelup_text = S(
"Your @1@2@3 just leveled up!",
"Your @1@2@3 just leveled up to @4@5@6!",
toolranks.colors.green,
itemdesc,
toolranks.colors.white,
toolranks.colors.green,
level,
toolranks.colors.white
)
minetest.chat_send_player(user:get_player_name(), levelup_text)
@ -187,3 +190,4 @@ toolranks.add_tool("default:shovel_steel")
toolranks.add_tool("default:shovel_bronze")
toolranks.add_tool("default:shovel_mese")
toolranks.add_tool("default:shovel_diamond")

12
locale/toolranks.de.tr Normal file
View File

@ -0,0 +1,12 @@
# textdomain: toolranks
@1@2@n@3Level @4 @5@n@6Node dug: @7=@1@2@n@3Stufe @4 @5@n@6Node gegraben: @7
pickaxe=Spitzhacke
axe=Axt
shovel=Schaufel
hoe=Hacke
sword=Schwert
tool=Werkzeug
Most used tool is now a @1@2@3 owned by @4 with @5 uses.=Das meist benutzte Werkzeug ist nun: @1@2@3 im Besitz von @4 mit @5 Benutzungen.
Your tool is about to break!=Dein Werkzeug wird gleich brechen!
Your @1@2@3 just leveled up to @4@5@6!=@1@2@3 ist gerade aufgebessert worden zur Stufe @4@5@6!

View File

@ -8,4 +8,5 @@ sword=sword
tool=tool
Most used tool is now a @1@2@3 owned by @4 with @5 uses.=Most used tool is now a @1@2@3 owned by @4 with @5 uses.
Your tool is about to break!=Your tool is about to break!
Your @1@2@3 just leveled up!=Your @1@2@3 just leveled up!
Your @1@2@3 just leveled up to @4@5@6!=Your @1@2@3 just leveled up to @4@5@6!

View File

@ -7,5 +7,6 @@ hoe=houe
sword=épée
tool=outil
Most used tool is now a @1@2@3 owned by @4 with @5 uses.=Loutil le plus utilisé est désormais @1@2@3 appartenant à @4 avec @5 utilisations.
Your tool is about to break!=Votre outil va se casser !
Your @1@2@3 just leveled up!=Votre @1@2@3 a gagné un niveau !
Your tool is about to break!=Tu outil va se casser !
Your @1@2@3 just leveled up to @4@5@6!=Tu @1@2@3 a gagné un niveau au @4@5@6 !