home *** CD-ROM | disk | FTP | other *** search
/ mail.altrad.com / 2015.02.mail.altrad.com.tar / mail.altrad.com / TEST / vlc-2-0-5-win32.exe / lua / http / custom.lua < prev    next >
Text File  |  2012-12-12  |  487b  |  21 lines

  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()
  21.