forked from VoxeLibre/mcl_cozy
Make descriptions translatable (add locales)
This commit is contained in:
parent
795836c5c0
commit
5c3cb4fa5e
6
init.lua
6
init.lua
|
@ -1,3 +1,5 @@
|
|||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
minetest.register_globalstep(function(dtime)
|
||||
local players = minetest.get_connected_players()
|
||||
for i=1, #players do
|
||||
|
@ -17,7 +19,7 @@ minetest.register_globalstep(function(dtime)
|
|||
end)
|
||||
|
||||
minetest.register_chatcommand("sit", {
|
||||
description = "Sit down",
|
||||
description = S("Sit down"),
|
||||
func = function(name)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
if mcl_player.player_attached[name] then
|
||||
|
@ -35,7 +37,7 @@ minetest.register_chatcommand("sit", {
|
|||
})
|
||||
|
||||
minetest.register_chatcommand("lay", {
|
||||
description = "Lay down",
|
||||
description = S("Lay down"),
|
||||
func = function(name)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
if mcl_player.player_attached[name] then
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# textdomain: mcl_cozy
|
||||
Sit down=Сесть
|
||||
Lay down=Лечь
|
|
@ -0,0 +1,3 @@
|
|||
# textdomain: mcl_cozy
|
||||
Sit down=
|
||||
Lay down=
|
Loading…
Reference in New Issue