mirror of
https://github.com/lisacvuk/minetest-toolranks.git
synced 2025-01-10 16:00: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:
parent
568944bc87
commit
266f8ab06a
6
init.lua
6
init.lua
@ -102,9 +102,12 @@ function toolranks.new_afteruse(itemstack, user, node, digparams)
|
|||||||
local level = toolranks.get_level(dugnodes)
|
local level = toolranks.get_level(dugnodes)
|
||||||
if lastlevel < level then
|
if lastlevel < level then
|
||||||
local levelup_text = S(
|
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,
|
toolranks.colors.green,
|
||||||
itemdesc,
|
itemdesc,
|
||||||
|
toolranks.colors.white,
|
||||||
|
toolranks.colors.green,
|
||||||
|
level,
|
||||||
toolranks.colors.white
|
toolranks.colors.white
|
||||||
)
|
)
|
||||||
minetest.chat_send_player(user:get_player_name(), levelup_text)
|
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_bronze")
|
||||||
toolranks.add_tool("default:shovel_mese")
|
toolranks.add_tool("default:shovel_mese")
|
||||||
toolranks.add_tool("default:shovel_diamond")
|
toolranks.add_tool("default:shovel_diamond")
|
||||||
|
|
||||||
|
12
locale/toolranks.de.tr
Normal file
12
locale/toolranks.de.tr
Normal 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!
|
||||||
|
|
@ -8,4 +8,5 @@ sword=sword
|
|||||||
tool=tool
|
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.
|
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 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!
|
||||||
|
|
||||||
|
@ -7,5 +7,6 @@ hoe=houe
|
|||||||
sword=épée
|
sword=épée
|
||||||
tool=outil
|
tool=outil
|
||||||
Most used tool is now a @1@2@3 owned by @4 with @5 uses.=L’outil le plus utilisé est désormais @1@2@3 appartenant à @4 avec @5 utilisations.
|
Most used tool is now a @1@2@3 owned by @4 with @5 uses.=L’outil 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 tool is about to break!=Tu outil va se casser !
|
||||||
Your @1@2@3 just leveled up!=Votre @1@2@3 a gagné un niveau !
|
Your @1@2@3 just leveled up to @4@5@6!=Tu @1@2@3 a gagné un niveau au @4@5@6 !
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user