summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-01 19:28:06 +0000
committerSteven Barth <steven@midlink.org>2008-09-01 19:28:06 +0000
commit7cc8a68ba929db44fa8f5f299a61f8c86ee9465b (patch)
tree4abcc658e09e567e7da639f5374bb2f09aefe9d8
parent95006a1f116347f0ad349bbd52bc18732fb55b12 (diff)
Fixed last commit
-rwxr-xr-xbuild/i18n-lua2xml.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/i18n-lua2xml.lua b/build/i18n-lua2xml.lua
index 040edfbd8..674c8adb5 100755
--- a/build/i18n-lua2xml.lua
+++ b/build/i18n-lua2xml.lua
@@ -1,6 +1,8 @@
#!/usr/bin/lua
local util = require "luci.util"
+assert(arg[1])
+
local x = {}
local f = loadfile(arg[1])
setfenv(f, x)
@@ -12,7 +14,7 @@ print '<i18n:msgs xmlns:i18n="http://luci.freifunk-halle.net/2008/i18n#" xmlns="
print ''
for k, v in util.kspairs(x) do
- print ('<i18n:msg xml:id="%s">%s</i18n:msg>' % {k, util.pcdata(v)})
+ print ('<i18n:msg xml:id="%s">%s</i18n:msg>' % {k, v})
end
print ''