@classmethod
def getVariables(class_, tool):
    """Returns Javascript variables storing translated texts used in forms
           and popups."""
    r = ['var wrongTextInput="%s none";' % tool.config.ui.wrongTextColor]
    for label in class_.variables:
        r.append('var %s="%s";' % (label, tool.translate(label)))
    return '<script>%s</script>' % '\n'.join(r)
