1
0
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:
ShadowNinja
2013-12-17 20:29:01 -05:00
parent 934ca0492c
commit 4be14170e7
3 changed files with 6 additions and 4 deletions

View File

@ -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