diff options
author | Steven Barth <steven@midlink.org> | 2008-09-01 19:28:06 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-01 19:28:06 +0000 |
commit | 7cc8a68ba929db44fa8f5f299a61f8c86ee9465b (patch) | |
tree | 4abcc658e09e567e7da639f5374bb2f09aefe9d8 /build | |
parent | 95006a1f116347f0ad349bbd52bc18732fb55b12 (diff) |
Fixed last commit
Diffstat (limited to 'build')
-rwxr-xr-x | build/i18n-lua2xml.lua | 4 |
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 '' |