You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
487 B
21 lines
487 B
9 months ago
|
-- make xgettext fetch strings from html code
|
||
|
function gettext(text) print(vlc.gettext._(text)) end
|
||
|
|
||
|
local _G = _G
|
||
|
module("custom",package.seeall)
|
||
|
|
||
|
local dialogs = setmetatable({}, {
|
||
|
__index = function(self, name)
|
||
|
-- Cache the dialogs
|
||
|
return rawget(self, name) or
|
||
|
rawget(rawset(self, name, process(http_dir.."/dialogs/"..name)), name)
|
||
|
end})
|
||
|
|
||
|
_G.dialogs = function(...)
|
||
|
for i=1, select("#",...) do
|
||
|
dialogs[(select(i,...))]()
|
||
|
end
|
||
|
end
|
||
|
|
||
|
_G.vlm = vlc.vlm()
|