end
local function TR(x, ...)
- return string.format(gettext(x), unpack(arg))
+ return string.format(gettext(x), ...)
end
local function read_translations(pofile)
function p.submap(kcb_, list)
if not list then
return function(lst)
- return submap(kcb_, lst)
+ return p.submap(kcb_, lst)
end
end
return {action = "kpress", kcb = kcb_, submap = list}
local outi=0
local function parsetable(t, prefix)
- for _, v in ipairs(t) do
- if not v.invalid then
+ --for _, v in ipairs(t) do
+ -- ipairs doesn't like nil values, that e.g. submap_wait dummy might generate
+ for i=1,#t do
+ local v=t[i]
+ if v and not v.invalid then
if v.kcb then
v.kcb=string.gsub(v.kcb, "AnyModifier%+", "")
end
end
end
-doargs(arg)
+doargs({...})
local f, err=io.open(infile)
if not f then