def list_files(locales, filename_func):
  """Returns the names of the files generated by filename_func for a list of
  locales.

  :param filename_func: function that generates a filename for a given locale
  """
  files = []
  for locale in locales:
    files.append(filename_func(locale))
  return " ".join(['"%s"' % x for x in files])