projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: remove debugging code from i18n-scan.pl
[project/luci.git]
/
build
/
uvl2i18n.lua
diff --git
a/build/uvl2i18n.lua
b/build/uvl2i18n.lua
index 771b26dd733ef978a0c4f0554b7f5545ac505ecf..ee57c83ea54d3fa9ffcd8670ad6e8ca6c9434204 100755
(executable)
--- a/
build/uvl2i18n.lua
+++ b/
build/uvl2i18n.lua
@@
-8,7
+8,7
@@
require("luci.uvl")
local shm = luci.uvl.UVL():get_scheme(arg[1])
for s, o in luci.util.kspairs(shm.sections) do
local shm = luci.uvl.UVL():get_scheme(arg[1])
for s, o in luci.util.kspairs(shm.sections) do
- print( string.format( '%s_%s = %q', shm.name, s:gsub("_",""), o.title ) )
+ print( string.format( '%s_%s = %q', shm.name, s:gsub("_",""), o.title
or s
) )
if o.description and #o.description > 0 then
print( string.format(
if o.description and #o.description > 0 then
print( string.format(
@@
-18,7
+18,7
@@
for s, o in luci.util.kspairs(shm.sections) do
for v, o in luci.util.kspairs(shm.variables[s]) do
print( string.format(
for v, o in luci.util.kspairs(shm.variables[s]) do
print( string.format(
- '%s_%s_%s = %q', shm.name, s:gsub("_",""), v:gsub("_",""), o.title
+ '%s_%s_%s = %q', shm.name, s:gsub("_",""), v:gsub("_",""), o.title
or v
) )
if o.description and #o.description > 0 then
) )
if o.description and #o.description > 0 then