1 -- make xgettext fetch strings from html code
2 function gettext(text) print(vlc.gettext._(text)) end
5 module("custom",package.seeall)
7 local dialogs = setmetatable({}, {
8 __index = function(self, name)
10 return rawget(self, name) or
11 rawget(rawset(self, name, process(http_dir.."/dialogs/"..name)), name)
14 _G.dialogs = function(...)
15 for i=1, select("#",...) do
16 dialogs[(select(i,...))]()