code: def write_translations(self, catalogue, format, options={}):
          
          if format not in self.dumpers:
              raise ValueError(
                  'There is no dumper associated with format "{0}"'.format(format))
  
          dumper = self.dumpers[format]
          if "path" in options and not os.path.isdir(options['path']):
              os.mkdir(options['path'])
  
          dumper.dump(catalogue, options)
docs: Writes translation from the catalogue according to the selected format.
  
          @type catalogue: MessageCatalogue
          @param catalogue: The message catalogue to dump
  
          @type format: string
          @param format: The format to use to dump the messages
  
          @type options: array
          @param options: Options that are passed to the dumper
  
          @raises: ValueError