1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Translate builtin (#10693)

This PR is the second attempt to translate builtin.
Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
This commit is contained in:
Wuzzy 2021-03-05 15:27:33 +00:00 committed by SmallJoker
parent ac8ac19169
commit cafad6ac03
12 changed files with 623 additions and 334 deletions

View file

@ -2,7 +2,7 @@
-- handled by the engine.
core.register_on_death(function()
core.display_chat_message("You died.")
core.display_chat_message(core.gettext("You died."))
local formspec = "size[11,5.5]bgcolor[#320000b4;true]" ..
"label[4.85,1.35;" .. fgettext("You died") ..
"]button_exit[4,3;3,0.5;btn_respawn;".. fgettext("Respawn") .."]"