# Path: wh.py
# def xlt(s): # translate
#   return s
#   t=wx.GetTranslation(s)
#   # if dict set and t == s: log untranslated
#   return t
# 
# def modPath(name, mod):
#   """
#   str modPath(filename, module)
#   
#   prepend module's path to filename
#   """
#   if mod:
#     if not isinstance(mod, StringType):
#       mod=mod.__module__
#     ri=mod.rfind('.')
#     if ri > 0:
#       return os.path.join(loaddir, mod[0:ri].replace('.', '/'), name)
# 
#   return os.path.join(loaddir, name)
# 
# def localizePath(path):
#   """
#   str localizePath(path)
#   
#   returns the localized version path of a file if it exists, else the global.
#   """
#   #locale='de_DE'
#   #locPath=os.path.join(os.path.dirname(path), locale, os.path.basename(path))
#   #if os.path.exists(locPath):
#   #  return locPath
#   return path


import adm
import os
import wx.html
import version as admVersion
from wh import xlt, modPath, localizePath

  def Save(self):
    for panel in self.panels:
      if not panel.Save():
        return False
    return True


class HintDlg(adm.Dialog):

  @staticmethod
  def WantHint(hint, module):
    return adm.config.GetWantHint(hint, module)
  
  def __init__(self, parentWin, hint, hintModule, title, args):
    adm.Dialog.__init__(self, parentWin)
    self.hint=hint
    self.hintModule=hintModule
    self.title=title
    if args:
      self.args=args
    else:
      self.args={}
    args['appName'] = adm.appTitle
    
  def AddExtraControls(self, res):
    self.browser=wx.html.HtmlWindow(self)
    res.AttachUnknownControl("HtmlWindow", self.browser)
    


# Path: wh.py
# def xlt(s): # translate
#   return s
#   t=wx.GetTranslation(s)
#   # if dict set and t == s: log untranslated
#   return t
# 
# def modPath(name, mod):
#   """
#   str modPath(filename, module)
#   
#   prepend module's path to filename
#   """
#   if mod:
#     if not isinstance(mod, StringType):
#       mod=mod.__module__
#     ri=mod.rfind('.')
#     if ri > 0:
#       return os.path.join(loaddir, mod[0:ri].replace('.', '/'), name)
# 
#   return os.path.join(loaddir, name)
# 
# def localizePath(path):
#   """
#   str localizePath(path)
#   
#   returns the localized version path of a file if it exists, else the global.
#   """
#   #locale='de_DE'
#   #locPath=os.path.join(os.path.dirname(path), locale, os.path.basename(path))
#   #if os.path.exists(locPath):
#   #  return locPath
#   return path


# Path: AdmDialogs.py
import adm
import os
import wx.html
import version as admVersion
from wh import xlt, modPath, localizePath


  def Save(self):
    for panel in self.panels:
      if not panel.Save():
        return False
    return True


class HintDlg(adm.Dialog):

  @staticmethod
  def WantHint(hint, module):
    return adm.config.GetWantHint(hint, module)
  
  def __init__(self, parentWin, hint, hintModule, title, args):
    adm.Dialog.__init__(self, parentWin)
    self.hint=hint
    self.hintModule=hintModule
    self.title=title
    if args:
      self.args=args
    else:
      self.args={}
    args['appName'] = adm.appTitle
    
  def AddExtraControls(self, res):
    self.browser=wx.html.HtmlWindow(self)
    res.AttachUnknownControl("HtmlWindow", self.browser)
    


  def Go(self):