1
0
mirror of https://github.com/minetest-mods/intllib.git synced 2025-07-01 15:40:25 +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

@ -1,4 +1,6 @@
intllib = intllib or {}
local escapes = {
["\\"] = "\\",
["n"] = "\n",
@ -22,7 +24,7 @@ local function find_eq(s)
end
end
function load_strings(filename)
function intllib.load_strings(filename)
local file, err = io.open(filename, "r")
if not file then
return nil