From: Steven Barth Date: Mon, 1 Sep 2008 19:23:56 +0000 (+0000) Subject: Added more reliable Lua2XML Converter for translations X-Git-Tag: 0.8.0~213 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=95006a1f116347f0ad349bbd52bc18732fb55b12;p=oweals%2Fluci.git Added more reliable Lua2XML Converter for translations --- diff --git a/build/i18n-lua2xml.lua b/build/i18n-lua2xml.lua new file mode 100755 index 000000000..040edfbd8 --- /dev/null +++ b/build/i18n-lua2xml.lua @@ -0,0 +1,20 @@ +#!/usr/bin/lua +local util = require "luci.util" + +local x = {} +local f = loadfile(arg[1]) +setfenv(f, x) +f() + +print '' +print '' +print '' +print '' + +for k, v in util.kspairs(x) do + print ('%s' % {k, util.pcdata(v)}) +end + +print '' +print '' +