mirror of
https://github.com/minetest-mods/intllib.git
synced 2025-01-23 08:20:19 +01:00
Replace deprecated setting_get
with settings:get
.
This commit is contained in:
parent
49e965d28a
commit
0c308d02ac
4
init.lua
4
init.lua
@ -13,7 +13,7 @@ local MP = minetest.get_modpath("intllib")
|
||||
dofile(MP.."/lib.lua")
|
||||
|
||||
|
||||
local LANG = minetest.setting_get("language")
|
||||
local LANG = minetest.settings:get("language")
|
||||
if not (LANG and (LANG ~= "")) then LANG = os.getenv("LANG") end
|
||||
if not (LANG and (LANG ~= "")) then LANG = "en" end
|
||||
|
||||
@ -106,7 +106,7 @@ function intllib.get_detected_languages()
|
||||
|
||||
local v
|
||||
|
||||
v = minetest.setting_get("language")
|
||||
v = minetest.settings:get("language")
|
||||
if v and v~="" then
|
||||
addlang(v)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user