From 71c61f042ff34fe9b365b3b6f6f4b35f9f0f3919 Mon Sep 17 00:00:00 2001 From: Montandalar <jbis1337@hotmail.com> Date: Sat, 21 Dec 2019 21:28:06 +1100 Subject: [PATCH] langtest: A client mod to tell the player l10n settings --- init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 init.lua diff --git a/init.lua b/init.lua new file mode 100755 index 0000000..0dbb243 --- /dev/null +++ b/init.lua @@ -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 +})