def ToResourceFileName(name):
  """Returns the resource-compatible file name for the given file."""
  # Resources file names must consist of [a-z0-9_.].
  # Changes extension to .lpak so that compression can be toggled separately for
  # locale pak files vs other pak files.
  return name.replace('-', '_').replace('.pak', '.lpak').lower()