Can we use .format instead? `_("The directory has {num_files} files.").format(num_files=len(directory.files))`