From 266f8ab06aba1cf5e47cc98cfefb2a43ca9f58cb Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Fri, 21 Jan 2022 03:48:29 +0100 Subject: [PATCH] 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' --- init.lua | 6 +++++- locale/toolranks.de.tr | 12 ++++++++++++ locale/toolranks.en.tr | 3 ++- locale/toolranks.fr.tr | 5 +++-- 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 locale/toolranks.de.tr diff --git a/init.lua b/init.lua index 8e8ecc6..792d9bc 100644 --- a/init.lua +++ b/init.lua @@ -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") + diff --git a/locale/toolranks.de.tr b/locale/toolranks.de.tr new file mode 100644 index 0000000..0f4d85e --- /dev/null +++ b/locale/toolranks.de.tr @@ -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! + diff --git a/locale/toolranks.en.tr b/locale/toolranks.en.tr index 9e6b7d8..70febd5 100644 --- a/locale/toolranks.en.tr +++ b/locale/toolranks.en.tr @@ -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! + diff --git a/locale/toolranks.fr.tr b/locale/toolranks.fr.tr index 2fbefcd..dc0d8a8 100644 --- a/locale/toolranks.fr.tr +++ b/locale/toolranks.fr.tr @@ -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.=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 @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 ! +