projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95006a1
)
Fixed last commit
author
Steven Barth
<steven@midlink.org>
Mon, 1 Sep 2008 19:28:06 +0000
(19:28 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 1 Sep 2008 19:28:06 +0000
(19:28 +0000)
build/i18n-lua2xml.lua
patch
|
blob
|
history
diff --git
a/build/i18n-lua2xml.lua
b/build/i18n-lua2xml.lua
index 040edfbd8b624b342b9f5aab64e3c38b400c1832..674c8adb51c3ceff24d191ecbbc2c9c257576974 100755
(executable)
--- 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 ''