langtest: A client mod to tell the player l10n settings

This commit is contained in:
Montandalar 2019-12-21 21:28:06 +11:00
commit 71c61f042f

13
init.lua Executable file
View File

@ -0,0 +1,13 @@
local function testlang()
local a
local b
a, b = minetest.get_language()
minetest.display_chat_message(string.format("Gettext locale: %s", a))
minetest.display_chat_message(string.format("Language code: %s", b))
end
minetest.register_chatcommand('lang_info', {
params = '',
description = 'Gets language information about this client',
func = testlang
})