Translate achievement string

This commit is contained in:
Wuzzy 2019-08-29 02:40:36 +02:00
parent 0d61fddb13
commit 4fd187a528
3 changed files with 8 additions and 3 deletions

View File

@ -89,8 +89,9 @@ function achievements.trigger_achievement(player, aname, times)
minetest.chat_send_all(
minetest.colorize(
"#0f0",
"*** " .. name .." has earned the achievement [" ..
achievements.registered_achievements[aname].title .. "]"))
"*** " .. S("@1 has earned the achievement “@2”.",
name,
achievements.registered_achievements[aname].title)))
end)
end
@ -214,7 +215,7 @@ function achievements.get_formspec(name, row)
progress = S("Gotten")
amt_gotten = amt_gotten + 1
else
progress = achievements.achievements[name][aname] .. "/" .. def.times
progress = S("@1/@2", achievements.achievements[name][aname], def.times)
amt_progress = amt_progress + 1
end
else

View File

@ -2,6 +2,8 @@
Gotten=Erhalten
Missing=Fehlt
@1 of @2 achievements gotten, @3 in progress=@1 von @2 Errungenschaften erhalten, @3 in Arbeit
@1 has earned the achievement “@2”.=@1 hat die Errungenschaft „@2“ erhalten.
@1/@2=@1/@2
Off to Battle=Auf in die Schlacht
Craft a Broadsword=Fertigen Sie ein Breitschwert
Hardened Miner=Abgehärteter Bergarbeiter

View File

@ -2,6 +2,8 @@
Gotten=
Missing=
@1 of @2 achievements gotten, @3 in progress=
@1 has earned the achievement “@2”.=
@1/@2=
Off to Battle=
Craft a Broadsword=
Hardened Miner=