def ShowString(name, string):
 try:
  msg = TRANS(string)
 except:
  msg = 'Encoding Error\n'
 return ('\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">\n<html>\n<head>\n           <title>%s</title>\n</head>\n<body>\n           <FORM><INPUT TYPE="BUTTON" VALUE="%s" ONCLICK="history.go(-1)"></FORM>\n           <h3>%s</h3>\n           <code><pre>%s</pre></code>\n</body>\n</html>\n' % (xml_name(name), T('Back'), xml_name(name), escape(unicoder(msg))))

def ShowString ( name , string ) : try : msg = TRANS ( string ) except : msg = 'Encoding Error\n' return ( '\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">\n<html>\n<head>\n           <title>%s</title>\n</head>\n<body>\n           <FORM><INPUT TYPE="BUTTON" VALUE="%s" ONCLICK="history.go(-1)"></FORM>\n           <h3>%s</h3>\n           <code><pre>%s</pre></code>\n</body>\n</html>\n' % ( xml_name ( name ) , T ( 'Back' ) , xml_name ( name ) , escape ( unicoder ( msg ) ) ) )
return a html page listing a file and a back button .