Files
cpp-build-system/support/3rd_party/vlc/lua/http/custom.lua
Scott E. Graves 92e3e495ce
Some checks failed
sgraves/cpp-build-system_mac/pipeline/head There was a failure building this commit
sgraves/cpp-build-system/pipeline/head There was a failure building this commit
initial commit
2025-10-17 07:44:16 -05:00

20 lines
455 B
Lua

-- make xgettext fetch strings from html code
function gettext(text) print(vlc.gettext._(text)) end
local _G = _G
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()