summaryrefslogtreecommitdiff
path: root/lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib.lua')
-rw-r--r--lib.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib.lua b/lib.lua
index db6de0d..b3f183b 100644
--- a/lib.lua
+++ b/lib.lua
@@ -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