def get_install_lng():
 lng = 0
 try:
  hive = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE)
  key = _winreg.OpenKey(hive, 'Software\\SABnzbd')
  for i in range(0, _winreg.QueryInfoKey(key)[1]):
   (name, value, val_type) = _winreg.EnumValue(key, i)
   if (name == 'Installer Language'):
    lng = value
  _winreg.CloseKey(key)
 except WindowsError:
  pass
 finally:
  _winreg.CloseKey(hive)
 return lng

def get_install_lng ( ) : lng = 0 try : hive = _winreg . ConnectRegistry ( None , _winreg . HKEY_LOCAL_MACHINE ) key = _winreg . OpenKey ( hive , 'Software\\SABnzbd' ) for i in range ( 0 , _winreg . QueryInfoKey ( key ) [ 1 ] ) : ( name , value , val_type ) = _winreg . EnumValue ( key , i ) if ( name == 'Installer Language' ) : lng = value _winreg . CloseKey ( key ) except WindowsError : pass finally : _winreg . CloseKey ( hive ) return lng
return language-code used by the installer .