mirror of
https://github.com/minetest-mods/intllib.git
synced 2025-07-04 09:00:21 +02:00
Localize load_strings
This commit is contained in:
2
init.lua
2
init.lua
@ -26,7 +26,7 @@ function intllib.Getter(modname)
|
||||
local modpath = minetest.get_modpath(modname)
|
||||
if modpath then
|
||||
local filename = modpath.."/locale/"..LANG..".txt"
|
||||
local msgstr = load_strings(filename)
|
||||
local msgstr = intllib.load_strings(filename)
|
||||
if msgstr then
|
||||
intllib.getters[modname] = function (s)
|
||||
if msgstr[s] and msgstr[s] ~= "" then
|
||||
|
Reference in New Issue
Block a user