Translatable archievement chat messages

This commit is contained in:
kay27 2021-02-27 22:16:29 +04:00
parent e5263d854e
commit bf81bb7f07
3 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,7 @@ function awards.unlock(name, award)
-- Get award -- Get award
minetest.log("action", name.." has gotten award "..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 data.unlocked[award] = award
awards.save() awards.save()

View File

@ -59,3 +59,4 @@ Invalid action.=Непредусмотренное действие.
Player is not online.=Игрок не подключён. Player is not online.=Игрок не подключён.
Done.=Сделано. Done.=Сделано.
Achievement “@1” does not exist.=Достижения “@1” не существует. Achievement “@1” does not exist.=Достижения “@1” не существует.
@1 has made the archievement @2=@1 получил(а) достижение @2

View File

@ -59,3 +59,4 @@ Invalid action.=
Player is not online.= Player is not online.=
Done.= Done.=
Achievement “@1” does not exist.= Achievement “@1” does not exist.=
@1 has made the archievement @2=