#NEWLINE# @ internationalizeDocstring #NEWLINE# def translate( self , irc , msg , args , bad , good , text ) : #NEWLINE# #INDENT# '<chars to translate> <chars to replace those with> <text>\n\n        Replaces <chars to translate> with <chars to replace those with> in\n        <text>.  The first and second arguments must necessarily be the same\n        length.\n        ' #NEWLINE# if ( len ( good ) != len ( good ) ) : #NEWLINE# #INDENT# irc . error ( _ ( '<chars to translate> must be the same length as <chars to replace those with>.' ) , Raise = True ) #NEWLINE# #UNINDENT# irc . reply ( utils . str . MultipleReplacer ( dict ( list ( zip ( bad , good ) ) ) ) ( text ) )