langtest: A client mod to tell the player l10n settings
This commit is contained in:
commit
71c61f042f
13
init.lua
Executable file
13
init.lua
Executable 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
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user