diff options
author | ShadowNinja <shadowninja@minetest.net> | 2013-12-17 20:29:01 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-12-17 20:29:01 -0500 |
commit | 4be14170e7d050dee610424a91a465633da71944 (patch) | |
tree | 577d4addf021c9297b127e2b2f13d29d6fb49226 /lib.lua | |
parent | 934ca0492c264bce8467881b075bdc200a1b70fd (diff) |
Localize load_strings
Diffstat (limited to 'lib.lua')
-rw-r--r-- | lib.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |