]> git.sesse.net Git - vlc/blob - share/lua/http/custom.lua
Lua: remove var.command
[vlc] / share / lua / http / custom.lua
1 -- make xgettext fetch strings from html code
2 function gettext(text) print(vlc.gettext._(text)) end
3
4 local _G = _G
5 module("custom",package.seeall)
6
7 local dialogs = setmetatable({}, {
8 __index = function(self, name)
9     -- Cache the dialogs
10     return rawget(self, name) or
11            rawget(rawset(self, name, process(http_dir.."/dialogs/"..name)), name)
12 end})
13
14 _G.dialogs = function(...)
15     for i=1, select("#",...) do
16         dialogs[(select(i,...))]()
17     end
18 end
19
20 _G.vlm = vlc.vlm()