#NEWLINE# def validate_voice_locale( locale ) : #NEWLINE# #INDENT# with translation . override ( locale ) : #NEWLINE# #INDENT# voice_locale = pgettext ( 'twilio_locale' , 'en' ) #NEWLINE# if ( voice_locale not in VOICE_LANGUAGES ) : #NEWLINE# #INDENT# raise NotImplementedError ( ( 'The language "%s" is not supported by Twilio' % locale ) )