From bf81bb7f075328918dbfa2a2ec73e1e04db46fb3 Mon Sep 17 00:00:00 2001 From: kay27 Date: Sat, 27 Feb 2021 22:16:29 +0400 Subject: [PATCH] Translatable archievement chat messages --- mods/HUD/awards/api.lua | 2 +- mods/HUD/awards/locale/awards.ru.tr | 1 + mods/HUD/awards/locale/template.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/HUD/awards/api.lua b/mods/HUD/awards/api.lua index bfe10e81..b0526daf 100644 --- a/mods/HUD/awards/api.lua +++ b/mods/HUD/awards/api.lua @@ -214,7 +214,7 @@ function awards.unlock(name, award) -- Get award minetest.log("action", name.." has gotten award "..award) - minetest.chat_send_all(name .. " has made the archievement " .. minetest.colorize("#51EF4E", "[" .. (awdef.title or award) .. "]")) + minetest.chat_send_all(S("@1 has made the archievement @2", name, minetest.colorize("#51EF4E", "[" .. (awdef.title or award) .. "]"))) data.unlocked[award] = award awards.save() diff --git a/mods/HUD/awards/locale/awards.ru.tr b/mods/HUD/awards/locale/awards.ru.tr index 19623f39..5ce0e00b 100644 --- a/mods/HUD/awards/locale/awards.ru.tr +++ b/mods/HUD/awards/locale/awards.ru.tr @@ -59,3 +59,4 @@ Invalid action.=Непредусмотренное действие. Player is not online.=Игрок не подключён. Done.=Сделано. Achievement “@1” does not exist.=Достижения “@1” не существует. +@1 has made the archievement @2=@1 получил(а) достижение @2 diff --git a/mods/HUD/awards/locale/template.txt b/mods/HUD/awards/locale/template.txt index 529d524c..494cb3a5 100644 --- a/mods/HUD/awards/locale/template.txt +++ b/mods/HUD/awards/locale/template.txt @@ -59,3 +59,4 @@ Invalid action.= Player is not online.= Done.= Achievement “@1” does not exist.= +@1 has made the archievement @2=