From 95006a1f116347f0ad349bbd52bc18732fb55b12 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 1 Sep 2008 19:23:56 +0000 Subject: [PATCH] Added more reliable Lua2XML Converter for translations --- build/i18n-lua2xml.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 build/i18n-lua2xml.lua 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 '' + -- 2.25.1