2 -- uvl2i18n.lua - Convert uvl schemes to i18n files
8 local shm = luci.uvl.UVL():get_scheme(arg[1])
10 for s, o in luci.util.kspairs(shm.sections) do
11 print( string.format( '%s_%s = %q', shm.name, s:gsub("_",""), o.title or s ) )
13 if o.description and #o.description > 0 then
15 '%s_%s_desc = %q', shm.name, s:gsub("_",""), o.description
19 for v, o in luci.util.kspairs(shm.variables[s]) do
21 '%s_%s_%s = %q', shm.name, s:gsub("_",""), v:gsub("_",""), o.title or v
24 if o.description and #o.description > 0 then
26 '%s_%s_%s_desc = %q', shm.name, s:gsub("_",""),
27 v:gsub("_",""), o.description